]> git.notmuchmail.org Git - notmuch/blob - test/notmuch-test
search: Move lwn tests into their own file.
[notmuch] / test / notmuch-test
1 #!/bin/bash
2
3 # Run tests
4 #
5 # Copyright (c) 2005 Junio C Hamano
6 #
7 # Adapted from a Makefile to a shell script by Carl Worth (2010)
8
9 if [ ${BASH_VERSINFO[0]} -lt 4 ]; then
10     echo "Error: The notmuch test suite requires a bash version >= 4.0"
11     echo "due to use of associative arrays within the test suite."
12     echo "Please try again with a newer bash (or help us fix the"
13     echo "test suite to be more portable). Thanks."
14     exit 1
15 fi
16
17 cd $(dirname "$0")
18
19 TESTS="
20   basic
21   new
22   search
23   search-output
24   search-by-folder
25   search-position-overlap-bug
26   search-lwn
27   json
28   thread-naming
29   raw
30   reply
31   dump-restore
32   uuencode
33   thread-order
34   author-order
35   from-guessing
36   long-id
37   encoding
38   emacs
39   maildir-sync
40 "
41
42 # Clean up any results from a previous run
43 rm -r test-results >/dev/null 2>/dev/null
44
45 # Run the tests
46 for test in $TESTS; do
47         ./$test "$@"
48 done
49
50 # Report results
51 ./aggregate-results.sh test-results/*
52
53 # Clean up
54 rm -r test-results corpus.mail