From 2d5898653778cc0115b219a5ded7b6b98fa7a373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 20 Jun 2006 08:44:27 +0000 Subject: added a BUGS.txt file; added unit-test for [s2l]; added Makefile for unit tests; added "tests" target to the src/Makefile which calls the unit-tests svn path=/trunk/externals/zexy/; revision=5266 --- tests/Makefile | 8 ++++++++ tests/runtests.sh | 2 +- tests/runtests.txt | 1 + tests/s2l/numsymbols.pd | 54 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 tests/Makefile create mode 100644 tests/s2l/numsymbols.pd (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..ff76f0c --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,8 @@ +default: nogui + + +nogui: + sh runtests.sh + +gui: + sh runtests.sh -gui diff --git a/tests/runtests.sh b/tests/runtests.sh index fd7b28a..2dd8a6d 100755 --- a/tests/runtests.sh +++ b/tests/runtests.sh @@ -8,7 +8,7 @@ RUNTESTS_LOG=log-runtests.${SUFFIX} ls -1 */*.pd | sed 's/\.pd/;/' > ${RUNTESTS_TXT} -LIBFLAGS="-lib ../zexy -path ../abs/" +LIBFLAGS="-path ../src -lib zexy -path ../abs/" function run_nogui() { pd ${LIBFLAGS} -nogui runtests_nogui.pd > ${RUNTESTS_LOG} 2>&1 diff --git a/tests/runtests.txt b/tests/runtests.txt index 99ec28a..60ae970 100644 --- a/tests/runtests.txt +++ b/tests/runtests.txt @@ -69,3 +69,4 @@ help-msg/wrap; help-msg/zexy; help-msg/z~; repeat/noargs; +s2l/numsymbols; diff --git a/tests/s2l/numsymbols.pd b/tests/s2l/numsymbols.pd new file mode 100644 index 0000000..4e83c8c --- /dev/null +++ b/tests/s2l/numsymbols.pd @@ -0,0 +1,54 @@ +#N canvas 349 104 581 409 10; +#X msg 74 50 symbol 192.168.7.1:80; +#X obj 92 117 s2l :; +#X obj 92 218 select 192.168.7.1; +#X obj 255 218 select 80; +#X msg 255 238 1; +#X msg 92 238 1; +#X msg 195 238 0; +#X msg 304 238 0; +#X obj 255 258 t f; +#X obj 79 294 f; +#X msg 111 98 0; +#X obj 79 365 outlet; +#X obj 74 7 inlet; +#X text 169 7 "192.168.7.1" is a symbol but looks like a number at +first glance; +#X obj 92 262 t f; +#X msg 208 50 symbol 192.168:80; +#X obj 92 139 t l l; +#X msg 92 172 \$1; +#X obj 92 192 symbol; +#X msg 255 177 \$2; +#X obj 74 78 t b s b; +#X obj 79 318 pack 0 0; +#X obj 79 342 *; +#X obj 74 28 b; +#X connect 0 0 20 0; +#X connect 1 0 16 0; +#X connect 2 0 5 0; +#X connect 2 1 6 0; +#X connect 3 0 4 0; +#X connect 3 1 7 0; +#X connect 4 0 8 0; +#X connect 5 0 14 0; +#X connect 6 0 14 0; +#X connect 7 0 8 0; +#X connect 8 0 21 1; +#X connect 9 0 21 0; +#X connect 10 0 8 0; +#X connect 10 0 14 0; +#X connect 12 0 23 0; +#X connect 14 0 9 1; +#X connect 15 0 20 0; +#X connect 16 0 17 0; +#X connect 16 1 19 0; +#X connect 17 0 18 0; +#X connect 18 0 2 0; +#X connect 19 0 3 0; +#X connect 20 0 9 0; +#X connect 20 1 1 0; +#X connect 20 2 10 0; +#X connect 21 0 22 0; +#X connect 22 0 11 0; +#X connect 23 0 0 0; -- cgit v1.2.1