onionr/run_tests.sh

25 lines
421 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
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
echo "ran $ran unittests. Unittest Time: $SECONDS"
ran=0;
for f in tests/integration-tests/*.py; do
python3 "$f" || close # if needed
let "ran++"
done
echo "ran $ran integration test tests."
echo "total test time $SECONDS"