提交 22a0333a 编写于 作者: E eclipsess

auto-run to test

上级 2169aca5
#!/usr/bin/env sh
# auto build and run
BUILDNET="googlenet"
TESTUNIT="test-googlenet"
push_fn () {
sh build.sh android googlenet
sh build.sh android ${BUILDNET}
MODELS_PATH="../test/models/*"
MODELS_SRC="../../test/models"
IMAGE_PATH="../test/images/*"
......@@ -11,7 +15,7 @@ adb shell mkdir ${EXE_DIR}
MODELS_DIR="data/local/tmp/models"
adb shell mkdir ${MODELS_DIR}
for file in `ls ${MODELS_SRC}`
do
do
adb shell mkdir ${MODELS_DIR}"/"${file}
done
......@@ -22,9 +26,6 @@ adb push ${EXE_FILE} ${EXE_DIR}
adb push ${LIB_PATH} ${EXE_DIR}
adb push ${IMAGE_PATH} ${IMAGES_DIR}
adb push ${MODELS_PATH} ${MODELS_DIR}
echo "test-op or test-net below : "
adb shell ls /data/local/tmp/bin
echo "**** choose OP or NET to test ****"
adb shell "cd /data/local/tmp/bin; LD_LIBRARY_PATH=. ./test-lrn-op"
adb shell "cd /data/local/tmp/bin; LD_LIBRARY_PATH=. ./${TESTUNIT}"
}
push_fn
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册