bolt/tests/run-it.sh

21 lines
317 B
Bash
Raw Normal View History

#!/usr/bin/bash
set -u
IT="$1"
# discover all the tests
TESTS=()
while IFS= read -r line; do
TESTS+=( "${line% *}" )
done < <( "$1" list-tests )
# execute all the tests, one by one
RESULT=0
for test in ${TESTS[@]}; do
echo "$test"
umockdev-wrapper "$IT" "$test"
((RESULT += $?))
done
exit $RESULT