2017-04-18 22:22:05 +00:00
|
|
|
#!/bin/sh
|
2017-04-20 19:38:40 +00:00
|
|
|
|
2017-05-05 16:09:36 +00:00
|
|
|
# Run tests
|
2017-04-18 22:22:05 +00:00
|
|
|
cd "$(dirname "$0")"
|
2017-07-03 16:49:25 +00:00
|
|
|
exit_codes=()
|
2017-05-02 23:34:06 +00:00
|
|
|
for i in t*.sh;
|
2017-04-18 22:22:05 +00:00
|
|
|
do
|
|
|
|
echo "*** $i ***"
|
2017-05-05 16:09:36 +00:00
|
|
|
./$i
|
2017-07-03 16:49:25 +00:00
|
|
|
exit_codes+=($?)
|
2017-04-18 22:22:05 +00:00
|
|
|
done
|
2017-04-20 19:38:40 +00:00
|
|
|
|
|
|
|
# Aggregate Results
|
2017-04-28 03:20:29 +00:00
|
|
|
echo "Aggregating..."
|
2017-04-20 19:38:40 +00:00
|
|
|
for f in test-results/*.counts; do
|
|
|
|
echo "$f";
|
2017-04-28 03:20:29 +00:00
|
|
|
done | bash lib/sharness/aggregate-results.sh
|
2017-07-03 16:49:25 +00:00
|
|
|
|
|
|
|
# If any test fails error on exit
|
|
|
|
for exit_code in "${exit_codes[@]}"; do
|
|
|
|
if [[ $exit_code != 0 ]]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
done
|