X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fnotmuch-test;h=738f8f64f22c3d03c9a43cd8e8d407040b7b93a6;hp=1e9f54ee1a489ccc3e06bbf7c48a1221bedce129;hb=7a306e12c86ce0e419c91a20dd4ff79a27e89233;hpb=99ad348deb8282185ae56a51dc4af02f3c241f97 diff --git a/test/notmuch-test b/test/notmuch-test index 1e9f54ee..738f8f64 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run tests # @@ -23,8 +23,9 @@ TESTS=" search-output search-by-folder search-position-overlap-bug - search-lwn + search-insufficient-from-quoting json + multipart thread-naming raw reply @@ -36,19 +37,33 @@ TESTS=" long-id encoding emacs + emacs-large-search-buffer maildir-sync + crypto + symbol-hiding + search-folder-coherence + atomicity " +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 ./aggregate-results.sh test-results/* # Clean up -rm -r test-results corpus.mail +rm -rf test-results corpus.mail