ENH: add test for SEPARATE_ARGUMENTS

This commit is contained in:
Bill Hoffman 2002-04-30 14:01:07 -04:00
parent 2d37e6d1a8
commit 6cc58e5f9b
9 changed files with 51 additions and 3 deletions

View File

@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN) ADD_DEFINITIONS(-DCMAKE_IS_FUN)
SET(TEST_SEP "a b c")
SEPARATE_ARGUMENTS(TEST_SEP)
# #
# Include vars from a file and from a cache # Include vars from a file and from a cache
# #

View File

@ -669,6 +669,16 @@ int main()
} }
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// Test SEPARATE_ARGUMENTS
if(strcmp("a;b;c", TEST_SEP) == 0)
{
cmPassed("SEPARATE_ARGUMENTS is working");
}
else
{
cmFailed("SEPARATE_ARGUMENTS is not working");
}
// ----------------------------------------------------------------------
// Summary // Summary
std::cout << "Passed: " << cm_passed << "\n"; std::cout << "Passed: " << cm_passed << "\n";

View File

@ -49,6 +49,8 @@
#cmakedefine FILE_HAS_WRAP_EXCLUDE #cmakedefine FILE_HAS_WRAP_EXCLUDE
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}" #define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
#define TEST_SEP "${TEST_SEP}"
// Test registry read // Test registry read
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)

View File

@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN) ADD_DEFINITIONS(-DCMAKE_IS_FUN)
SET(TEST_SEP "a b c")
SEPARATE_ARGUMENTS(TEST_SEP)
# #
# Include vars from a file and from a cache # Include vars from a file and from a cache
# #

View File

@ -669,6 +669,16 @@ int main()
} }
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// Test SEPARATE_ARGUMENTS
if(strcmp("a;b;c", TEST_SEP) == 0)
{
cmPassed("SEPARATE_ARGUMENTS is working");
}
else
{
cmFailed("SEPARATE_ARGUMENTS is not working");
}
// ----------------------------------------------------------------------
// Summary // Summary
std::cout << "Passed: " << cm_passed << "\n"; std::cout << "Passed: " << cm_passed << "\n";

View File

@ -49,6 +49,8 @@
#cmakedefine FILE_HAS_WRAP_EXCLUDE #cmakedefine FILE_HAS_WRAP_EXCLUDE
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}" #define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
#define TEST_SEP "${TEST_SEP}"
// Test registry read // Test registry read
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)

View File

@ -14,6 +14,10 @@ ENDIF (CMAKE_ANSI_CXXFLAGS)
ADD_DEFINITIONS(-DCMAKE_IS_FUN) ADD_DEFINITIONS(-DCMAKE_IS_FUN)
SET(TEST_SEP "a b c")
SEPARATE_ARGUMENTS(TEST_SEP)
# #
# Include vars from a file and from a cache # Include vars from a file and from a cache
# #

View File

@ -669,6 +669,16 @@ int main()
} }
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// Test SEPARATE_ARGUMENTS
if(strcmp("a;b;c", TEST_SEP) == 0)
{
cmPassed("SEPARATE_ARGUMENTS is working");
}
else
{
cmFailed("SEPARATE_ARGUMENTS is not working");
}
// ----------------------------------------------------------------------
// Summary // Summary
std::cout << "Passed: " << cm_passed << "\n"; std::cout << "Passed: " << cm_passed << "\n";

View File

@ -49,6 +49,8 @@
#cmakedefine FILE_HAS_WRAP_EXCLUDE #cmakedefine FILE_HAS_WRAP_EXCLUDE
#define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}" #define FILE_COMPILE_FLAGS "${FILE_COMPILE_FLAGS}"
#define TEST_SEP "${TEST_SEP}"
// Test registry read // Test registry read
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)