prototorch_models/tests/test_examples.sh
2021-05-21 18:48:37 +02:00

17 lines
311 B
Bash
Executable File

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