Permalink
Browse files

Add hook to TestWithReference.sh so I can update test output with DIF…

…F=diffupdate
  • Loading branch information...
jedbrown committed Oct 21, 2011
1 parent 292ad8f commit 4ef5ebf47c26b2acedebee186025d97093d2415f
Showing with 3 additions and 2 deletions.
  1. +3 −2 TestWithReference.sh
View
@@ -7,9 +7,10 @@ mpi_np="$2"
refout="$3"
name="$4"
shift 4
+[ ${DIFF} ] || DIFF="diff"
tmpout="${name}.tmp"
echo :: "${mpiexec}" -n ${mpi_np} "./${name}" "$@" || exit 1
"${mpiexec}" -n ${mpi_np} "./${name}" "$@" > "${tmpout}" || exit 1
-diff -u ${refout} ${tmpout} || exit 1
-rm "${tmpout}"
+${DIFF} -u ${refout} ${tmpout} || exit 1
+rm -f "${tmpout}"

0 comments on commit 4ef5ebf

Please sign in to comment.