Tuning test output for LB >= 2.0 (no lb4agu yet).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 27 Apr 2010 13:00:48 +0000 (13:00 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 27 Apr 2010 13:00:48 +0000 (13:00 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-ws.sh

index 94ff4ec..65824ac 100755 (executable)
@@ -90,7 +90,7 @@ test_start
 
 # check_binaries
 printf "Testing if all binaries are available"
-check_binaries $GRIDPROXYINFO $SYS_GREP $SYS_SED $SYS_AWK $LB4AGUACTINFO $LBJOBREG $LBWSJOBSTATUS $LBWSJOBLOG
+check_binaries $GRIDPROXYINFO $SYS_GREP $SYS_SED $SYS_AWK $LBJOBREG $LBWSJOBSTATUS $LBWSJOBLOG
 if [ $? -gt 0 ]; then
        test_failed
 else
@@ -145,23 +145,27 @@ else
                        fi
 
                        printf "Is it possible to retrieve AGU activity info?"
-
-                       ${LB4AGUACTINFO} -j ${jobid} -m ${servername}:${GLITE_LB_SERVER_WPORT} | $SYS_GREP "${jobid}" >> /dev/null
-                       if [ $? = 0 ]; then
-                               test_done
+                       check_binaries ${LB4AGUACTINFO} ${LB4AGUACTSTATUS}
+                       if [ $? -gt 0 ]; then
+                               test_missed
                        else
-                               test_failed
-                               print_error "Job Activity Info returned"
-                       fi
-
-                       printf "Does AGU activity status return correct state?"
-
-                       ${LB4AGUACTSTATUS} -j ${jobid} -m ${servername}:${GLITE_LB_SERVER_WPORT} | $SYS_GREP "urn:org.glite.lb:Submitted" >> /dev/null
-                       if [ $? = 0 ]; then
-                               test_done
-                       else
-                               test_failed
-                               print_error "Reported status is Running"
+                               ${LB4AGUACTINFO} -j ${jobid} -m ${servername}:${GLITE_LB_SERVER_WPORT} | $SYS_GREP "${jobid}" >> /dev/null
+                               if [ $? = 0 ]; then
+                                       test_done
+                               else
+                                       test_failed
+                                       print_error "Job Activity Info returned"
+                               fi
+
+                               printf "Does AGU activity status return correct state?"
+
+                               ${LB4AGUACTSTATUS} -j ${jobid} -m ${servername}:${GLITE_LB_SERVER_WPORT} | $SYS_GREP "urn:org.glite.lb:Submitted" >> /dev/null
+                               if [ $? = 0 ]; then
+                                       test_done
+                               else
+                                       test_failed
+                                       print_error "Reported status is Running"
+                               fi
                        fi
 
                        #Purge test job