Onionr/run_tests.sh

17 lines
231 B
Bash
Raw Normal View History

2019-02-14 23:52:08 +00:00
#!/bin/bash
cd onionr;
mkdir testdata;
ran=0
close () {
rm -rf testdata;
exit 10;
}
2019-02-14 23:52:08 +00:00
for f in tests/*.py; do
python3 "$f" || close # if needed
let "ran++"
2019-02-14 23:52:08 +00:00
done
rm -rf testdata;
echo "ran $ran test files successfully"