commit 1b3e4c73f82fcd8f4ccc839a06b5cbef9a07ea39
Author: Kornel Benko <[email protected]>
Date: Thu Jun 12 09:07:57 2014 +0200
Cmake tests: Added parser_tools test to the lyx2lyx group tests
diff --git a/development/autotests/CMakeLists.txt
b/development/autotests/CMakeLists.txt
index c1e19a4..b5b1423 100644
--- a/development/autotests/CMakeLists.txt
+++ b/development/autotests/CMakeLists.txt
@@ -229,7 +229,7 @@ foreach(libsubfolder doc examples templates)
"-DLYX_TESTS_USERDIR=${LYX_TESTS_USERDIR}"
"-DLYXFILE=${LIBSUB_SRC_DIR}/${f}.lyx"
-P "${TOP_SRC_DIR}/development/autotests/lyx2lyxtest.cmake")
- setmarkedtestlabel(${TestName} ${reverted} "export")
+ setmarkedtestlabel(${TestName} ${reverted} "lyx2lyx")
endif()
endif()
set(TestName "check_load/${libsubfolder}/${f}")
diff --git a/lib/lyx2lyx/CMakeLists.txt b/lib/lyx2lyx/CMakeLists.txt
index 6cfa5cd..43fb13a 100644
--- a/lib/lyx2lyx/CMakeLists.txt
+++ b/lib/lyx2lyx/CMakeLists.txt
@@ -14,4 +14,10 @@ if (UNIX)
# include(../PyCompile)
endif()
+set(_testname "lyx2lyx/parser_tools")
+add_test(NAME ${_testname}
+ COMMAND ${LYX_PYTHON_EXECUTABLE}
"${TOP_SRC_DIR}/lib/lyx2lyx/test_parser_tools.py"
+ )
+settestlabel(${_testname} "lyx2lyx")
+
install(PROGRAMS ${TOP_SRC_DIR}/lib/lyx2lyx/lyx2lyx DESTINATION
${LYX_DATA_SUBDIR}lyx2lyx)