From 1b3e4c73f82fcd8f4ccc839a06b5cbef9a07ea39 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Thu, 12 Jun 2014 09:07:57 +0200 Subject: [PATCH] Cmake tests: Added parser_tools test to the lyx2lyx group tests --- development/autotests/CMakeLists.txt | 2 +- lib/lyx2lyx/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/development/autotests/CMakeLists.txt b/development/autotests/CMakeLists.txt index c1e19a4aff..b5b1423f7a 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 6cfa5cd303..43fb13a6db 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) -- 2.39.2