prototorch_models/tests/test_examples.sh

17 lines
311 B
Bash
Raw Normal View History

2021-05-21 16:16:17 +00:00
#! /bin/bash
failed=0
2021-05-21 16:16:17 +00:00
for example in $(find $1 -maxdepth 1 -name "*.py")
do
echo -n "$x" $example '... '
export DISPLAY= && python $example --fast_dev_run 1 &> /dev/null
2021-05-21 16:16:17 +00:00
if [[ $? -ne 0 ]]; then
echo "Failed!!!!"
failed=1
else
echo "Success."
2021-05-21 16:16:17 +00:00
fi
done
exit $failed