Add summary of verification on test driver (#749)
author김용섭/동작제어Lab(SR)/Engineer/삼성전자 <yons.kim@samsung.com>
Tue, 17 Apr 2018 07:25:45 +0000 (16:25 +0900)
committer오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 17 Apr 2018 07:25:45 +0000 (16:25 +0900)
Enables test driver to print summary(tap) of the result on verification

Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
tools/test_driver/test_driver.sh

index e9b9173..b0cb7d7 100755 (executable)
@@ -173,12 +173,21 @@ if [ "$ALLTEST_ON" == "true" ] || [ "$VERIFICATION_ON" == "true" ]; then
     if [ -z "$DRIVER_BIN" ]; then
         DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/nnapi_test
     fi
-    export DRIVER_BIN=$DRIVER_BIN
+
+    if [ ! -e "$ARTIFACT_PATH/report" ]; then
+        mkdir -p $ARTIFACT_PATH/report
+    fi
+
     echo ""
-    echo "Verification with nnapi_test"
-    echo "======================"
-    $RUN_TEST_SH
-    echo "======================"
+    echo "============================================"
+    echo "Verification with nnapi_test..."
+    $RUN_TEST_SH --driverbin=$DRIVER_BIN \
+        --reportdir=$ARTIFACT_PATH/report \
+        --tapname=verification.tap \
+        > $ARTIFACT_PATH/report/verification.log 2>&1
+    echo "============================================"
+    cat $ARTIFACT_PATH/report/verification.tap
+    echo "============================================"
     echo ""
 fi