]> git.notmuchmail.org Git - notmuch/blob - performance-test/notmuch-time-test
Merge branch 'release'
[notmuch] / performance-test / notmuch-time-test
1 #!/usr/bin/env bash
2
3 # Run tests
4 #
5 # Copyright (c) 2005 Junio C Hamano
6 # Copyright (c) 2010 Notmuch Developers
7 #
8 # Adapted from a Makefile to a shell script by Carl Worth (2010)
9
10 if [ ${BASH_VERSINFO[0]} -lt 4 ]; then
11     echo "Error: The notmuch test suite requires a bash version >= 4.0"
12     echo "due to use of associative arrays within the test suite."
13     echo "Please try again with a newer bash (or help us fix the"
14     echo "test suite to be more portable). Thanks."
15     exit 1
16 fi
17
18 cd "$(dirname "$0")"
19
20 for test in T*.sh; do
21     ./"$test" "$@"
22 done