Skip to content

Commit b4540b4

Browse files
committed
Disable unit tests during static analysis builds
1 parent ae61cd4 commit b4540b4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ctest-custom.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ ctest_update()
167167

168168
ctest_configure(OPTIONS "${CONFIGURE_OPTIONS}")
169169
ctest_build(FLAGS "-j${N_PROCS}")
170-
ctest_test()
170+
171+
#Don't run unit tests if doing static analysis
172+
if(NOT $ENV{ANALYZE})
173+
ctest_test()
174+
endif()
175+
171176
#ctest_coverage()
172177
set(CTEST_DROP_METHOD https)
173178
set(CTEST_DROP_SITE dashboard.ngscopeclient.org)

0 commit comments

Comments
 (0)