X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test;h=adfd589fe0765d19d575d4714f59ef4f352b6022;hb=990ad976639e0c6d835177f94b5de60b01ea1ade;hp=c81e3fc037301a328f0395b20dfa470ce5935dc9;hpb=3fa843216c918fe4a6151e55947cf3a7f46fcdb5;p=notmuch diff --git a/test/notmuch-test b/test/notmuch-test index c81e3fc0..adfd589f 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -19,11 +19,14 @@ cd $(dirname "$0") TESTS=" basic 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 +42,27 @@ TESTS=" emacs emacs-large-search-buffer maildir-sync + crypto + symbol-hiding + search-folder-coherence + atomicity " 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