ci_run_test.sh 823 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
#!/usr/bin/env bash

operators=

function AddTest() {
  operators="${operators} $1"
}

function ExecuteAndroidTest() {
  platform=$1
  adb shell rm -rf /data/local/tmp/*
  adb push ../build/${platform}/build/libpaddle-mobile.so /data/local/tmp/
  for op in ${operators}
  do
    adb push ../test/build/test-${op}-op /data/local/tmp/
    adb shell "cd /data/local/tmp/; LD_LIBRARY_PATH=. ./test-${op}-op"
    echo "${BLUE}run test ${op} pass${NONE}"
  done
}

AddTest batchnorm
AddTest cast
AddTest conv
AddTest dequantize
#AddTest elementwiseadd
AddTest log
AddTest logical-and
AddTest logical-not
AddTest logical-or
AddTest logical-xor
AddTest pool
AddTest quantize
AddTest relu
AddTest relu6
AddTest sequence-expand
AddTest sequence-pool
AddTest sequence-softmax
AddTest sigmoid
AddTest softmax
AddTest tanh
AddTest topk