Sfoglia il codice sorgente

ENH: Added partial test for include regular expressions.

Brad King 21 anni fa
parent
commit
16b9edd17b

+ 1 - 1
Tests/Complex/CMakeLists.txt

@@ -101,7 +101,7 @@ INCLUDE_DIRECTORIES(BEFORE
   ${Complex_BINARY_DIR}
 )
 
-INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$" "^$")
+INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$" "^cmMissing")
 
 LINK_DIRECTORIES(
   ${Complex_BINARY_DIR}/Library

+ 4 - 0
Tests/Complex/Executable/complex.file.cxx

@@ -1,3 +1,7 @@
+#if 0
+#include "cmMissingHeader.h"
+#endif
+
 int main(int , char**)
 {
   return 0;

+ 1 - 1
Tests/ComplexOneConfig/CMakeLists.txt

@@ -101,7 +101,7 @@ INCLUDE_DIRECTORIES(BEFORE
   ${Complex_BINARY_DIR}
 )
 
-INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$" "^$")
+INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$" "^cmMissing")
 
 LINK_DIRECTORIES(
   ${Complex_BINARY_DIR}/Library

+ 4 - 0
Tests/ComplexOneConfig/Executable/complex.file.cxx

@@ -1,3 +1,7 @@
+#if 0
+#include "cmMissingHeader.h"
+#endif
+
 int main(int , char**)
 {
   return 0;

+ 1 - 1
Tests/ComplexRelativePaths/CMakeLists.txt

@@ -101,7 +101,7 @@ INCLUDE_DIRECTORIES(BEFORE
   ${Complex_BINARY_DIR}
 )
 
-INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$" "^$")
+INCLUDE_REGULAR_EXPRESSION("^(cmTest|file|sharedFile).*$" "^cmMissing")
 
 LINK_DIRECTORIES(
   ${Complex_BINARY_DIR}/Library

+ 4 - 0
Tests/ComplexRelativePaths/Executable/complex.file.cxx

@@ -1,3 +1,7 @@
+#if 0
+#include "cmMissingHeader.h"
+#endif
+
 int main(int , char**)
 {
   return 0;