X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test;h=113ea7cf3330ee8b51fdf9fde3c2ec5fd3ec524c;hb=6cca3a5c16dac539db135920bc9ef9c5d237a1d5;hp=c81e3fc037301a328f0395b20dfa470ce5935dc9;hpb=3fa843216c918fe4a6151e55947cf3a7f46fcdb5;p=notmuch diff --git a/test/notmuch-test b/test/notmuch-test index c81e3fc0..113ea7cf 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -18,12 +18,16 @@ cd $(dirname "$0") TESTS=" basic + help-test new + count search search-output search-by-folder search-position-overlap-bug search-insufficient-from-quoting + search-limiting + tagging json multipart thread-naming @@ -39,15 +43,28 @@ TESTS=" emacs emacs-large-search-buffer maildir-sync + crypto + symbol-hiding + search-folder-coherence + atomicity + python " TESTS=${NOTMUCH_TESTS:=$TESTS} # Clean up any results from a previous run rm -r test-results >/dev/null 2>/dev/null +# test for timeout utility +if command -v timeout >/dev/null; then + TEST_TIMEOUT_CMD="timeout 2m " + echo "INFO: using 2 minute timeout for tests" +else + TEST_TIMEOUT_CMD="" +fi + # Run the tests for test in $TESTS; do - ./$test "$@" + $TEST_TIMEOUT_CMD ./$test "$@" done # Report results