prototorch_models/tests/test_examples.sh

10 lines
204 B
Bash
Raw Normal View History

2021-05-21 16:16:17 +00:00
#! /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