[runtime/test] Remove all op and profile argument (#9410)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 5 Dec 2019 07:14:37 +0000 (16:14 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 5 Dec 2019 07:14:37 +0000 (16:14 +0900)
- Remove unused all operation test
- Remove oprofile test argument

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
tests/scripts/test_driver.sh

index 38b5ff5..5bf9948 100755 (executable)
@@ -28,7 +28,6 @@ function Usage()
     echo ""
     echo "Following options are needed when you want to tests of specific types. If you don't pass any one, unittest and verification will be run"
     echo "--unittest                - (default=on) run unit test"
-    echo "--unittestall             - (default=off) run all unit test without skip, overrite --unittest option"
     echo "--frameworktest           - (default=off) run framework test"
     echo "--verification            - (default=on) run verification"
     echo "--frameworktest_list_file - filepath of model list for test"
@@ -36,9 +35,6 @@ function Usage()
     echo "Following option is only needed when you want to test benchmark."
     echo "--benchmark_neurun_op     - (default=off) run benchmark per operation on neurun"
     echo ""
-    echo "Following option is used for profiling."
-    echo "--profile                 - (default=off) run operf"
-    echo ""
     echo "etc."
     echo "--framework_driverbin     - (default=../../Product/out/bin/tflite_run) runner for runnning framework tests"
     echo "--verification_driverbin  - (default=../../Product/out/bin/nnapi_test) runner for runnning verification tests"
@@ -59,11 +55,9 @@ RUN_TEST_SH=""
 UNIT_TEST_DIR=""
 ALLTEST_ON="true"
 UNITTEST_ON="false"
-UNITTESTALL_ON="false"
 FRAMEWORKTEST_ON="false"
 VERIFICATION_ON="false"
 BENCHMARK_NEURUN_OP_ON="false"
-PROFILE_ON="false"
 REPORT_DIR=""
 
 for i in "$@"
@@ -95,11 +89,6 @@ do
             ALLTEST_ON="false"
             UNITTEST_ON="true"
             ;;
-        --unittestall)
-            ALLTEST_ON="false"
-            UNITTEST_ON="true"
-            UNITTESTALL_ON="true"
-            ;;
         --frameworktest)
             ALLTEST_ON="false"
             FRAMEWORKTEST_ON="true"
@@ -119,10 +108,6 @@ do
             ALLTEST_ON="false"
             BENCHMARK_NEURUN_OP_ON="true"
             ;;
-        --profile)
-            ALLTEST_ON="false"
-            PROFILE_ON="true"
-            ;;
         --reportdir=*)
             REPORT_DIR=${i#*=}
             ;;
@@ -157,16 +142,9 @@ source $TEST_DRIVER_DIR/common.sh
 
 # Run unittest in each part such as Runtime
 if [ "$ALLTEST_ON" == "true" ] || [ "$UNITTEST_ON" == "true" ]; then
-    if [ "$UNITTESTALL_ON" == "true" ]; then
-        $TEST_DRIVER_DIR/run_unittest.sh \
-            --reportdir=$REPORT_DIR \
-            --unittestdir=$UNIT_TEST_DIR \
-            --runall
-    else
-        $TEST_DRIVER_DIR/run_unittest.sh \
-            --reportdir=$REPORT_DIR \
-            --unittestdir=$UNIT_TEST_DIR
-    fi
+    $TEST_DRIVER_DIR/run_unittest.sh \
+        --reportdir=$REPORT_DIR \
+        --unittestdir=$UNIT_TEST_DIR
 fi
 
 # Run tflite_run with various tflite models
@@ -227,19 +205,3 @@ if [ "$BENCHMARK_NEURUN_OP_ON" == "true" ]; then
         print_to_json $REPORT_DIR/benchmark $REPORT_DIR "benchmark_result.json"
     fi
 fi
-
-# Run profiling
-if [ "$PROFILE_ON" == "true" ]; then
-    # FIXME: These driver and tflite test are set temporarily. Fix these to support flexibility
-    DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_run
-    TFLITE_TEST=$ARTIFACT_PATH/tests/framework/cache/inceptionv3/inception_module/inception_test.tflite
-
-    # TODO: Enable operf to set directory where sample data puts on
-    rm -rf oprofile_data
-
-    echo ""
-    echo "============================================"
-    operf -g $DRIVER_BIN $TFLITE_TEST
-    echo "============================================"
-    echo ""
-fi