From c4559d6c1601d9256c52300b1c11344deea58c0e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Mon, 5 Mar 2012 09:12:45 +0000 Subject: [PATCH] Test interpretable DEFVERSION --- .../gridsite/tests/gridsite-test-all.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh b/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh index dde45f5..529dcfe 100755 --- a/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh +++ b/org.glite.testsuites.ctb/gridsite/tests/gridsite-test-all.sh @@ -84,7 +84,7 @@ test_start # check_binaries printf "Testing if all binaries are available" -check_binaries curl rm chown openssl htcp htls htmv htcp htrm htls htls htproxydestroy awk sed openssl tail head +check_binaries curl rm chown openssl htcp htls htmv htcp htrm htls htls htproxydestroy awk sed openssl tail head sort if [ $? -gt 0 ]; then test_failed else @@ -527,6 +527,17 @@ EOF fi done + printf "Check interpretable DEFVERSION... " + GRIDSITEVERSION=`rpm -q gridsite-shared | grep -E -o "gridsite-shared-[0-9]+\.[0-9]+" | sed 's/shared-//'` + DEFVERSION=`grep "^DEFVERSION" /usr/share/doc/${GRIDSITEVERSION}/VERSION | sed 's/DEFVERSION[ \t]*=[ \t]*//'` + printf "Oct %o, Hex %x" $DEFVERSION $DEFVERSION + if [ $? -eq 0 ]; then + test_done + else + test_failed + print_error "Failed to interpret DEFVERSION as a number" + fi + test_end } #} &> $logfile -- 1.8.2.3