Check or get proxy
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 14 Nov 2011 11:31:45 +0000 (11:31 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 14 Nov 2011 11:31:45 +0000 (11:31 +0000)
org.glite.testsuites.ctb/PX/tests/px-test-all.sh

index b5ba022..742d4fe 100755 (executable)
@@ -83,7 +83,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
+check_binaries curl rm chown openssl sleep voms-proxy-info grep sed glite-proxy-renew
 if [ $? -gt 0 ]; then
        test_failed
        exit 2
@@ -91,6 +91,13 @@ else
        test_done
 fi
 
+printf "Testing credentials"
+check_credentials_and_generate_proxy
+if [ $? != 0 ]; then
+        test_end
+        exit 2
+fi
+
 JOBID=https://fake.job.id/xxx
 
 ORIG_PROXY=`voms-proxy-info | grep -E "^path" | sed 's/^path\s*:\s*//'`