mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Export tests in cmake build: Do not use the default userdir while
running lyx.
This commit is contained in:
parent
f43e38fa9f
commit
33f23ae8e5
@ -59,7 +59,7 @@ if(Q_WS_X11)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(Missing)
|
if(Missing)
|
||||||
message(STATUS "Missing libraries or programs to create xvkbd: ${Missing}")
|
message(STATUS "Missing Libraries or programms to create xvkbd: ${Missing}")
|
||||||
message(STATUS "cmake build is therefore omiting autotests")
|
message(STATUS "cmake build is therefore omiting autotests")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -137,6 +137,7 @@ foreach(libsubfolder doc examples templates)
|
|||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}"
|
||||||
COMMAND ${CMAKE_COMMAND} -DLYX_ROOT=${LIBSUB_SRC_DIR}
|
COMMAND ${CMAKE_COMMAND} -DLYX_ROOT=${LIBSUB_SRC_DIR}
|
||||||
-Dlyx=$<TARGET_FILE:${_lyx}>
|
-Dlyx=$<TARGET_FILE:${_lyx}>
|
||||||
|
-DWORKDIR=${CMAKE_CURRENT_BINARY_DIR}/${LYX_HOME}
|
||||||
-Dformat=lyx16x
|
-Dformat=lyx16x
|
||||||
-Dextension=16.lyx
|
-Dextension=16.lyx
|
||||||
-Dfile=${f}
|
-Dfile=${f}
|
||||||
@ -155,4 +156,3 @@ foreach(libsubfolder doc examples templates)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Copyright (c) 2012 Kornel Benko kornel@lyx.org
|
# Copyright (c) 2012 Kornel Benko kornel@lyx.org
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# LYX_ROOT = ${TOP_SRC_DIR}/lib/doc
|
# LYX_ROOT = ${TOP_SRC_DIR}/lib/{doc,examples,templates}
|
||||||
# lyx =
|
# lyx =
|
||||||
# format = lyx16x|xhtml
|
# format = lyx16x|xhtml
|
||||||
# extension = 16.lyx|xhtml
|
# extension = 16.lyx|xhtml
|
||||||
@ -12,6 +12,7 @@
|
|||||||
#
|
#
|
||||||
# Script should be called like:
|
# Script should be called like:
|
||||||
# cmake -DLYX_ROOT=xxx \
|
# cmake -DLYX_ROOT=xxx \
|
||||||
|
# -DWORKDIR=${BUILD_DIR}/autotests/out-home
|
||||||
# -Dlyx=xxx \
|
# -Dlyx=xxx \
|
||||||
# -Dformat=xxx \
|
# -Dformat=xxx \
|
||||||
# -Dextension=xxx \
|
# -Dextension=xxx \
|
||||||
@ -20,6 +21,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
message(STATUS "Executing ${lyx} -E ${format} ${file}.${extension} ${LYX_ROOT}/${file}.lyx")
|
message(STATUS "Executing ${lyx} -E ${format} ${file}.${extension} ${LYX_ROOT}/${file}.lyx")
|
||||||
|
set(ENV{LYX_USERDIR} "${WORKDIR}/.lyx")
|
||||||
execute_process(COMMAND ${CMAKE_COMMAND} -E remove ${file}.${extension})
|
execute_process(COMMAND ${CMAKE_COMMAND} -E remove ${file}.${extension})
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ${lyx} -E ${format} ${file}.${extension} "${LYX_ROOT}/${file}.lyx"
|
COMMAND ${lyx} -E ${format} ${file}.${extension} "${LYX_ROOT}/${file}.lyx"
|
||||||
|
Loading…
Reference in New Issue
Block a user