Add example test script

This commit is contained in:
Alexander Engelsberger
2021-05-21 18:16:17 +02:00
parent 5b12629bd9
commit 419eca46af
2 changed files with 11 additions and 0 deletions

10
tests/test_examples.sh Executable file
View File

@@ -0,0 +1,10 @@
#! /bin/bash
for example in $(find $1 -maxdepth 1 -name "*.py")
do
echo "test:" $example
export DISPLAY= && python $example --fast_dev_run 1
if [[ $? -ne 0 ]]; then
exit 1
fi
done