1 Star 0 Fork 2

sinojelly/testngpp-mockcpp-sample-src

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_test.ps1 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
sinojelly 提交于 2021-03-16 00:10 . init version
# This is a Windows PowerShell script
# On windows 7, open cmd.exe, input powershell, hit enter, then you can run this script.
# If you use powershell the first time, excute this cmd first: set-executionpolicy remotesigned
# Build mockcpp and it's tests, and at last run all tests.
$MINGW_VER="-G `"MinGW Makefiles`""
function build($build_dir, $src_dir) {
if (!(test-path $build_dir)) { mkdir $build_dir }
cd $build_dir
Invoke-Expression "cmake $src_dir $MINGW_VER"
make
}
build build\mockcpp ..\..\tests\3rdparty\mockcpp
cd ..\..
build build\testngpp ..\..\tests\3rdparty\testngpp
cd ..\..
build build\project ..\..
cd ..\..
build build\tests ..\..\tests
#---------------------------------
# run all tests
cd ut
$TESTNGPP_BINARY_DIR="..\..\testngpp\src"
$LISTENER_PATH=Join-Path $TESTNGPP_BINARY_DIR 'listeners'
$ALL_DLL=(ls *.dll -name)-replace ".dll" | where {$_ -ne "testngppstdoutlistener"}
..\..\testngpp\src\runner\testngpp-runner.exe $ALL_DLL -L"$LISTENER_PATH" -l"testngppstdoutlistener -c -v" -m
cd ..\..\..
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sinojelly/testngpp-mockcpp-sample-src.git
[email protected]:sinojelly/testngpp-mockcpp-sample-src.git
sinojelly
testngpp-mockcpp-sample-src
testngpp-mockcpp-sample-src
master

搜索帮助