]> git.notmuchmail.org Git - notmuch/blobdiff - test/notmuch-test
test: Fix test suite to integrate with our non-recursive Makefile system.
[notmuch] / test / notmuch-test
index 5c066ed19becdeea05c70a5a624342f2e2075bf4..8ff21cc687386e959f343d1a410483067517df28 100755 (executable)
@@ -1,4 +1,23 @@
-#!/bin/bash
+#!/bin/sh
 
-cd $(dirname $0)
-make
+# Run tests
+#
+# Copyright (c) 2005 Junio C Hamano
+#
+# Adapted from a Makefile to a shell script by Carl Worth (2010)
+
+cd $(dirname "$0")
+
+# Clean up any results from a previous run
+rm -r test-results >/dev/null 2>/dev/null
+
+# Run the tests
+for test in t[0-9][0-9][0-9][0-9]*.sh; do
+       ./"$test"
+done
+
+# Report results
+./aggregate-results.sh test-results/t*-*
+
+# Clean up
+rm -r test-results