]> git.notmuchmail.org Git - notmuch/blob - performance-test/notmuch-perf-test
perf-test: split basic into 00-new, 01-dump-restore, and 02-tag
[notmuch] / performance-test / notmuch-perf-test
1 #!/usr/bin/env 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   00-new
21   01-dump-restore
22   02-tag
23 "
24
25 for test in $TESTS; do
26     ./$test "$@"
27 done