From 9f4927e8557af79bcd0c1c26cc60dace24d90400 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 16 Feb 2013 02:54:17 -0500 Subject: [PATCH] Add examples to export tests (CMake & autotools) 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 | 2 +- development/autotests/export-in.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/development/autotests/CMakeLists.txt b/development/autotests/CMakeLists.txt index 3e643fe142..131c8b91a7 100644 --- a/development/autotests/CMakeLists.txt +++ b/development/autotests/CMakeLists.txt @@ -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}) diff --git a/development/autotests/export-in.sh b/development/autotests/export-in.sh index 4757695e9b..adf2ce167f 100755 --- a/development/autotests/export-in.sh +++ b/development/autotests/export-in.sh @@ -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