Skip to content

Commit

Permalink
Add exhaustive test to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jun 17, 2020
1 parent dad2c12 commit c149c2c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ def BuildCPU() {
${dockerRun} ${container_type} ${docker_binary} tests/ci_build/build_via_cmake.sh
${dockerRun} ${container_type} ${docker_binary} build/testxgboost
"""
echo "Run brute-force test for JSON round-trip serialization"
sh """
${dockerRun} ${container_type} ${docker_binary} build/testxgboost --gtest_filter=Json.DISABLED_RoundTripExhaustive \
--gtest_also_run_disabled_tests
"""
// Sanitizer test
def docker_extra_params = "CI_DOCKER_EXTRA_PARAMS_INIT='-e ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer -e ASAN_OPTIONS=symbolize=1 -e UBSAN_OPTIONS=print_stacktrace=1:log_path=ubsan_error.log --cap-add SYS_PTRACE'"
sh """
Expand Down
13 changes: 13 additions & 0 deletions Jenkinsfile-win64
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ def BuildWin64() {
bat """
mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64" -DCMAKE_VERBOSE_MAKEFILE=ON -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON
cd build
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\MSBuild\\15.0\\Bin\\MSBuild.exe" xgboost.sln /m /p:Configuration=Release /nodeReuse:false
"""
echo 'Stashing C++ test executable (testxgboost)...'
stash name: 'xgboost_cpp_tests_cpu', includes: 'build/testxgboost.exe'
bat """
rd /s /q build
mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64" -DUSE_CUDA=ON -DCMAKE_VERBOSE_MAKEFILE=ON -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON
"""
bat """
Expand Down Expand Up @@ -104,8 +114,11 @@ def TestWin64CPU() {
node('win64 && cpu') {
unstash name: 'srcs'
unstash name: 'xgboost_whl'
unstash name: 'xgboost_cpp_tests_cpu'
unstash name: 'xgboost_cli'
echo "Test Win64 CPU"
echo "Run brute-force test for JSON round-trip serialization"
bat "build\\testxgboost.exe --gtest_filter=Json.DISABLED_RoundTripExhaustive --gtest_also_run_disabled_tests"
echo "Installing Python wheel..."
bat "conda activate && (python -m pip uninstall -y xgboost || cd .)"
bat """
Expand Down

0 comments on commit c149c2c

Please sign in to comment.