aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-20 08:44:27 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-20 08:44:27 +0000
commit2d5898653778cc0115b219a5ded7b6b98fa7a373 (patch)
treee5e67e0f1012742bd576ba30b4ac81225499c6f8
parent6bcef5ed8a5d6baaf48c165d5873f58b05479eb2 (diff)
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
-rw-r--r--BUGS.txt7
-rw-r--r--src/Makefile9
-rw-r--r--src/zexyconf.h6
-rw-r--r--tests/Makefile8
-rwxr-xr-xtests/runtests.sh2
-rw-r--r--tests/runtests.txt1
-rw-r--r--tests/s2l/numsymbols.pd54
7 files changed, 82 insertions, 5 deletions
diff --git a/BUGS.txt b/BUGS.txt
new file mode 100644
index 0000000..e63f0c2
--- /dev/null
+++ b/BUGS.txt
@@ -0,0 +1,7 @@
+[drip]
+ - sometimes crashes with small delays
+ . according to the backtrace this should be a memory corruption
+ . (actually the crashing bug was buggy by design and i haven't got a simple bug-patch yet)
+
+[s2l]
+ - numerically looking sub-symbols are converted wrongly to floats: e.g. "192.168.0.1" -> 192,168
diff --git a/src/Makefile b/src/Makefile
index 9658158..0af231b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,11 @@ default: all
.PHONEY: default all everything dist \
clean realclean distclean \
- install install-bin install-doc install-abs
+ install install-bin install-doc install-abs \
+ tests
+
+
+TESTDIR=../tests
HELPERSOURCES=z_zexy.c zexy.c winNT_portio.c
@@ -86,6 +90,9 @@ distclean: realclean
zexy.opt zexy.plg
-rm -rf autom4te.cache/
+tests: all
+ make -C $(TESTDIR)
+
install: install-bin install-doc install-abs
install-bin:
diff --git a/src/zexyconf.h b/src/zexyconf.h
index 3231f5d..56841fa 100644
--- a/src/zexyconf.h
+++ b/src/zexyconf.h
@@ -1,4 +1,4 @@
-/* zexyconf.h. Generated by configure. */
+/* zexyconf.h. Generated from zexyconf.h.in by configure. */
/* Define if you have the <regex.h> header file. */
#define HAVE_REGEX_H 1
@@ -10,8 +10,8 @@
#define Z_WANT_LPT 1
/* define if you have the <linux/ppdev.h> header file.
- * (for parport _device_ support)
- * you need Z_WANT_LPT for this to have an effect !
+ * (for parport _device_ support)
+ * you need Z_WANT_LPT for this to have an effect !
*/
#define HAVE_LINUX_PPDEV_H 1
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;