test runner: print some infos to ease debugging before comparing the simulation results

This commit is contained in:
Andreas Lauser
2013-01-30 15:39:10 +01:00
parent f5d6db8bc8
commit 973e5349f0

View File

@@ -79,7 +79,7 @@ case "$TEST_TYPE" in
echo "######################"
SIM_NAME=$(grep "Initializing problem" test-$RND.log | sed "s/.*\"\(.*\)\".*/\1/" | head -n1)
NUM_TIMESTEPS=$(grep "Writing result" test-$RND.log | wc -l)
TEST_RESULT=$(printf "%s-%05i" $SIM_NAME $NUM_TIMESTEPS)
TEST_RESULT=$(printf "%s-%05i" "$SIM_NAME" "$NUM_TIMESTEPS")
TEST_RESULT=$(ls $TEST_RESULT.*)
rm "test-$RND.log"
if ! test -r "$TEST_RESULT"; then
@@ -87,7 +87,12 @@ case "$TEST_TYPE" in
exit 1
fi
validateResults $TEST_RESULT $SIM_NAME
echo "RND: '$RND'"
echo "Simulation name: '$SIM_NAME'"
echo "Number of timesteps: '$NUM_TIMESTEPS'"
echo "Test result file: '$TEST_RESULT'"
validateResults "$TEST_RESULT" "$SIM_NAME"
exit 0
;;