summaryrefslogtreecommitdiff
path: root/infra/scripts/test_arm_nnpkg.sh
blob: 23759a319b353e5989835f05b4bcc91b3be4afb7 (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}/../../"

pushd ${ROOT_PATH} > /dev/null

EXITCODE=0
PKG_LIST=$(cat tools/nnpackage_tool/nnpkg_test/list)
for f in ${PKG_LIST}
do
  tools/nnpackage_tool/nnpkg_test/nnpkg_test.sh -d -i nnpkg-tcs $f
  EXITCODE_F=$?

  if [ ${EXITCODE_F} -ne 0 ]; then
    EXITCODE=${EXITCODE_F}
  fi
done

popd > /dev/null

exit ${EXITCODE}