[Example/group1A] Allow to print out out of ssat.sh
[platform/upstream/SSAT.git] / exampleCase / group1A / runTest.sh
index 56802ff..85a9d39 100755 (executable)
@@ -1,16 +1,32 @@
 #!/usr/bin/env bash
 
-if [[ "$SSATAPILOADED" == "1" ]]
+if [[ "$SSATAPILOADED" != "1" ]]
 then
-       echo "Loaded"
-else
        echo "Not Loaded"
+       SILENT=0
+       search="ssat-api.sh"
+       source $search
+
+       retcode=$?
+       count=0
+       while (( ${retcode} != 0 ))
+       do
+               count=$((count+1))
+               if (( ${count} > 5 ))
+               then
+                       break
+               fi
+
+               search="../${search}"
+               source $search
+               retcode=$?
+       done
 fi
+
 testInit
 
 testResult 1 T1 "Dummy Test 1"
 testResult 1 T2 "Dummy Test 2"
 testResult 0 T3 "Dummy Test 3" 1
 
-
 report