summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-30 18:01:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-30 18:01:07 (GMT)
commit6cc58e5f9b88ed071be75f5e6eccaaa8063056f1 (patch)
tree07338ef12f93b70fb6bdf1490680276001274de2 /Tests
parent2d37e6d1a86ea2397645fc94b7a0afe9354aa326 (diff)
downloadCMake-6cc58e5f9b88ed071be75f5e6eccaaa8063056f1.zip
CMake-6cc58e5f9b88ed071be75f5e6eccaaa8063056f1.tar.gz
CMake-6cc58e5f9b88ed071be75f5e6eccaaa8063056f1.tar.bz2
ENH: add test for SEPARATE_ARGUMENTS
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Complex/CMakeLists.txt4
-rw-r--r--Tests/Complex/Executable/complex.cxx12
-rw-r--r--Tests/Complex/cmTestConfigure.h.in2
-rw-r--r--Tests/ComplexOneConfig/CMakeLists.txt4
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx12
-rw-r--r--Tests/ComplexOneConfig/cmTestConfigure.h.in2
-rw-r--r--Tests/ComplexRelativePaths/CMakeLists.txt4
-rw-r--r--Tests/ComplexRelativePaths/Executable/complex.cxx12
-rw-r--r--Tests/ComplexRelativePaths/cmTestConfigure.h.in2
9 files changed, 51 insertions, 3 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt
index 609a43e..5cead76 100644
--- a/Tests/Complex/CMakeLists.txt
+++ b/Tests/Complex/CMakeLists.txt
@@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+SET(TEST_SEP "a b c")
+SEPARATE_ARGUMENTS(TEST_SEP)
+
+
#
# Include vars from a file and from a cache
#
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx
index 89c3436..fb268c4 100644
--- a/Tests/Complex/Executable/complex.cxx
+++ b/Tests/Complex/Executable/complex.cxx
@@ -667,7 +667,17 @@ int main()
{
cmFailed("REMOVE is not working");
}
-
+
+ // ----------------------------------------------------------------------
+ // Test SEPARATE_ARGUMENTS
+ if(strcmp("a;b;c", TEST_SEP) == 0)
+ {
+ cmPassed("SEPARATE_ARGUMENTS is working");
+ }
+ else
+ {
+ cmFailed("SEPARATE_ARGUMENTS is not working");
+ }
// ----------------------------------------------------------------------
// Summary
diff --git a/Tests/Complex/cmTestConfigure.h.in b/Tests/Complex/cmTestConfigure.h.in
index ed111fb..873123a 100644
--- a/Tests/Complex/cmTestConfigure.h.in
+++ b/Tests/Complex/cmTestConfigure.h.in
@@ -49,6 +49,8 @@
#cmakedefine FILE_HAS_WRAP_EXCLUDE
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
+#define TEST_SEP "${TEST_SEP}"
+
// Test registry read
#if defined(_WIN32) && !defined(__CYGWIN__)
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt
index 609a43e..5cead76 100644
--- a/Tests/ComplexOneConfig/CMakeLists.txt
+++ b/Tests/ComplexOneConfig/CMakeLists.txt
@@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+SET(TEST_SEP "a b c")
+SEPARATE_ARGUMENTS(TEST_SEP)
+
+
#
# Include vars from a file and from a cache
#
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx
index 89c3436..fb268c4 100644
--- a/Tests/ComplexOneConfig/Executable/complex.cxx
+++ b/Tests/ComplexOneConfig/Executable/complex.cxx
@@ -667,7 +667,17 @@ int main()
{
cmFailed("REMOVE is not working");
}
-
+
+ // ----------------------------------------------------------------------
+ // Test SEPARATE_ARGUMENTS
+ if(strcmp("a;b;c", TEST_SEP) == 0)
+ {
+ cmPassed("SEPARATE_ARGUMENTS is working");
+ }
+ else
+ {
+ cmFailed("SEPARATE_ARGUMENTS is not working");
+ }
// ----------------------------------------------------------------------
// Summary
diff --git a/Tests/ComplexOneConfig/cmTestConfigure.h.in b/Tests/ComplexOneConfig/cmTestConfigure.h.in
index ed111fb..873123a 100644
--- a/Tests/ComplexOneConfig/cmTestConfigure.h.in
+++ b/Tests/ComplexOneConfig/cmTestConfigure.h.in
@@ -49,6 +49,8 @@
#cmakedefine FILE_HAS_WRAP_EXCLUDE
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
+#define TEST_SEP "${TEST_SEP}"
+
// Test registry read
#if defined(_WIN32) && !defined(__CYGWIN__)
diff --git a/Tests/ComplexRelativePaths/CMakeLists.txt b/Tests/ComplexRelativePaths/CMakeLists.txt
index 609a43e..5cead76 100644
--- a/Tests/ComplexRelativePaths/CMakeLists.txt
+++ b/Tests/ComplexRelativePaths/CMakeLists.txt
@@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN)
+SET(TEST_SEP "a b c")
+SEPARATE_ARGUMENTS(TEST_SEP)
+
+
#
# Include vars from a file and from a cache
#
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx
index 89c3436..fb268c4 100644
--- a/Tests/ComplexRelativePaths/Executable/complex.cxx
+++ b/Tests/ComplexRelativePaths/Executable/complex.cxx
@@ -667,7 +667,17 @@ int main()
{
cmFailed("REMOVE is not working");
}
-
+
+ // ----------------------------------------------------------------------
+ // Test SEPARATE_ARGUMENTS
+ if(strcmp("a;b;c", TEST_SEP) == 0)
+ {
+ cmPassed("SEPARATE_ARGUMENTS is working");
+ }
+ else
+ {
+ cmFailed("SEPARATE_ARGUMENTS is not working");
+ }
// ----------------------------------------------------------------------
// Summary
diff --git a/Tests/ComplexRelativePaths/cmTestConfigure.h.in b/Tests/ComplexRelativePaths/cmTestConfigure.h.in
index ed111fb..873123a 100644
--- a/Tests/ComplexRelativePaths/cmTestConfigure.h.in
+++ b/Tests/ComplexRelativePaths/cmTestConfigure.h.in
@@ -49,6 +49,8 @@
#cmakedefine FILE_HAS_WRAP_EXCLUDE
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
+#define TEST_SEP "${TEST_SEP}"
+
// Test registry read
#if defined(_WIN32) && !defined(__CYGWIN__)