X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fnotmuch-test;h=fe85c6a4032f9fbd2e88ad5a2bf9afce067e8679;hb=b4c9ee2809ab923727f30ab1b0d63cb5232478cb;hp=c81e3fc037301a328f0395b20dfa470ce5935dc9;hpb=3fa843216c918fe4a6151e55947cf3a7f46fcdb5;p=notmuch diff --git a/test/notmuch-test b/test/notmuch-test index c81e3fc0..fe85c6a4 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -39,15 +39,25 @@ TESTS=" emacs emacs-large-search-buffer maildir-sync + crypto + symbol-hiding " 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