From eaf0a318c69169024e70e067b4043f49d37de8fa Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 17 Jan 2011 14:34:25 +0100 Subject: [PATCH] Extra test on has preferred status in log --- test/test_preferred.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/test_preferred.sh b/test/test_preferred.sh index 789fffe..fe1f71b 100755 --- a/test/test_preferred.sh +++ b/test/test_preferred.sh @@ -17,6 +17,19 @@ srcdir=${srcdir:-"."} ${srcdir}/run_pazpar2.sh test_preferred E=$? +grep "has preferred" pazpar2.log > test_preferred.log +# +if [ -f test_preferred.res ] ; then + diff test_preferred.res test_preferred.log > test_preferred.dif + E2=$? + if [ $E2 -ne 0 ] ; then + E=$E2 + fi +else + echo "Making test_preferred.res for first time." + mv test_preferred.log test_preferred.res +fi + #kill `cat ztest.pid` #rm ztest.pid exit $E -- 1.7.10.4