]> git.lyx.org Git - features.git/commitdiff
Add examples to export tests (CMake & autotools)
authorScott Kostyshak <skostysh@lyx.org>
Sat, 16 Feb 2013 07:54:17 +0000 (02:54 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 16 Feb 2013 11:27:09 +0000 (06:27 -0500)
Now all export tests can be run with:
ctest -R "export"

Only export tests for manuals can be run with:
ctest -R "export/doc"

And only export tests for examples can be run with:
ctest -R "export/examples"

development/autotests/CMakeLists.txt
development/autotests/export-in.sh

index 3e643fe1421fd867b0b93e2efae850e80c6a556a..131c8b91a7db91e2fc408a898d469a39682b1a89 100644 (file)
@@ -62,7 +62,7 @@ macro(getdefaultoutputformat filepath varname)
   endforeach()
 endmacro()
 
-foreach(libsubfolder doc)
+foreach(libsubfolder doc examples)
   set(LIBSUB_SRC_DIR "${TOP_SRC_DIR}/lib/${libsubfolder}")
   file(GLOB lyx_files RELATIVE "${LIBSUB_SRC_DIR}" "${LIBSUB_SRC_DIR}/*.lyx")
   foreach(f ${lyx_files})
index 4757695e9bec48a7913c581f04dcd1cb173993e7..adf2ce167f922073edc1dfb9d9122da7b4013909 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 failed=0
-for libsubdir in doc; do
+for libsubdir in doc examples; do
     for format in xhtml lyx16x; do
         for f in $LYX_ROOT/lib/$libsubdir/*lyx; do
             if $LYX_EXE -e $format $f >> lyx-log.txt 2>&1; then