From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Wed, 6 Mar 2019 05:36:36 +0000 (+0900) Subject: Introduce CI infra x64 build and test scripts (#4592) X-Git-Tag: submit/tizen/20190325.013700~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=755b14e91387110d95212cbdb6cde291004bf5db;p=platform%2Fcore%2Fml%2Fnnfw.git Introduce CI infra x64 build and test scripts (#4592) Introduce x64 build and test scripts Signed-off-by: Hyeongseok Oh --- diff --git a/scripts/standalone/docker_build_test_x64.sh b/scripts/standalone/docker_build_test_x64.sh new file mode 100755 index 0000000..b354aab --- /dev/null +++ b/scripts/standalone/docker_build_test_x64.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT_PATH="$CURRENT_PATH/../../" + +# docker image name +if [[ -z $DOCKER_IMAGE_NAME ]]; then + echo "It will use default docker image name" +else + export DOCKER_IMAGE_NAME +fi + +# Mirror server setting +if [[ -z $EXTERNAL_DOWNLOAD_SERVER ]]; then + echo "It will not use mirror server" +else + DOCKER_ENV_VARS=" -e EXTERNAL_DOWNLOAD_SERVER=$EXTERNAL_DOWNLOAD_SERVER" +fi +export DOCKER_ENV_VARS + +pushd $ROOT_PATH > /dev/null + +CMD="export OPTIONS+='-DBUILD_NEURUN=ON -DBUILD_PURE_ARM_COMPUTE=OFF' && \ + make && \ + make install" + +source nnfw docker-run-user bash -c "$CMD" + +# Model download server setting +if [[ -z $MODELFILE_SERVER ]]; then + echo "Need model file server setting" + exit 1 +fi +DOCKER_ENV_VARS=" -e MODELFILE_SERVER=$MODELFILE_SERVER" +DOCKER_ENV_VARS+=" -e BACKENDS=cpu" +DOCKER_ENV_VARS+=" -e OP_BACKEND_ALLOPS=cpu" + +source nnfw docker-run-user ./tests/scripts/test_driver.sh \ + --ldlibrarypath=$ROOT_PATH/Product/out/lib/neurun \ + --frameworktest_list_file=./tests/scripts/neurun_frameworktest_list.x86-64.cpu.txt \ + --reportdir=$ROOT_PATH/report/ . + +popd > /dev/null