@@ -225,62 +225,22 @@ jobs:
225225 - name : build tests
226226 run : |
227227 cd test
228- for i in testparams testprops testgraph testsetiface testlist testnetwork testmany \
229- testlinear testexpression testrate testbundle testinstance_coordination \
230- testinstance_coord_rel_dnstrm testreverse testvector testcustomtransport testspeed \
231- testmapinput testconvergent testunmap testremap testmapfail testmaplocation \
232- testmapprotocol testmapscope testcalibrate testlocalmap testthread testinterrupt \
233- testsignalhierarchy testsetremote testselfmap teststealing test_subscriptions \
234- test_time_sync test_map_timed test_map_no_src test; \
228+ for i in *.c; \
235229 do \
236230 echo Building $i; \
237- gcc $i.c -L../inst/lib -lmapper -I../inst/include/mapper -o $i ; \
231+ gcc $i -L../inst/lib -lmapper -I../inst/include/mapper -o "${i%.*}" ; \
238232 done
239233 - name : run tests
240234 run : |
241- cd test
242- for i in testparams testprops testgraph testsetiface testlist testnetwork testmany \
243- testlinear testexpression testrate testbundle testinstance_coordination \
244- testinstance_coord_rel_dnstrm testreverse testvector testcustomtransport testspeed \
245- testmapinput testconvergent testunmap testremap testmapfail testmaplocation \
246- testmapprotocol testmapscope testcalibrate testlocalmap testthread testinterrupt \
247- testsignalhierarchy testsetremote testselfmap teststealing test_subscriptions \
248- test_time_sync test_map_timed test_map_no_src test; \
249- do \
250- echo Running $i; \
251- ./$i {{ matrix.flags }}; \
252- done
253-
254- Linux-instance-tests :
255- runs-on : ubuntu-latest
256- needs : Linux
257- timeout-minutes : 10
258- strategy :
259- matrix :
260- flags : [-qtf, -qtfs, -qtfp, -qtfps]
261- steps :
262- - uses : actions/checkout@v6
263- with :
264- fetch-depth : 0
265- - name : download libraries
266- uses : actions/download-artifact@v8
267- with :
268- name : artifact_linux
269- - name : build tests
270- run : |
271- cd test
272- for i in testinstance testinstance_no_cb; \
273- do \
274- echo Building $i; \
275- gcc $i.c -L../inst/lib -lmapper -I../inst/include/mapper -o $i; \
276- done
277- - name : run tests
278- run : |
279- for i in testinstance testinstance_no_cb; \
235+ for i in *.c; \
280236 do \
281- echo Running $i ; \
282- ./$i {{ matrix.flags }}; \
237+ echo Running "${i%.*}" {{ matrix.flags }} ; \
238+ " ./${i%.*}" {{ matrix.flags }} --iterations 200 ; \
283239 done
240+ echo Running testinstance {{ matrix.flags }} -p
241+ ./testinstance {{ matrix.flags }} -p
242+ echo Running testinstance_no_cb {{ matrix.flags }} -p
243+ ./testinstance_no_cb {{ matrix.flags }} -p
284244
285245 Linux-check-wheel :
286246 runs-on : ubuntu-latest
0 commit comments