From 25e10a883d440191c75c1b18a6af24a4ec931348 Mon Sep 17 00:00:00 2001 From: sponce Date: Wed, 10 Aug 2016 09:23:35 +0000 Subject: [PATCH] If the code crash in the test-suite, also show the output of the code (Courtesy of Martin). git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12707 c92efa57-630b-4861-b058-cf58834340f0 --- test-suite/run-epw.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test-suite/run-epw.sh b/test-suite/run-epw.sh index bcedd1937..7828adbe1 100755 --- a/test-suite/run-epw.sh +++ b/test-suite/run-epw.sh @@ -27,11 +27,19 @@ then echo "Running PW ..." echo "${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/pw.x ${PARA_SUFFIX} < $2 > $3 2> $4" ${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/pw.x ${PARA_SUFFIX} < $2 > $3 2> $4 + if [[ -e CRASH ]] + then + cat $3 + fi elif [[ "$1" == "2" ]] then echo "Running PH ..." echo "${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/ph.x < $2 > $3 2> $4" ${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/ph.x < $2 > $3 2> $4 + if [[ -e CRASH ]] + then + cat $3 + fi echo "Gather results in save" python pp.py < pp.in elif [[ "$1" == "3" ]] @@ -39,6 +47,10 @@ then echo "Running EPW ..." echo "${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/epw.x ${PARA_SUFFIX} < $2 > $3 2> $4" ${PARA_PREFIX} ${ESPRESSO_ROOT}/bin/epw.x ${PARA_SUFFIX} < $2 > $3 2> $4 + if [[ -e CRASH ]] + then + cat $3 + fi fi #rm -f input_tmp.in