From fdec3114894c1685db743ccaced0ab1678eec7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 21 Dec 2005 10:02:17 +0000 Subject: added regression test framework (no test there) svn path=/trunk/externals/zexy/; revision=4269 --- tests/testunit.pd | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 tests/testunit.pd (limited to 'tests/testunit.pd') diff --git a/tests/testunit.pd b/tests/testunit.pd new file mode 100644 index 0000000..b5823fa --- /dev/null +++ b/tests/testunit.pd @@ -0,0 +1,78 @@ +#N canvas 695 274 312 252 10; +#N canvas 0 0 564 876 run-test 0; +#X obj 87 512 r \$0-receive; +#X obj 71 532 f; +#X msg 96 533 0; +#X obj 71 76 symbol; +#X obj 71 44 inlet test-to-run; +#X obj 71 639 outlet result; +#X obj 71 615 pack 0 s; +#X obj 181 205 makefilename pd-%d-regressiontest; +#X obj 109 226 pack s \$0 s; +#X obj 181 186 f \$0; +#X obj 109 160 t s b; +#X obj 143 489 t b s s; +#X obj 71 104 t b b s s; +#X msg 140 72 bang; +#X obj 90 135 s \$0-send; +#X msg 109 246 \; \$3 clear \; \$3 obj 100 100 r \$2-send \; \$3 obj +100 150 \$1 \; \$3 obj 100 200 s \$2-receive \; \$3 connect 0 0 1 0 +\; \$3 connect 1 0 2 0; +#N canvas 395 348 450 300 print 0; +#X obj 101 247 print regression-test; +#X obj 101 204 pack s s; +#X obj 101 117 select 1; +#X obj 152 137 b; +#X msg 152 160 failed; +#X msg 101 138 OK; +#X obj 101 185 symbol; +#X msg 101 223 \$2: \$1; +#X obj 296 82 inlet test; +#X obj 101 92 inlet result; +#X connect 1 0 7 0; +#X connect 2 0 5 0; +#X connect 2 1 3 0; +#X connect 3 0 4 0; +#X connect 4 0 6 0; +#X connect 5 0 6 0; +#X connect 6 0 1 0; +#X connect 7 0 0 0; +#X connect 8 0 1 1; +#X connect 9 0 2 0; +#X restore 101 584 pd print result; +#X obj 71 565 t f f; +#X msg 101 406 \; \$1 clear; +#X obj 101 386 symbol; +#X obj 71 364 t b b; +#X connect 0 0 1 1; +#X connect 1 0 17 0; +#X connect 2 0 1 1; +#X connect 3 0 12 0; +#X connect 4 0 3 0; +#X connect 6 0 5 0; +#X connect 7 0 8 2; +#X connect 7 0 19 1; +#X connect 8 0 15 0; +#X connect 9 0 7 0; +#X connect 10 0 8 0; +#X connect 10 1 9 0; +#X connect 11 0 2 0; +#X connect 11 1 6 1; +#X connect 11 2 16 1; +#X connect 12 0 20 0; +#X connect 12 1 14 0; +#X connect 12 2 10 0; +#X connect 12 3 11 0; +#X connect 13 0 3 0; +#X connect 17 0 6 0; +#X connect 17 1 16 0; +#X connect 19 0 18 0; +#X connect 20 0 1 0; +#X connect 20 1 19 0; +#X restore 94 138 pd run-test; +#X obj 94 163 outlet; +#X obj 94 111 inlet; +#N canvas 487 407 450 300 1005-regressiontest 0; +#X restore 92 186 pd \$0-regressiontest; +#X connect 0 0 1 0; +#X connect 2 0 0 0; -- cgit v1.2.1