提交 abdc83ca 编写于 作者: H hjchen2

Merge branch 'ocr_attention' of https://github.com/hjchen2/paddle-mobile into ocr_attention

...@@ -8,13 +8,15 @@ function AddTest() { ...@@ -8,13 +8,15 @@ function AddTest() {
function ExecuteAndroidTest() { function ExecuteAndroidTest() {
platform=$1 platform=$1
adb shell rm -rf /data/local/tmp/* devices=`adb devices | grep -v devices | grep device | awk -F ' ' '{print $1}'`
adb push ../build/${platform}/build/libpaddle-mobile.so /data/local/tmp/ for device in ${devices}; do
for op in ${operators} adb -s ${device} shell rm -rf /data/local/tmp/*
do adb -s ${device} push ../build/${platform}/build/libpaddle-mobile.so /data/local/tmp/
adb push ../test/build/test-${op}-op /data/local/tmp/ for op in ${operators}; do
adb shell "cd /data/local/tmp/; LD_LIBRARY_PATH=. ./test-${op}-op" adb -s ${device} push ../test/build/test-${op}-op /data/local/tmp/
echo "${BLUE}run test ${op} pass${NONE}" adb -s ${device} shell "cd /data/local/tmp/; LD_LIBRARY_PATH=. ./test-${op}-op"
echo "${BLUE}run test ${op} pass${NONE}"
done
done done
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册