Add run_tests.sh in test_driver.sh (#462)
author김용섭/동작제어Lab(SR)/Engineer/삼성전자 <yons.kim@samsung.com>
Thu, 5 Apr 2018 10:26:47 +0000 (19:26 +0900)
committer오형석/동작제어Lab(SR)/Senior Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 5 Apr 2018 10:26:47 +0000 (19:26 +0900)
run_tests.sh with tflite_run as driver is going to be executed in
test_driver.sh.

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

index 3bbcc90..5f31352 100755 (executable)
@@ -17,15 +17,25 @@ if [ ! -e "$RUN_TEST_SH" ]; then
     exit 1
 fi
 
+# Set env
+export LD_LIBRARY_PATH=$ARTIFACT_PATH/Product/out/lib:$LD_LIBRARY_PATH
+export USE_NNAPI=1
+
 # Run unittest in each part such as Runtime, ACL
 # TODO: fill this
 
 # Run tflite_run with various tflite models
-# TODO: fill this
+export DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_run
+echo ""
+echo "============================================"
+echo "Test with tflite_run"
+echo "============================================"
+$RUN_TEST_SH
+echo "============================================"
+echo ""
 
 # Run nnapi_test with various tflite models
 export DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/nnapi_test
-export LD_LIBRARY_PATH=$ARTIFACT_PATH/Product/out/lib:$LD_LIBRARY_PATH
 echo ""
 echo "Verification with nnapi_test"
 echo "======================"