diff options
author | Carl Worth <cworth@cworth.org> | 2010-09-20 12:41:10 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-09-20 12:41:10 -0700 |
commit | 265de5006f08a90371cc9caec0c0e6f702f42204 (patch) | |
tree | 5c56770cfd3277a8f10fd6a394ab44b3cb1d71b4 /test | |
parent | 7263aa9ec3f72bb65a491b2c64345ab5258b24ee (diff) |
test: Add test to ensure that all available test scripts are run
Since we are now using an explicit list of tests to run in
notmuch-test we need to be careful that we don't add a new file of
tests and then forget to add it to the list.
Diffstat (limited to 'test')
-rwxr-xr-x | test/basic | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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.*)" | sort) +test_expect_equal "$tests_in_suite" "$available" + ################################################################ # Test mail store prepared in test-lib.sh |