代码拉取完成,页面将自动刷新
同步操作将从 sinojelly/testngpp-mockcpp-sample 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
# build mockcpp and it's tests, and at last run all tests.
# $1 --- compiler name (GNU)
# $2 --- [optional] compiler major version (The first part of cxx compiler version)
# You can set PREBUILT_TESTNGPP_PATH to your prebuilt mockcpp and testngpp path, if you want to use you own prebuilt tools.
# such as: export USER_TESTNGPP_PATH=/home/sinojelly/test_tools/testngpp_install
# fast fail
set -e
. "tests/testngpp/build_functions.sh"
MY_OS_NAME=""
MY_CXX_COMPILER_NAME=""
MY_CXX_COMPILER_MAJOR_VERSION=""
CMAKE_COMPILER_PARAM=""
MAKE_BUILD_TYPE=""
AUTO_COMPILER="GNU" # $1
AUTO_CXX_VER=`gcc -dumpversion | awk -F. '{print $1}'` # $2
InitEnviroment $AUTO_COMPILER $AUTO_CXX_VER
BUILD_DIR="build_$MY_CXX_COMPILER_NAME"
OS_COMPILER="$MY_OS_NAME/$MY_CXX_COMPILER_NAME/$MY_CXX_COMPILER_MAJOR_VERSION"
echo "OS_COMPILER in Shell : $OS_COMPILER"
RUN_USER_TESTNGPP_PATH=""
CMAKE_USER_TESTNGPP_PATH=""
if [ -d $USER_TESTNGPP_PATH ]; then
RUN_USER_TESTNGPP_PATH=$USER_TESTNGPP_PATH
CMAKE_USER_TESTNGPP_PATH="-DCMAKE_USER_TESTNGPP_PATH=$USER_TESTNGPP_PATH"
fi
cmake -S . -B $BUILD_DIR/project
cmake -S tests/ut -B $BUILD_DIR/ut $CMAKE_USER_TESTNGPP_PATH
CompileProject $MY_CXX_COMPILER_NAME $BUILD_DIR/project
CompileProject $MY_CXX_COMPILER_NAME $BUILD_DIR/ut
RunTestsFromPrebuiltTools $BUILD_DIR ut $MAKE_BUILD_TYPE $OS_COMPILER $RUN_USER_TESTNGPP_PATH
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。