Commit ac50d968 authored by Jonathan Wilkes's avatar Jonathan Wilkes

add test to make sure we're building at our desired PD_FLOATSIZE

parent 11847f1d
Pipeline #1432 passed with stage
in 185 minutes and 33 seconds
......@@ -9,7 +9,7 @@ debian_jessie_i386_deb:
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y upgrade > /dev/null
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" scripts/regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" scripts/regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -27,7 +27,7 @@ debian_jessie_x86_64_deb:
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y upgrade > /dev/null
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" scripts/regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" scripts/regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -45,7 +45,7 @@ debian_stretch_x86_64_deb:
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive apt-get -qq -y upgrade > /dev/null
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" scripts/regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" scripts/regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -64,7 +64,7 @@ ubuntu_14.04_i386_deb:
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- cd scripts
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -83,7 +83,7 @@ ubuntu_14.04_x86_64_deb:
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- cd scripts
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -102,7 +102,7 @@ ubuntu_16.04_x86_64_deb:
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- cd scripts
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -118,7 +118,7 @@ osx_10.11_x86_64_dmg:
- echo `pwd`
- make light-double
- cd ./scripts
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio -send "init dollarzero \$0, floatsize 64" regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -134,7 +134,7 @@ osx_10.8_x86_64_dmg:
- echo `pwd`
- osx_version=10.8 make light-double
- cd ./scripts
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
- ../packages/darwin_app/build/*.app/Contents/Resources/app.nw/bin/pd-l2ork -noprefs -nostdpath -nogui -noaudio -send "init dollarzero \$0, floatsize 64" regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -149,7 +149,7 @@ windows_i386_innosetup:
- echo `pwd`
- CFLAGS="-DPD_FLOATSIZE=64" make light
- cd ./scripts
- ../packages/win32_inno/build/bin/pd.exe -noprefs -nostdpath -nogui -noaudio -send "init dollarzero \$0" regression_tests.pd
- ../packages/win32_inno/build/bin/pd.exe -noprefs -nostdpath -nogui -noaudio -send "init dollarzero \$0, floatsize 64" regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......@@ -168,7 +168,7 @@ raspbian_stretch_armv7l_deb:
- echo `pwd`
- CFLAGS="-DPD_FLOATSIZE=64" make light
- echo "" | sudo -S DEBIAN_FRONTEND=noninteractive dpkg --force-all -i pd-l2ork*.deb > /dev/null
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0" scripts/regression_tests.pd
- valgrind pd-l2ork -noprefs -nostdpath -nogui -nrt -noaudio -send "init dollarzero \$0, floatsize 64" scripts/regression_tests.pd
artifacts:
name: "$CI_RUNNER_DESCRIPTION"
expire_in: 1 day
......
#N canvas 3 60 749 617 12;
#X obj 475 301 r \$0-result;
#X obj 475 326 route 0;
#X obj 583 470 print failure;
#X obj 560 336 tgl 28 0 empty empty Print_All_Results 31 11 0 12 -262144
#N canvas 410 60 749 617 12;
#X obj 475 331 r \$0-result;
#X obj 475 356 route 0;
#X obj 583 500 print failure;
#X obj 560 366 tgl 28 0 empty empty Print_All_Results 31 11 0 12 -262144
-1 -1 0 1;
#X obj 159 149 bng 31 250 50 0 empty empty Run_all 39 13 0 12 -262144
-1 -1;
#X obj 56 25 r init;
#X obj 345 191 route dollarzero;
#X obj 475 411 t b a;
#X obj 475 541 s pd;
#X obj 475 441 t b a;
#X obj 475 571 s pd;
#X obj 56 120 trigger bang bang anything;
#X msg 56 145 gui;
#X obj 56 170 pdinfo;
#X obj 56 195 sel 0;
#X obj 56 245 s pd;
#X msg 475 516 quit 1;
#X msg 475 546 quit 1;
#X msg 56 220 quit;
#X obj 145 191 rtest msg_dollarzero;
#X obj 145 246 rtest msg_dollarzero_semi;
#X obj 145 302 rtest msg_click;
#X obj 345 216 rtest binbuf_dollarzero;
#X msg 475 440 gui;
#X obj 475 465 pdinfo;
#X obj 475 490 sel 0;
#X obj 345 276 rtest binbuf_dollarzero;
#X msg 475 470 gui;
#X obj 475 495 pdinfo;
#X obj 475 520 sel 0;
#X text 117 25 <- we start Pd with the -send "init etc." flag. This
will automatically start the tests and allow us to send a comma-separated
list of messages which will be evaluated by Pd without a target. This
......@@ -34,9 +33,9 @@ is handy for some binbuf tests.;
#X text 536 150 <- we have to escape the arg;
#X text 556 190 escape it in a comment.;
#X text 556 170 in bash but we can't;
#X obj 521 374 spigot;
#X obj 537 440 route 1;
#X obj 537 495 print success;
#X obj 521 404 spigot;
#X obj 537 470 route 1;
#X obj 537 525 print success;
#X obj 145 358 rtest unpost_sanity;
#X obj 145 414 rtest unpost_error;
#X obj 145 465 rtest unpost_print;
......@@ -50,39 +49,42 @@ is handy for some binbuf tests.;
#X obj 145 773 rtest makefilename_float;
#X obj 145 824 rtest makefilename_symbol;
#X obj 145 875 rtest makefilename_bang;
#X obj 345 191 route dollarzero floatsize;
#X obj 434 222 rtest floatsize;
#X connect 0 0 1 0;
#X connect 1 0 7 0;
#X connect 1 1 29 0;
#X connect 3 0 29 1;
#X connect 4 0 16 0;
#X connect 5 0 9 0;
#X connect 1 0 6 0;
#X connect 1 1 28 0;
#X connect 3 0 28 1;
#X connect 4 0 15 0;
#X connect 5 0 8 0;
#X connect 6 0 19 0;
#X connect 7 0 20 0;
#X connect 7 1 30 0;
#X connect 6 1 29 0;
#X connect 8 0 9 0;
#X connect 8 1 15 0;
#X connect 8 2 43 0;
#X connect 9 0 10 0;
#X connect 9 1 16 0;
#X connect 9 2 6 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 12 0 15 0;
#X connect 14 0 8 0;
#X connect 15 0 13 0;
#X connect 11 0 14 0;
#X connect 13 0 7 0;
#X connect 14 0 12 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 32 0;
#X connect 17 0 31 0;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 22 0;
#X connect 22 0 14 0;
#X connect 29 0 7 0;
#X connect 30 0 31 0;
#X connect 30 1 2 0;
#X connect 21 0 13 0;
#X connect 28 0 6 0;
#X connect 29 0 30 0;
#X connect 29 1 2 0;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 33 0 34 0;
#X connect 34 0 35 0;
#X connect 35 0 36 0;
#X connect 36 0 37 0;
#X connect 37 0 39 0;
#X connect 36 0 38 0;
#X connect 38 0 39 0;
#X connect 39 0 40 0;
#X connect 40 0 41 0;
#X connect 41 0 42 0;
#X connect 42 0 43 0;
#X connect 43 0 18 0;
#X connect 43 1 44 0;
#N canvas 430 95 589 446 12;
#X obj 41 28 inlet;
#X obj 41 349 outlet;
#X text 117 28 incoming value should be "floatsize" \, or the number
of bits in t_float: either 32 or 64 It comes in as an argument to the
test \, presumably from a CI script in which we are attempting to build
Purr Data at particular floatsize. So if the incoming value matches
what our [pdinfo] introspection object tells us is the actual floatsize
in the running instance \, we pass the test.;
#X msg 248 182 floatsize;
#X obj 248 207 pdinfo;
#X obj 41 244 ==;
#X obj 41 153 trigger anything anything bang;
#X obj 41 269 pack 0 0 0;
#X msg 41 307 \$1 Number of bits in t_float. Expected size: \$2. Actual
size: \$3;
#X connect 0 0 6 0;
#X connect 3 0 4 0;
#X connect 4 0 5 1;
#X connect 4 0 7 2;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 6 1 7 1;
#X connect 6 2 3 0;
#X connect 7 0 8 0;
#X connect 8 0 1 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment