]> git.notmuchmail.org Git - notmuch/blobdiff - test/notmuch-test
test:Folder tags shouldn't match after removal of file in given folder
[notmuch] / test / notmuch-test
index 9f58c129206d42e0005522ba6dc8d321181cda30..79e6267b803252ccf92b1df2f5e7d56bdbbd7f41 100755 (executable)
@@ -40,15 +40,25 @@ TESTS="
   emacs-large-search-buffer
   maildir-sync
   crypto
+  symbol-hiding
+  search-folder-coherence
 "
 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