Gavin Howard | 9269c2d | 2018-03-30 11:40:59 -0600 | [diff] [blame] | 1 | #! /bin/sh |
Gavin Howard | 96ac4e2 | 2018-02-14 17:12:51 -0700 | [diff] [blame] | 2 | |
Gavin Howard | 7a08da2 | 2018-03-30 11:26:39 -0600 | [diff] [blame] | 3 | set -e |
4 | |||||
Gavin Howard | 9b3739a | 2018-02-15 15:02:37 -0700 | [diff] [blame] | 5 | script="$0" |
6 | |||||
7 | testdir=$(dirname "$script") | ||||
8 | |||||
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 9 | if [ "$#" -lt 1 ]; then |
Gavin Howard | 9b3739a | 2018-02-15 15:02:37 -0700 | [diff] [blame] | 10 | bc="$testdir/../bc" |
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 11 | else |
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 12 | bc="$1" |
Gavin Howard | 14c4d45 | 2018-09-11 12:20:54 -0600 | [diff] [blame^] | 13 | shift |
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 14 | fi |
15 | |||||
Gavin Howard | 9269c2d | 2018-03-30 11:40:59 -0600 | [diff] [blame] | 16 | while read t; do |
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 17 | |
Gavin Howard | d43ae75 | 2018-09-06 19:36:18 -0600 | [diff] [blame] | 18 | sh "$testdir/test.sh" "$t" "$bc" "$@" |
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 19 | |
Gavin Howard | 9269c2d | 2018-03-30 11:40:59 -0600 | [diff] [blame] | 20 | done < "$testdir/all.txt" |
Gavin Howard | 85d68e3 | 2018-02-15 14:28:50 -0700 | [diff] [blame] | 21 | |
Gavin Howard | d43ae75 | 2018-09-06 19:36:18 -0600 | [diff] [blame] | 22 | sh "$testdir/scripts.sh" "$bc" "$@" |
Gavin Howard | 4efa244 | 2018-09-10 09:57:41 -0600 | [diff] [blame] | 23 | sh "$testdir/errors.sh" "$bc" "$@" |