blob: b2c68b4a60b662a85307db24ebe32e0fea5f24d2 [file] [log] [blame]
Gavin Howard9269c2d2018-03-30 11:40:59 -06001#! /bin/sh
Gavin Howard96ac4e22018-02-14 17:12:51 -07002
Gavin Howard7a08da22018-03-30 11:26:39 -06003set -e
4
Gavin Howard9b3739a2018-02-15 15:02:37 -07005script="$0"
6
7testdir=$(dirname "$script")
8
Gavin Howard85d68e32018-02-15 14:28:50 -07009if [ "$#" -lt 1 ]; then
Gavin Howard9b3739a2018-02-15 15:02:37 -070010 bc="$testdir/../bc"
Gavin Howard85d68e32018-02-15 14:28:50 -070011else
Gavin Howard85d68e32018-02-15 14:28:50 -070012 bc="$1"
Gavin Howard14c4d452018-09-11 12:20:54 -060013 shift
Gavin Howard85d68e32018-02-15 14:28:50 -070014fi
15
Gavin Howard9269c2d2018-03-30 11:40:59 -060016while read t; do
Gavin Howard85d68e32018-02-15 14:28:50 -070017
Gavin Howardd43ae752018-09-06 19:36:18 -060018 sh "$testdir/test.sh" "$t" "$bc" "$@"
Gavin Howard85d68e32018-02-15 14:28:50 -070019
Gavin Howard9269c2d2018-03-30 11:40:59 -060020done < "$testdir/all.txt"
Gavin Howard85d68e32018-02-15 14:28:50 -070021
Gavin Howardd43ae752018-09-06 19:36:18 -060022sh "$testdir/scripts.sh" "$bc" "$@"
Gavin Howard4efa2442018-09-10 09:57:41 -060023sh "$testdir/errors.sh" "$bc" "$@"