gicmo / rpms / bolt

Forked from rpms/bolt 4 years ago
Clone
Blob Blame History Raw
#!/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