diff options
author | David Cole <david.cole@kitware.com> | 2009-10-15 16:35:54 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-15 16:35:54 (GMT) |
commit | 680fae9c978ea02b86601171512974a9ade57fbc (patch) | |
tree | bfd5fffa7a1e31205f83d51e943a40d395b8300c /Tests/CTestTestFailedSubmits | |
parent | d03c6d970fc3569ef017ebb20c09bac40ae04416 (diff) | |
download | CMake-680fae9c978ea02b86601171512974a9ade57fbc.zip CMake-680fae9c978ea02b86601171512974a9ade57fbc.tar.gz CMake-680fae9c978ea02b86601171512974a9ade57fbc.tar.bz2 |
Increase ctest coverage. Introduce optionally on intentional compile errors and warnings to the SmallAndFast project. Turn them on for the FailedSubmit tests to cover analyzing LABELS-related errors and warnings.
Diffstat (limited to 'Tests/CTestTestFailedSubmits')
-rw-r--r-- | Tests/CTestTestFailedSubmits/test.cmake.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CTestTestFailedSubmits/test.cmake.in b/Tests/CTestTestFailedSubmits/test.cmake.in index 5fa25b0..42bc79c 100644 --- a/Tests/CTestTestFailedSubmits/test.cmake.in +++ b/Tests/CTestTestFailedSubmits/test.cmake.in @@ -11,6 +11,9 @@ set(CTEST_DROP_METHOD "@drop_method@") # Settings: SET(CTEST_USE_LAUNCHERS 1) +# Emit these compiler warnings: +set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} -Wall") + SET(CTEST_SITE "@SITE@") SET(CTEST_BUILD_NAME "CTestTestLaunchers-@drop_method@") @@ -32,7 +35,7 @@ CTEST_START(Experimental) # explicitly do not use CTEST_UPDATE - avoid network activity CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" - OPTIONS "-DCTEST_USE_LAUNCHERS:BOOL=${CTEST_USE_LAUNCHERS}" + OPTIONS "-DCTEST_USE_LAUNCHERS:BOOL=${CTEST_USE_LAUNCHERS};-DSAF_INTENTIONAL_COMPILE_ERROR:BOOL=ON;-DSAF_INTENTIONAL_COMPILE_WARNING:BOOL=ON" RETURN_VALUE res) CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res) CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res) |