diff --git a/src/c/test/t0001-cbinding-basic.t.in b/src/c/test/t0001-cbinding-basic.t.in index 6c79a12a..49508fa4 100755 --- a/src/c/test/t0001-cbinding-basic.t.in +++ b/src/c/test/t0001-cbinding-basic.t.in @@ -183,39 +183,47 @@ test_expect_success 'PERFFLOW_OPTIONS: enable logging smoketest3' ' rm perfflow.$(hostname).[0-9]*.pfw ' -test_expect_success 'c binding: smoketest_MT runs ok in default' ' - ../smoketest_MT && - rm perfflow.$(hostname).[0-9]*.pfw -' +if test -f ../smoketest_MT; then + test_expect_success 'c binding: smoketest_MT runs ok in default' ' + ../smoketest_MT && + rm perfflow.$(hostname).[0-9]*.pfw + ' -test_expect_success 'PERFFLOW_OPTIONS: disable logging smoketest_MT' ' - PERFFLOW_OPTIONS="log-enable=False" ../smoketest_MT && - ! test -f perfflow.$(hostname).[0-9]*.pfw && - if test -f perfflow.$(hostname).[0-9]*.pfw; then rm perfflow.$(hostname).[0-9]*.pfw; fi -' + test_expect_success 'PERFFLOW_OPTIONS: disable logging smoketest_MT' ' + PERFFLOW_OPTIONS="log-enable=False" ../smoketest_MT && + ! test -f perfflow.$(hostname).[0-9]*.pfw && + if test -f perfflow.$(hostname).[0-9]*.pfw; then rm perfflow.$(hostname).[0-9]*.pfw; fi + ' -test_expect_success 'PERFFLOW_OPTIONS: enable logging smoketest_MT' ' - PERFFLOW_OPTIONS="log-enable=True" ../smoketest_MT && - test -f perfflow.$(hostname).[0-9]*.pfw && - rm perfflow.$(hostname).[0-9]*.pfw -' + test_expect_success 'PERFFLOW_OPTIONS: enable logging smoketest_MT' ' + PERFFLOW_OPTIONS="log-enable=True" ../smoketest_MT && + test -f perfflow.$(hostname).[0-9]*.pfw && + rm perfflow.$(hostname).[0-9]*.pfw + ' +else + say "Skipping multithreaded smoketests...disabled in the build." +fi -test_expect_success 'c binding: smoketest_MPI runs ok in default' ' - mpirun -n 2 ../smoketest_MPI && - rm perfflow.$(hostname).[0-9]*.pfw -' +if test -f ../smoketest_MPI; then + test_expect_success 'c binding: smoketest_MPI runs ok in default' ' + mpirun -n 2 ../smoketest_MPI && + rm perfflow.$(hostname).[0-9]*.pfw + ' -test_expect_success 'PERFFLOW_OPTIONS: disable logging smoketest_MPI' ' - PERFFLOW_OPTIONS="log-enable=False" mpirun -n 2 ../smoketest_MPI && - test `ls -1 perfflow.$(hostname).[0-9]*.pfw 2>/dev/null | wc -l` -eq 0 && - if test `ls -1 perfflow.$(hostname).[0-9]*.pfw 2>/dev/null | wc -l` -gt 0; then rm -f perfflow.$(hostname).[0-9]*.pfw; fi -' + test_expect_success 'PERFFLOW_OPTIONS: disable logging smoketest_MPI' ' + PERFFLOW_OPTIONS="log-enable=False" mpirun -n 2 ../smoketest_MPI && + test `ls -1 perfflow.$(hostname).[0-9]*.pfw 2>/dev/null | wc -l` -eq 0 && + if test `ls -1 perfflow.$(hostname).[0-9]*.pfw 2>/dev/null | wc -l` -gt 0; then rm -f perfflow.$(hostname).[0-9]*.pfw; fi + ' -test_expect_success 'PERFFLOW_OPTIONS: enable logging smoketest_MPI' ' - PERFFLOW_OPTIONS="log-enable=True" mpirun -n 2 ../smoketest_MPI && - test `ls -1 perfflow.$(hostname).[0-9]*.pfw 2>/dev/null | wc -l` -eq 2 && - rm perfflow.$(hostname).[0-9]*.pfw -' + test_expect_success 'PERFFLOW_OPTIONS: enable logging smoketest_MPI' ' + PERFFLOW_OPTIONS="log-enable=True" mpirun -n 2 ../smoketest_MPI && + test `ls -1 perfflow.$(hostname).[0-9]*.pfw 2>/dev/null | wc -l` -eq 2 && + rm perfflow.$(hostname).[0-9]*.pfw + ' +else + say "Skipping MPI smoketests...disabled in the build." +fi test_expect_success 'PERFFLOW_OPTIONS: use compact format smoketest' ' PERFFLOW_OPTIONS="log-event=compact" ../smoketest &&