aboutsummaryrefslogtreecommitdiff
path: root/test/notmuch-test
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-09-17 12:10:54 -0700
committerCarl Worth <cworth@cworth.org>2010-09-17 12:16:10 -0700
commite6ba2c63c9ba3d8999bd2f1c5eac3c5bf7c14167 (patch)
treea8f6a53119f082e84283c9d4fd924862252d6d65 /test/notmuch-test
parent7a72999fad235deddb1364b8667f7012939ab385 (diff)
test: Fix test suite to integrate with our non-recursive Makefile system.
This avoids "make test" emitting messages from three (3!) recursive invocations of make. We change the invocations of the tests themselves to occur directly from the shell script rather than having the shell script invoke make again and using wildcards in the Makefile.
Diffstat (limited to 'test/notmuch-test')
-rwxr-xr-xtest/notmuch-test25
1 files changed, 22 insertions, 3 deletions
diff --git a/test/notmuch-test b/test/notmuch-test
index 5c066ed..8ff21cc 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -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