prototorch_models/tests/test_examples.sh
Alexander Engelsberger 419eca46af Add example test script
2021-05-21 18:16:17 +02:00

10 lines
204 B
Bash
Executable File

#! /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