]> git.notmuchmail.org Git - notmuch/blobdiff - test/notmuch-test
test: add tests for hooks
[notmuch] / test / notmuch-test
index 5aced5cef9fdb98cd1c213486de1e0f008371c90..ded79e8f703283fa1934add756babb8009d99198 100755 (executable)
@@ -47,6 +47,9 @@ TESTS="
   symbol-hiding
   search-folder-coherence
   atomicity
+  python
+  hooks
+  argument-parsing
 "
 TESTS=${NOTMUCH_TESTS:=$TESTS}
 
@@ -61,10 +64,13 @@ else
     TEST_TIMEOUT_CMD=""
 fi
 
+trap 'e=$?; kill $!; exit $e' HUP INT TERM
 # Run the tests
 for test in $TESTS; do
-    $TEST_TIMEOUT_CMD ./$test "$@"
+    $TEST_TIMEOUT_CMD ./$test "$@" &
+    wait $!
 done
+trap - HUP INT TERM
 
 # Report results
 ./aggregate-results.sh test-results/*