X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fbasic;h=725c753885d27a7785406985a25239cc7645e3c7;hb=f6ec7ca78f867c2ae27d0dba154a2395ccf15f52;hp=eb109533c9d6b9ec56416283c176982c7c92cb67;hpb=7263aa9ec3f72bb65a491b2c64345ab5258b24ee;p=notmuch diff --git a/test/basic b/test/basic index eb109533..725c7538 100755 --- a/test/basic +++ b/test/basic @@ -49,6 +49,12 @@ test_expect_code 2 'failure to clean up causes the test to fail' ' test_when_finished "(exit 2)" ' +# Ensure that all tests are being run +test_begin_subtest 'Ensure that all available tests will be run by notmuch-test' +tests_in_suite=$(grep TESTS= ../notmuch-test | sed -e "s/TESTS=\"\(.*\)\"/\1/" | tr " " "\n" | sort) +available=$(ls -1 ../ | grep -v -E "^(aggregate-results.sh|Makefile|Makefile.local|notmuch-test|README|test-lib.sh|test-results|tmp.*|valgrind|corpus*|emacs.expected-output|smtp-dummy|smtp-dummy.c)" | sort) +test_expect_equal "$tests_in_suite" "$available" + ################################################################ # Test mail store prepared in test-lib.sh @@ -68,6 +74,6 @@ test_expect_success \ test_expect_success \ 'PATH is set to this repository' \ - 'test "`echo $PATH|cut -f1 -d:`" = "`dirname ${TEST_DIRECTORY}`"' + 'test "`echo $PATH|cut -f1 -d: | sed -e 's,/test/valgrind/bin$,,'`" = "`dirname ${TEST_DIRECTORY}`"' test_done