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
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/library/CMake/CTestCustom.cmake.in
33
33
# Setup testing and required parameters for testing
34
34
35
35
include (CTest)
36
+ option ( MIDAS_RUN_STYLE_TESTS "Should MIDAS run PHP style checking tests?" ON )
36
37
set ( SERVER_BIN_DIR ${CMAKE_CURRENT_BINARY_DIR} )
37
38
add_subdirectory (tests)
38
39
add_subdirectory (core/tests)
Original file line number Diff line number Diff line change @@ -51,14 +51,16 @@ function(add_midas_pgsql_test TestName TestFile)
51
51
endfunction (add_midas_pgsql_test)
52
52
53
53
function (add_midas_style_test TestName TestDir)
54
- add_test (
55
- ${TestName}
56
- ${PHP} ${CMAKE_SOURCE_DIR} /tests/library/PhpCheckstyle/run.php --format console --src ${TestDir}
57
- )
58
- set_tests_properties (
59
- ${TestName} PROPERTIES
60
- FAIL_REGULAR_EXPRESSION "ERROR;WARNING"
61
- )
54
+ if (MIDAS_RUN_STYLE_TESTS)
55
+ add_test (
56
+ ${TestName}
57
+ ${PHP} ${CMAKE_SOURCE_DIR} /tests/library/PhpCheckstyle/run.php --format console --src ${TestDir}
58
+ )
59
+ set_tests_properties (
60
+ ${TestName} PROPERTIES
61
+ FAIL_REGULAR_EXPRESSION "ERROR;WARNING"
62
+ )
63
+ endif ()
62
64
endfunction (add_midas_style_test)
63
65
64
66
add_midas_style_test( StyleTestsControllerTestCase ${CMAKE_SOURCE_DIR} /tests/ControllerTestCase.php )
You can’t perform that action at this time.
0 commit comments