gzip/tests/gating/all.sh
Jakub Martisko ab0d495421 Add gating tests
Resolves: rhbz#1986357
2021-07-30 13:43:27 +02:00

22 lines
430 B
Bash
Executable File

#!/bin/bash
passed=0
subtests=(./gzip ./gunzip ./gzexe ./zcat ./zcmp ./zdiff ./zegrep ./zfgrep ./zforce ./zgrep ./zless ./zmore ./znew)
total=${#subtests[@]}
for subtest in ${subtests[@]}
do
pushd $subtest >/dev/null
./test.sh
result=$?
echo "Test $subtest result: $result"
if [ "$result" == "0" ]
then
((passed++))
fi
popd >/dev/null
done
echo "Passed $passed/$total tests"
[[ $total == $passed ]] || exit 1