summaryrefslogtreecommitdiff
path: root/infra/scripts/test_arm_neurun_cpu.sh
blob: 6bf48598c73790e9c6b088138e503b4362df7761 (plain)
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
42
43
44
45
46
47
#!/bin/bash

[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo "Please don't source ${BASH_SOURCE[0]}, execute it" && return

CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_PATH="$CURRENT_PATH/../../"

# Model download server setting
if [[ -z $MODELFILE_SERVER ]]; then
  echo "Need model file server setting"
  exit 1
fi

set -e

pushd $ROOT_PATH > /dev/null

export OP_BACKEND_ALLOPS=cpu

cp -v ./Product/out/unittest/nnapi_gtest.skip.armv7l-linux.cpu ./Product/out/unittest/nnapi_gtest.skip
export EXECUTOR=Linear
source ./tests/scripts/test_driver.sh \
        --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.cpu.txt \
        --ldlibrarypath="$ROOT_PATH/Product/out/lib" \
        --reportdir="$ROOT_PATH/report/cpu" .

export EXECUTOR=Dataflow
source ./tests/scripts/test_driver.sh \
        --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.cpu.txt \
        --ldlibrarypath="$ROOT_PATH/Product/out/lib" \
        --reportdir="$ROOT_PATH/report/cpu" .

export EXECUTOR=Parallel
source ./tests/scripts/test_driver.sh \
        --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.cpu.txt \
        --ldlibrarypath="$ROOT_PATH/Product/out/lib" \
        --reportdir="$ROOT_PATH/report/cpu" .

# Test tflite_loader
source ./tests/scripts/test_driver.sh \
        --frameworktest \
        --framework_driverbin="$ROOT_PATH/Product/out/bin/tflite_loader_test_tool" \
        --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.cpu.txt \
        --ldlibrarypath="$ROOT_PATH/Product/out/lib" \
        --reportdir="$ROOT_PATH/report/cpu" .

popd > /dev/null