]> git.lyx.org Git - features.git/commitdiff
Cmake tests: Another case of using temporary files
authorKornel Benko <kornel@lyx.org>
Sun, 8 Oct 2017 09:00:41 +0000 (11:00 +0200)
committerKornel Benko <kornel@lyx.org>
Sun, 8 Oct 2017 09:04:17 +0000 (11:04 +0200)
Ctest misinterprets '#' in filenames as comment start,

development/autotests/ExportTests.cmake

index 3aa57677daf11562d7b50ab189e806c3abcddad8..0a94e16dbb37a2f0852795ce62f656ea0ffb91ff 100644 (file)
@@ -312,11 +312,15 @@ foreach(libsubfolderx autotests/export lib/doc lib/examples lib/templates autote
   set(lang_lyx_files)
   set(nolang_lyx_files)
   foreach(f ${lyx_files})
-    string(REGEX MATCHALL "^[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${f})
-    if(_v)
-      list(APPEND lang_lyx_files ${f})
+    if (${f} MATCHES "#")
+      # Do nothing, probably wrong temporary file
     else()
-      list(APPEND nolang_lyx_files ${f})
+      string(REGEX MATCHALL "^[a-z][a-z](_[A-Z][A-Z])?\\/" _v ${f})
+      if(_v)
+        list(APPEND lang_lyx_files ${f})
+      else()
+        list(APPEND nolang_lyx_files ${f})
+      endif()
     endif()
   endforeach()
   foreach(f ${nolang_lyx_files} ${lang_lyx_files})