From: Zdeněk Šustr Date: Mon, 5 Mar 2012 09:12:45 +0000 (+0000) Subject: Test interpretable DEFVERSION X-Git-Tag: glite-jobid-api-c_R_2_1_2_1~74 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=c4559d6c1601d9256c52300b1c11344deea58c0e;p=jra1mw.git Test interpretable DEFVERSION --- 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