Onionr/run_tests.sh

17 lines
253 B
Bash
Raw Normal View History

2019-02-14 23:52:08 +00:00
#!/bin/bash
2019-02-19 22:14:06 +00:00
rm -rf testdata;
2019-02-14 23:52:08 +00:00
mkdir testdata;
ran=0
2019-02-19 22:14:06 +00:00
SECONDS=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
2019-09-13 02:22:25 +00:00
echo "ran $ran test files successfully in $SECONDS seconds"