From 00b8c5f60e2941cf52e95ab18af7ecaa5e7e5fe7 Mon Sep 17 00:00:00 2001 From: eclipsess Date: Fri, 29 Jun 2018 18:10:20 +0800 Subject: [PATCH] rm run.sh --- tools/run.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 tools/run.sh diff --git a/tools/run.sh b/tools/run.sh deleted file mode 100644 index 9c04e7051c..0000000000 --- a/tools/run.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env sh -# auto build and run - -BUILDNET="mobilenetssds" -TESTUNIT="test-mobilenet" - -push_fn () { -#sh build.sh android ${BUILDNET} -MODELS_PATH="../test/models/*" -MODELS_SRC="../test/models" -IMAGE_PATH="../test/images/*" -EXE_FILE="../test/build/*" -EXE_DIR="data/local/tmp/bin" -adb shell mkdir ${EXE_DIR} -MODELS_DIR="data/local/tmp/models" -adb shell mkdir ${MODELS_DIR} -for file in `ls ${MODELS_SRC}` -do - adb shell mkdir ${MODELS_DIR}"/"${file} -done - -IMAGES_DIR="data/local/tmp/images" -adb shell mkdir ${IMAGES_DIR} -LIB_PATH="../build/release/arm-v7a/build/*" -adb push ${EXE_FILE} ${EXE_DIR} -adb push ${LIB_PATH} ${EXE_DIR} -if [[ $1 != "npm" ]]; then -adb push ${IMAGE_PATH} ${IMAGES_DIR} -adb push ${MODELS_PATH} ${MODELS_DIR} -fi -adb shell "cd /data/local/tmp/bin; LD_LIBRARY_PATH=. ./${TESTUNIT}" -} - -if [[ $1 == "npm" ]]; then -push_fn $1 -else -push_fn -fi -- GitLab