summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake
diff options
context:
space:
mode:
authorSam Freed <safreed@microsoft.com>2021-01-13 22:48:58 (GMT)
committerBrad King <brad.king@kitware.com>2021-02-04 16:39:19 (GMT)
commit74a86566f0f27e849acdc1e0648b3ef223b13369 (patch)
tree0325dd071b7a8697cecd78826e6766766a14215c /Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake
parent56751c83aa1b9de7f3c785b17922eb9af6bc9e4a (diff)
downloadCMake-74a86566f0f27e849acdc1e0648b3ef223b13369.zip
CMake-74a86566f0f27e849acdc1e0648b3ef223b13369.tar.gz
CMake-74a86566f0f27e849acdc1e0648b3ef223b13369.tar.bz2
Tests: Add build preset tests
Diffstat (limited to 'Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake')
-rw-r--r--Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake b/Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake
new file mode 100644
index 0000000..7801c3d
--- /dev/null
+++ b/Tests/RunCMake/CMakePresetsBuild/Good-build-macros-check.cmake
@@ -0,0 +1,14 @@
+include("${RunCMake_SOURCE_DIR}/TestVariable.cmake")
+
+if(RunCMake_GENERATOR STREQUAL "NMake Makefiles JOM")
+ # JOM removes the '$' and content following it.
+else()
+ test_environment_variable("TEST_DOLLAR" "x\\$x")
+endif()
+test_environment_variable("TEST_GENERATOR" "${RunCMake_GENERATOR}")
+test_environment_variable("TEST_PRESET_NAME" "xmacrosx")
+test_environment_variable("TEST_SOURCE_DIR_" "x[^\n]*[/\\\\]Tests[/\\\\]RunCMake[/\\\\]CMakePresetsBuild[/\\\\]Goodx")
+test_environment_variable("TEST_SOURCE_DIR_NAME" "xGoodx")
+test_environment_variable("TEST_SOURCE_PARENT_DIR" "x[^\n]*[/\\\\]Tests[/\\\\]RunCMake[/\\\\]CMakePresetsBuildx")
+
+include("${RunCMake_SOURCE_DIR}/check.cmake")