# DOCKER_HOME and DOCKER_ENV_VARS
source $SCRIPT_ROOT/nnfw_docker_tizen
-NNFW_ROOT=$SCRIPT_ROOT/../..
+HOST_HOME=$SCRIPT_ROOT/../..
DOCKER_NNFW_HOME=${DOCKER_HOME}
DOCKER_RPM_HOME=/home/rpm
if [ "${GBS_RPM_DIR}" == "" ];
then
- GBS_RPM_DIR=$NNFW_ROOT/Product/out/rpm
+ GBS_RPM_DIR=$HOST_HOME/Product/out/rpm
mkdir -p ${GBS_RPM_DIR}
fi
fi
-DOCKER_VOLUMES+=" -v ${GBS_RPM_DIR}:${DOCKER_RPM_HOME} -v $NNFW_ROOT:${DOCKER_NNFW_HOME}"
+DOCKER_VOLUMES+=" -v ${GBS_RPM_DIR}:${DOCKER_RPM_HOME} -v $HOST_HOME:${DOCKER_NNFW_HOME}"
DOCKER_RUN_OPTS+=" --rm"
DOCKER_RUN_OPTS+=" -w ${DOCKER_NNFW_HOME}"
BUILD_RESULT=$?
# change owner of root dir and delete rootfs dir
-NNFW_OWNER_UID=$(stat -c "%u" $NNFW_ROOT)
-NNFW_OWNER_GID=$(stat -c "%g" $NNFW_ROOT)
+NNFW_OWNER_UID=$(stat -c "%u" $HOST_HOME)
+NNFW_OWNER_GID=$(stat -c "%g" $HOST_HOME)
CMD="chown -R $NNFW_OWNER_UID:$NNFW_OWNER_GID ${DOCKER_NNFW_HOME} && chown -R $NNFW_OWNER_UID:$NNFW_OWNER_GID ${DOCKER_RPM_HOME}"
docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE sh -c "$CMD"
# DOCKER_HOME and DOCKER_ENV_VARS
source $SCRIPT_ROOT/nnfw_docker
-HOST_PATH=$SCRIPT_ROOT/../..
+HOST_HOME=$SCRIPT_ROOT/../..
DOCKER_VOLUMES=" -v /dev/null:/dev/raw1394"
-DOCKER_VOLUMES+=" -v $HOST_PATH:$DOCKER_HOME"
+DOCKER_VOLUMES+=" -v $HOST_HOME:$DOCKER_HOME"
DOCKER_RUN_OPTS="--rm"
DOCKER_RUN_OPTS+=" -w $DOCKER_HOME"
# can't remove built files due to lack of permission.
# To address this issue, let's change owner of all files
# in NPU_Compiler to owner of NPU_Compiler.
-NNFW_OWNER_UID=$(stat -c "%u" $HOST_PATH)
-NNFW_OWNER_GID=$(stat -c "%g" $HOST_PATH)
+NNFW_OWNER_UID=$(stat -c "%u" $HOST_HOME)
+NNFW_OWNER_GID=$(stat -c "%g" $HOST_HOME)
CMD="chown -R $NNFW_OWNER_UID:$NNFW_OWNER_GID $DOCKER_HOME"
docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME $CMD
# This file is based on https://github.sec.samsung.net/STAR/nncc/pull/80
SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-NNFW_ROOT=$SCRIPT_ROOT/../..
+HOST_HOME=$SCRIPT_ROOT/../..
LCOV_PATH=$(command -v lcov)
GENHTML_PATH=$(command -v genhtml)
OUTPUT_PATH="$1"
if [[ -z "${OUTPUT_PATH}" ]]; then
- OUTPUT_PATH="$NNFW_ROOT/coverage"
+ OUTPUT_PATH="$HOST_HOME/coverage"
fi
if [[ -e "${OUTPUT_PATH}" ]]; then
HTML_PATH="${OUTPUT_PATH}/html"
COVERTURA_PATH="${OUTPUT_PATH}/nnfw_coverage.xml"
-"${LCOV_PATH}" -c -d "${NNFW_ROOT}" -o "${RAW_COVERAGE_INFO_PATH}"
+"${LCOV_PATH}" -c -d "${HOST_HOME}" -o "${RAW_COVERAGE_INFO_PATH}"
"${LCOV_PATH}" -e "${RAW_COVERAGE_INFO_PATH}" -o "${LIBS_COVERAGE_INFO_PATH}" ${SRC_PREFIX}/libs/*
"${LCOV_PATH}" -e "${RAW_COVERAGE_INFO_PATH}" -o "${INCLUDE_COVERAGE_INFO_PATH}" ${SRC_PREFIX}/include/*
"${LCOV_PATH}" -e "${RAW_COVERAGE_INFO_PATH}" -o "${RUNTIMES_COVERAGE_INFO_PATH}" ${SRC_PREFIX}/runtimes/*
#!/bin/bash
SCRIPT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-NNFW_ROOT=$SCRIPT_ROOT/../..
+HOST_HOME=$SCRIPT_ROOT/../..
if [ -z "$TEST_ROOT" ]; then
TEST_ROOT=/opt/usr/nnfw-test
fi
done
# download tflite model files
- pushd $NNFW_ROOT
+ pushd $HOST_HOME
tests/framework/run_test.sh --download=on
tar -zcf cache.tar.gz tests/framework/cache
$SDB_CMD push cache.tar.gz $TEST_ROOT/.
$SDB_CMD shell tar -zxf $TEST_ROOT/$(basename $TEST_SUITE_PATH) -C $TEST_ROOT
# download tflite model files
- pushd $NNFW_ROOT
+ pushd $HOST_HOME
tests/framework/run_test.sh --download=on
tar -zcf cache.tar.gz tests/framework/cache
$SDB_CMD push cache.tar.gz $TEST_ROOT/.