]> ocean-lang.org Git - ocean/commitdiff
oceani-tests: make it possible to skip valgrind tests.
authorNeilBrown <neil@brown.name>
Sat, 30 Oct 2021 04:00:03 +0000 (15:00 +1100)
committerNeilBrown <neil@brown.name>
Sun, 7 Nov 2021 00:19:49 +0000 (11:19 +1100)
valgrind tests are slow and not always wanted, particilarly when
examining coverage.  So make it easy to skip them.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/oceani-tests.mdc

index 55e8477468518ee120591502b99ae489c5d94d95..3bda937990931927d72c41a28c2e599fcd583aff 100644 (file)
@@ -84,7 +84,7 @@ arguments separated from the name by commas.  For each test, there is a section
                        coverage/oceani.mdc.gcov
                @rm -f .tmp*
 
-               @for T in $(oceani_tests); do \
+               @[ -n "$$SKIP_VALGRIND" ] || for T in $(oceani_tests); do \
                    echo -n "Valgrind $$T.. "; \
                    i="$$IFS"; IFS=,; set $$T; IFS="$$i"; t=$$1; shift; \
                    if ! valgrind --error-exitcode=1 --log-file=.tmp.valg ./oceani --section "test: $$t" oceani-tests.mdc $${1+"$$@"} \