imgin/run_tests.sh

14 lines
228 B
Bash
Raw Normal View History

2021-10-03 00:56:33 +00:00
#!/bin/bash
ran=0
2021-10-11 01:44:23 +00:00
SECONDS=0 ;
2021-10-03 00:56:33 +00:00
close () {
exit 10;
}
for f in tests/*.py; do
2021-10-11 01:44:23 +00:00
python3 "$f" || close & # if needed
2021-10-03 00:56:33 +00:00
let "ran++"
done
echo "ran $ran test files successfully in $SECONDS seconds"
rm -f *.dat
2021-10-11 01:44:23 +00:00
rm -rf /tmp/imgin*