Files
Pyarmor-Static-Unpack-1shot/tests/all_tests.sh
Michael Hansen 697aa5d2c3 Simplify the output of decompyle_test.sh, and actually fail the
check target when a test fails.
2019-10-03 16:05:30 -07:00

14 lines
330 B
Bash
Executable File

#!/bin/bash
srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"
test_status=0
test_files=( "$srcdir"/tests/tokenized/*.txt )
for tf in "${test_files[@]}"; do
test_name="$(basename "$tf")"
test_name="${test_name%.txt}"
"$srcdir"/tests/decompyle_test.sh $test_name tests || test_status=1
done
exit $test_status