test: allow specifying tests to run with NOTMUCH_TESTS env var
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 7 May 2011 19:08:34 +0000 (12:08 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 23 May 2011 21:55:27 +0000 (14:55 -0700)
This is useful for just running a specific subset of tests, ie:

NOTMUCH_TESTS=crypto make test

test/notmuch-test

index 72f1eecc6185b1f4f005beb4f90f6f4bac2a7c19..adc657d2d220d0a4bde7873bec80eff1fa18bf77 100755 (executable)
@@ -40,6 +40,7 @@ TESTS="
   emacs-large-search-buffer
   maildir-sync
 "
+TESTS=${NOTMUCH_TESTS:=$TESTS}
 
 # Clean up any results from a previous run
 rm -r test-results >/dev/null 2>/dev/null