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;
|
2019-02-16 04:08:03 +00:00
|
|
|
ran=0
|
2019-02-17 18:20:10 +00:00
|
|
|
|
2019-02-19 22:14:06 +00:00
|
|
|
SECONDS=0 ;
|
2019-02-17 18:20:10 +00:00
|
|
|
close () {
|
|
|
|
rm -rf testdata;
|
|
|
|
exit 10;
|
|
|
|
}
|
|
|
|
|
2019-02-14 23:52:08 +00:00
|
|
|
for f in tests/*.py; do
|
2019-02-17 18:20:10 +00:00
|
|
|
python3 "$f" || close # if needed
|
2019-02-16 04:08:03 +00:00
|
|
|
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"
|