Commit ef521fcb authored by Philip Carns's avatar Philip Carns

make regression tests not stop on failure

parent f0d131f0
......@@ -45,14 +45,21 @@ fi
# set up environment for tests according to platform
source $DARSHAN_TESTDIR/$DARSHAN_PLATFORM/env.sh
failure_count=0
for i in `ls $DARSHAN_TESTDIR/test-cases/*.sh`; do
echo Running ${i}...
$i
if [ $? -ne 0 ]; then
echo "Error: failed to execute test case $i"
exit 1
failure_count=$((failure_count+1))
fi
echo Done.
done
exit 0
if [ "$failure_count" -eq 0 ]; then
exit 0
else
echo $failure_count tests failed
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment