Revise code of printing summary of framework test on test_driver.sh (#748)
author김용섭/동작제어Lab(SR)/Engineer/삼성전자 <yons.kim@samsung.com>
Tue, 17 Apr 2018 07:27:39 +0000 (16:27 +0900)
committer오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 17 Apr 2018 07:27:39 +0000 (16:27 +0900)
Revises code of printing summary of framework test on test_driver.sh by
applying options from run_test.sh.

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

index b0cb7d7..c5a5c2a 100755 (executable)
@@ -155,13 +155,20 @@ if [ "$ALLTEST_ON" == "true" ] || [ "$FRAMEWORKTEST_ON" == "true" ]; then
     if [ -z "$DRIVER_BIN" ]; then
         DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_run
     fi
-    export DRIVER_BIN=$DRIVER_BIN
+
+    if [ ! -e "$ARTIFACT_PATH/report" ]; then
+        mkdir -p $ARTIFACT_PATH/report
+    fi
+
     echo ""
     echo "============================================"
-    echo "Test with tflite_run"
+    echo "Framework Test with tflite_run..."
+    $RUN_TEST_SH --driverbin=$DRIVER_BIN \
+        --reportdir=$ARTIFACT_PATH/report \
+        --tapname=framework_test.tap \
+        > $ARTIFACT_PATH/report/framework_test.log 2>&1
     echo "============================================"
-    $RUN_TEST_SH > /dev/null 2>&1
-    cat report/framework_test.tap
+    cat $ARTIFACT_PATH/report/framework_test.tap
     echo "============================================"
     echo ""
 fi