From 397ef354a336feae2b142dba99d363a186c1edda Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Mon, 19 Oct 2020 15:18:42 +0200 Subject: [PATCH] test with range checks enabled --- .gitlab-ci.yml | 2 ++ tests/build_debug.sh | 1 + tests/build_mpi.sh | 6 +++++- tests/build_ngsolve.sh | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a862660a..0b4c60bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,6 +55,7 @@ build_win: cmake %SRC_DIR% -G Ninja -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% + -DCHECK_RANGE=ON -DUSE_CGNS=ON -DUSE_OCC=ON -DOCC_LIBRARY=C:/install_opencascade_7.4.0_static/win64/vc14/lib/TKernel.lib @@ -238,6 +239,7 @@ build_mac: cmake $SRC_DIR -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX -DCMAKE_BUILD_TYPE=Release + -DCHECK_RANGE=ON -DUSE_NATIVE_ARCH=OFF -DUSE_CCACHE=ON -DENABLE_UNIT_TESTS=ON diff --git a/tests/build_debug.sh b/tests/build_debug.sh index 349722d8..e779b381 100755 --- a/tests/build_debug.sh +++ b/tests/build_debug.sh @@ -6,6 +6,7 @@ cmake \ -DBUILD_TYPE=DEBUG \ -DENABLE_UNIT_TESTS=ON \ -DUSE_OCC=ON \ + -DCHECK_RANGE=ON \ -DUSE_CGNS=ON \ ../../src/netgen make -j12 diff --git a/tests/build_mpi.sh b/tests/build_mpi.sh index 190423ac..0e26af94 100644 --- a/tests/build_mpi.sh +++ b/tests/build_mpi.sh @@ -1,6 +1,10 @@ cd mkdir -p build/netgen cd build/netgen -cmake ../../src/netgen -DUSE_CCACHE=ON -DUSE_MPI=ON -DENABLE_UNIT_TESTS=ON +cmake ../../src/netgen \ + -DCHECK_RANGE=ON \ + -DUSE_CCACHE=ON \ + -DUSE_MPI=ON \ + -DENABLE_UNIT_TESTS=ON make -j12 make install diff --git a/tests/build_ngsolve.sh b/tests/build_ngsolve.sh index a25a628a..d452d2da 100755 --- a/tests/build_ngsolve.sh +++ b/tests/build_ngsolve.sh @@ -3,6 +3,7 @@ git clone https://github.com/NGSolve/ngsolve.git mkdir -p ~/build/ngsolve cd ~/build/ngsolve cmake \ + -DCHECK_RANGE=ON \ -DUSE_MKL=ON \ -DUSE_CCACHE=ON \ -DNETGEN_DIR=/opt/netgen \