2019-02-14 23:52:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cd onionr;
|
|
|
|
mkdir testdata;
|
2019-02-16 04:08:03 +00:00
|
|
|
ran=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-02-16 04:08:03 +00:00
|
|
|
rm -rf testdata;
|
|
|
|
echo "ran $ran test files successfully"
|