summaryrefslogtreecommitdiff
path: root/infra/scripts/test_arm_pacl.sh
blob: eb50e26108ca9a0b617be44659008c3dcfe08278 (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
#!/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

cp -v ./Product/out/unittest/nnapi_gtest.skip.armv7l-linux.pacl ./Product/out/unittest/nnapi_gtest.skip
source ./tests/scripts/test_driver.sh \
        --frameworktest_list_file=tests/scripts/pacl_frameworktest_list.armv7l-linux.txt \
        --ldlibrarypath="$ROOT_PATH/Product/out/lib/pureacl:$ROOT_PATH/Product/out/lib" \
        --reportdir="$ROOT_PATH/report" .

popd > /dev/null