The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 9183c922ea41fd807ce9eac15845ee5ad6fd982b
Author: Kornel Benko <[email protected]>
Date:   Wed Feb 20 13:26:01 2013 +0100

    Sort export tests in cmake build according to language

diff --git a/development/autotests/CMakeLists.txt 
b/development/autotests/CMakeLists.txt
index d5ead7d..66968cb 100644
--- a/development/autotests/CMakeLists.txt
+++ b/development/autotests/CMakeLists.txt
@@ -65,7 +65,19 @@ endmacro()
 foreach(libsubfolder doc examples)
   set(LIBSUB_SRC_DIR "${TOP_SRC_DIR}/lib/${libsubfolder}")
   file(GLOB_RECURSE lyx_files RELATIVE "${LIBSUB_SRC_DIR}" 
"${LIBSUB_SRC_DIR}/*.lyx")
+  list(SORT lyx_files)
+  # Now create 2 lists. One for files in a language dir, one without
+  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})
+    else()
+      list(APPEND nolang_lyx_files ${f})
+    endif()
+  endforeach()
+  foreach(f ${nolang_lyx_files} ${lang_lyx_files})
     # Strip extension
     string(REGEX REPLACE "\\.lyx$" "" f ${f})
     add_test(NAME export/${libsubfolder}/${f}_lyx16

-----------------------------------------------------------------------

Summary of changes:
 development/autotests/CMakeLists.txt |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to