echo "--benchmark - (default=off) run benchmark"
echo ""
echo "etc."
- echo "--driverbin - (default=../../Product/out/bin/tflite_run) runner for runnning framework tests"
+ 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"
+ echo "--benchmark_driverbin - (default=../../Product/out/bin/tflite_benchmark) runner for runnning benchmark"
echo "--runtestsh - (default=\$ARTIFACT_PATH/tests/framework/run_test.sh) run_test.sh with path where it is for framework test and verification"
echo "--unittestdir - (default=\$ARTIFACT_PATH/Product/out/unittest) directory that has unittest binaries for unit test"
echo ""
}
ARTIFACT_PATH=""
-DRIVER_BIN=""
+FRAMEWORK_DRIVER_BIN=""
+VERIFICATION_DRIVER_BIN=""
+BENCHMARK_DRIVER_BIN=""
RUN_TEST_SH=""
UNIT_TEST_DIR=""
LD_LIBRARY_PATH_IN_SHELL=""
--artifactpath=*)
ARTIFACT_PATH=${i#*=}
;;
- --driverbin=*)
- DRIVER_BIN=${i#*=}
+ --framework_driverbin=*)
+ FRAMEWORK_DRIVER_BIN=${i#*=}
+ ;;
+ --verification_driverbin=*)
+ VERIFICATION_DRIVER_BIN=${i#*=}
+ ;;
+ --benchmark_driverbin=*)
+ BENCHMARK_DRIVER_BIN=${i#*=}
;;
--runtestsh=*)
RUN_TEST_SH=${i#*=}
# Run tflite_run with various tflite models
if [ "$ALLTEST_ON" == "true" ] || [ "$FRAMEWORKTEST_ON" == "true" ]; then
- if [ -z "$DRIVER_BIN" ]; then
- DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_run
+ if [ -z "$FRAMEWORK_DRIVER_BIN" ]; then
+ FRAMEWORK_DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_run
fi
if [ ! -e "$ARTIFACT_PATH/report" ]; then
echo ""
echo "============================================"
echo "Framework Test with tflite_run..."
- $RUN_TEST_SH --driverbin=$DRIVER_BIN \
+ $RUN_TEST_SH --driverbin=$FRAMEWORK_DRIVER_BIN \
--reportdir=$ARTIFACT_PATH/report \
--tapname=framework_test.tap \
> $ARTIFACT_PATH/report/framework_test.log 2>&1
# Run nnapi_test with various tflite models
if [ "$ALLTEST_ON" == "true" ] || [ "$VERIFICATION_ON" == "true" ]; then
- unset DRIVER_BIN
- if [ -z "$DRIVER_BIN" ]; then
- DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/nnapi_test
+ if [ -z "$VERIFICATION_DRIVER_BIN" ]; then
+ VERIFICATION_DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/nnapi_test
fi
if [ ! -e "$ARTIFACT_PATH/report" ]; then
echo ""
echo "============================================"
echo "Verification with nnapi_test..."
- $RUN_TEST_SH --driverbin=$DRIVER_BIN \
+ $RUN_TEST_SH --driverbin=$VERIFICATION_DRIVER_BIN \
--reportdir=$ARTIFACT_PATH/report \
--tapname=verification.tap \
> $ARTIFACT_PATH/report/verification.log 2>&1
mkdir -p $REPORT_MODEL_DIR
export COUNT=5
- local DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_benchmark
+ if [ -z "$BENCHMARK_DRIVER_BIN" ]; then
+ local DRIVER_BIN=$ARTIFACT_PATH/Product/out/bin/tflite_benchmark
+ else
+ local DRIVER_BIN=$BENCHMARK_DRIVER_BIN
+ fi
echo "============================================"
echo -n "TFLite + CPU................... "