prototorch_models/tests/test_examples.sh
Jensun Ravichandran 3fa1fb54f1 Refactor tests
2021-05-25 21:28:05 +02:00

18 lines
309 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