This makes `bats` accumulate tests and run all of them with a global
progress, which is much better.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
"config/pass/everything"
)
bats_bin="$(pwd)/bats/bin/bats"
-rc=0
if [ -z "${CC+x}" ]; then
# default to gcc
export CC=gcc
fi
-for d in "${test_dirs[@]}"; do
- pushd "$d" >/dev/null
- $bats_bin "${@}" .
- if [ $? -ne 0 ]; then
- # latch error, but continue other tests
- rc=1
- fi
- popd >/dev/null
-done
-
-exit $rc
+"$bats_bin" "${test_dirs[@]}"