summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-12-17 15:24:14 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-12-17 15:24:14 (GMT)
commit561cc3359cca42749f797dd5ea908531740a873d (patch)
treee1881a846fb85bfa09390eb25fd62f7914030293 /Tests
parentd87bae7f742e5ea4d99dfd3691b6de335c6c0758 (diff)
downloadCMake-561cc3359cca42749f797dd5ea908531740a873d.zip
CMake-561cc3359cca42749f797dd5ea908531740a873d.tar.gz
CMake-561cc3359cca42749f797dd5ea908531740a873d.tar.bz2
Only test the default cwd with Makefiles
XCode and Visual Studio generators can run from ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_BUILD_TYPE} and determining this at testing time is not feasible without adding in more PASS_REGULAR_EXPRESSION's which may create false positives. Since the parsing code is in cross-platform, generator-agnostic code, if it passes with Makefiles, it should work with other generators on other platforms.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/TestsWorkingDirectory/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/TestsWorkingDirectory/CMakeLists.txt b/Tests/TestsWorkingDirectory/CMakeLists.txt
index d1c40d6..bd52cd6 100644
--- a/Tests/TestsWorkingDirectory/CMakeLists.txt
+++ b/Tests/TestsWorkingDirectory/CMakeLists.txt
@@ -25,9 +25,12 @@ set_tests_properties(WorkingDirectory2 PROPERTIES
get_filename_component(_default_cwd "${EXECUTABLE_OUTPUT_PATH}" PATH)
+# FIXME: How to deal with /debug, /release, etc. with VS or XCode?
+if(${CMAKE_GENERATOR} MATCHES "Makefiles")
set_tests_properties(WorkingDirectory3 PROPERTIES
PASS_REGULAR_EXPRESSION "Working directory: -->${_default_cwd}<--"
)
+endif()
add_test(NAME WorkingDirectory4 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND WorkingDirectory)
add_test(NAME WorkingDirectory5 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/.. COMMAND WorkingDirectory)
@@ -43,6 +46,9 @@ set_tests_properties(WorkingDirectory5 PROPERTIES
PASS_REGULAR_EXPRESSION "Working directory: -->${_parent_dir}<--"
)
+# FIXME: How to deal with /debug, /release, etc. with VS or XCode?
+if(${CMAKE_GENERATOR} MATCHES "Makefiles")
set_tests_properties(WorkingDirectory6 PROPERTIES
PASS_REGULAR_EXPRESSION "Working directory: -->${_default_cwd}<--"
)
+endif()