Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shakfu committed May 25, 2024
1 parent 61fa69c commit 66734b9
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ FAUST_VERSION = 2.72.14
linux-adv-alsa linux-adv-pulse linux-adv-jack linux-adv-all \
faust rubberband libsndfile_formats \
all_deps light_deps nomp3_deps \
test test-audio test-faust test-warpbuf \
clean reset sign

all: build
Expand Down Expand Up @@ -201,3 +202,13 @@ reset:
@rm -rf build/CMakeCache.txt build/Makefile build/CMakeFiles build/chuck_tilde build/chuck
@rm -rf build/cmake_install.cmake build/thirdparty build/*.a

test: test-audio

test-audio:
@pd -nogui -send "pd dsp 1" -open chuck_tilde/tests/test_audio.pd

test-faust:
@pd -nogui -send "pd dsp 1" -open chuck_tilde/tests/test_faust.pd

test-warpbuf:
@pd -nogui -send "pd dsp 1" -open chuck_tilde/tests/test_warpbuf.pd
27 changes: 27 additions & 0 deletions chuck_tilde/tests/test_audio.pd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#N canvas 954 214 676 550 12;
#X declare -path ..;
#X obj 231 166 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
#X msg 163 166 reset;
#X text 227 146 run;
#X msg 282 168 status;
#X msg 356 168 chugins;
#X obj 230 367 *~ 0.4;
#X obj 381 361 *~ 0.4;
#X obj 280 428 dac~;
#X msg 39 286 loglevel 10;
#X obj 39 230 loadbang;
#X obj 548 8 declare -path ..;
#X obj 229 92 loadbang;
#X obj 230 313 chuck~ pd/test.ck;
#X text 12 13 chuck~: test audio;
#X connect 0 0 12 0;
#X connect 1 0 12 0;
#X connect 3 0 12 0;
#X connect 4 0 12 0;
#X connect 5 0 7 0;
#X connect 6 0 7 1;
#X connect 8 0 12 0;
#X connect 9 0 8 0;
#X connect 11 0 0 0;
#X connect 12 0 5 0;
#X connect 12 1 6 0;
27 changes: 27 additions & 0 deletions chuck_tilde/tests/test_faust.pd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#N canvas 581 54 676 550 12;
#X declare -path ..;
#X obj 231 166 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
#X msg 163 166 reset;
#X text 227 146 run;
#X msg 282 168 status;
#X msg 356 168 chugins;
#X obj 230 313 chuck~ fauck/test.ck;
#X text 12 13 chuck~: test faust;
#X obj 230 367 *~ 0.4;
#X obj 367 366 *~ 0.4;
#X obj 280 428 dac~;
#X msg 39 286 loglevel 10;
#X obj 39 230 loadbang;
#X obj 548 8 declare -path ..;
#X obj 229 92 loadbang;
#X connect 0 0 5 0;
#X connect 1 0 5 0;
#X connect 3 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 7 0;
#X connect 5 1 8 0;
#X connect 7 0 9 0;
#X connect 8 0 9 1;
#X connect 10 0 5 0;
#X connect 11 0 10 0;
#X connect 13 0 0 0;
27 changes: 27 additions & 0 deletions chuck_tilde/tests/test_warpbuf.pd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#N canvas 954 214 676 550 12;
#X declare -path ..;
#X obj 231 166 bng 19 250 50 0 empty empty empty 0 -10 0 12 #fcfcfc #000000 #000000;
#X msg 163 166 reset;
#X text 227 146 run;
#X msg 282 168 status;
#X msg 356 168 chugins;
#X obj 230 367 *~ 0.4;
#X obj 381 361 *~ 0.4;
#X obj 280 428 dac~;
#X msg 39 286 loglevel 10;
#X obj 39 230 loadbang;
#X obj 548 8 declare -path ..;
#X obj 229 92 loadbang;
#X text 12 13 chuck~: test warpbuf;
#X obj 230 313 chuck~ warpbuf/test.ck;
#X connect 0 0 13 0;
#X connect 1 0 13 0;
#X connect 3 0 13 0;
#X connect 4 0 13 0;
#X connect 5 0 7 0;
#X connect 6 0 7 1;
#X connect 8 0 13 0;
#X connect 9 0 8 0;
#X connect 11 0 0 0;
#X connect 13 0 5 0;
#X connect 13 1 6 0;

0 comments on commit 66734b9

Please sign in to comment.