From: Zdeněk Šustr Date: Mon, 30 Apr 2012 10:03:46 +0000 (+0000) Subject: Adding a test for SB #92806 X-Git-Tag: merge_torque_to_head_after~29 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8d79a0d4be44451ffc4c94bbc7f468aa7d14dfec;p=jra1mw.git Adding a test for SB #92806 --- diff --git a/org.glite.testsuites.ctb/PX/tests/px-test-all.sh b/org.glite.testsuites.ctb/PX/tests/px-test-all.sh index 0ae715d..233aff7 100755 --- a/org.glite.testsuites.ctb/PX/tests/px-test-all.sh +++ b/org.glite.testsuites.ctb/PX/tests/px-test-all.sh @@ -270,6 +270,41 @@ if [ "$UTOPIA" != "" ]; then fi +printf "Checking VOMS attributes size to decide if it's possible to determine the status of bug #92806 (regression into bug #92806)... " +attrsize=`voms-proxy-info -all | grep ^attribute | sed -r 's/attribute\s*:\s*//' | wc -c` +if [ "$attrsize" == "" ]; then + attrsize=0 +fi +if [ $attrsize -gt 1024 ]; then + printf "Registering proxy for renewal" + ORIG_PROXY=`voms-proxy-info | grep -E "^path" | sed 's/^path\s*:\s*//'` + REGISTERED=`glite-proxy-renew -s localhost -f $ORIG_PROXY -j $JOBID start` + + if [ "$REGISTERED" = "" ]; then + printf "failed to renew with $attrsize bytes of attributes" + test_failed + print_error "Could not set renewal" + else + printf "renewed with $attrsize bytes of attributes" + test_done + + printf "Stopping renewal... " + glite-proxy-renew -j $JOBID stop; + if [ $? -eq 0 ]; then + test_done + else + test_failed + print_error "Failed to stop" + fi + + fi +else + printf "only $attrsize bytes of attributes" + test_skipped +fi + + + test_end }