From 297450273991f9318b0b8572820c9db7c5b4bb08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EA=B9=80=EC=9A=A9=EC=84=AD/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84?= =?utf8?q?=EC=9E=90?= Date: Thu, 5 Apr 2018 14:43:41 +0900 Subject: [PATCH] Add test_driver.sh for verification (#439) * Add test_driver.sh for verification This commits add test_driver.sh to Product/out/bin for verification. Additional tests would be appended in this script soon. Signed-off-by: Yongseop Kim --- tools/test_driver/test_driver.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 tools/test_driver/test_driver.sh diff --git a/tools/test_driver/test_driver.sh b/tools/test_driver/test_driver.sh new file mode 100755 index 0000000..3bbcc90 --- /dev/null +++ b/tools/test_driver/test_driver.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# NOTE: Supposed that this script would be executed with an artifact path. +# The artifact path has tests/(test suite) and Product/ +# Reference this PR(https://github.sec.samsung.net/STAR/nnfw/pull/375). + +ARTIFACT_PATH="$1" +if [ ! -e "$ARTIFACT_PATH" ]; then + echo "Pass on with proper ARTIFACT_PATH" + exit 1 +fi +ARTIFACT_PATH="$(realpath $1)" + +RUN_TEST_SH=$ARTIFACT_PATH/tests/framework/run_test.sh +if [ ! -e "$RUN_TEST_SH" ]; then + echo "Cannot find $RUN_TEST_SH" + exit 1 +fi + +# Run unittest in each part such as Runtime, ACL +# TODO: fill this + +# Run tflite_run with various tflite models +# TODO: fill this + +# 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 "======================" +$RUN_TEST_SH +echo "======================" +echo "" -- 2.7.4