This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ message(STATUS "Setting up database(s) for testing - done")
100
100
#-----------------------------------------------------------------------------
101
101
102
102
include (CTest)
103
+ option (MIDAS_RUN_SECURITY_CHECKS "Run security checks?" ON )
103
104
option (MIDAS_RUN_STYLE_TESTS "Run PHP style tests?" ON )
104
105
option (MIDAS_RUN_TESTS_WITH_COVERAGE "Run tests with coverage?" OFF )
105
106
Original file line number Diff line number Diff line change @@ -112,13 +112,17 @@ endfunction()
112
112
113
113
add_midas_style_test(StyleTests ${CMAKE_SOURCE_DIR} /tests)
114
114
115
- add_test (NAME SecurityCheck COMMAND ${CMAKE_SOURCE_DIR} /vendor/bin/security-checker --no -interaction --quiet security:check WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )
115
+ if (MIDAS_RUN_SECURITY_CHECKS)
116
+ add_test (NAME SecurityCheck COMMAND ${CMAKE_SOURCE_DIR} /vendor/bin/security-checker --no -interaction security:check WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )
117
+ endif ()
116
118
117
- add_test (UTF8Encoding ${PHP} ${CMAKE_SOURCE_DIR} /tests/UTF8Tools.php --src ${CMAKE_SOURCE_DIR} )
118
- set_tests_properties (
119
- UTF8Encoding PROPERTIES
120
- FAIL_REGULAR_EXPRESSION "ERROR;WARNING"
121
- )
119
+ if (MIDAS_RUN_STYLE_TESTS)
120
+ add_test (UTF8Encoding ${PHP} ${CMAKE_SOURCE_DIR} /tests/UTF8Tools.php --src ${CMAKE_SOURCE_DIR} )
121
+ set_tests_properties (
122
+ UTF8Encoding PROPERTIES
123
+ FAIL_REGULAR_EXPRESSION "ERROR;WARNING"
124
+ )
125
+ endif ()
122
126
123
127
if (NOT WIN32 )
124
128
add_midas_test(KWUtils KWUtilsTest.php)
You can’t perform that action at this time.
0 commit comments