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
|
|
|
|
2020-02-08 09:07:07 +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
|
2020-02-08 09:07:07 +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
|
2022-05-01 05:45:26 +00:00
|
|
|
for f in tests/gossip-unittests/*.py; do
|
|
|
|
python3 "$f" || close # if needed
|
|
|
|
let "ran++"
|
|
|
|
done
|
2020-02-08 09:07:07 +00:00
|
|
|
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
|
2020-02-28 09:49:30 +00:00
|
|
|
echo "ran $ran integration tests."
|
2020-02-08 09:07:07 +00:00
|
|
|
echo "total test time $SECONDS"
|
2020-02-28 09:49:30 +00:00
|
|
|
ran=0;
|
|
|
|
|
2020-03-14 05:56:10 +00:00
|
|
|
#for f in tests/browser-tests/*.py; do
|
|
|
|
# python3 "$f" || close # if needed
|
|
|
|
# let "ran++"
|
|
|
|
#done
|
|
|
|
#echo "ran $ran browser tests."
|
|
|
|
#echo "total test time $SECONDS"
|