added cleanup script to remove all binary files from directories

This commit is contained in:
Bryan Herman 2014-02-21 10:21:32 -05:00
parent e3a45bce3b
commit e63746cdb8

14
tests/cleanup.bash Executable file
View file

@ -0,0 +1,14 @@
# This simple script ensures that all binary
# output files have been deleted in all the
# folders. This can occur if a previous error
# occurred and the test suite was rerun without
# deleting left over binary files. This will
# cause an assertion error in some of the
# tests.
for i in ./*; do
if [ -d "$i" ]; then
cd $i
rm -f *.binary *.h5
cd ..
fi
done