mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Cmake build: autotests
1.) Filenames for export changed 2.) Usage of wmctrl 3.) More temporary file to remove
This commit is contained in:
parent
f02f671dd0
commit
57ca9ee073
@ -5,11 +5,10 @@ message(STATUS "lyx_files = ${lyx_files}")
|
||||
set(ERRORS)
|
||||
foreach(format lyx16x xhtml)
|
||||
foreach(f ${lyx_files})
|
||||
message(STATUS "Executing ${lyx} -e ${format} ${f}")
|
||||
#execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${f} localtest.lyx)
|
||||
message(STATUS "Executing ${lyx} -E ${format} localtest.${format} ${f}")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E remove localtest.xhtml localtest.16.lyx)
|
||||
execute_process(
|
||||
COMMAND ${lyx} -E ${format} localtest.lyx ${f}
|
||||
COMMAND ${lyx} -E ${format} localtest.${format} ${f}
|
||||
RESULT_VARIABLE _err)
|
||||
string(COMPARE NOTEQUAL ${_err} 0 _erg)
|
||||
if(_erg)
|
||||
|
@ -234,7 +234,7 @@ def RaiseWindow():
|
||||
#intr_system("echo x-session-manager open files: `lsof -p $X_PID | grep ICE-unix | wc -l`")
|
||||
####intr_system("wmctrl -l | ( grep '"+lyx_window_name+"' || ( killall lyx ; sleep 1 ; killall -9 lyx ))")
|
||||
#intr_system("wmctrl -R '"+lyx_window_name+"' ;sleep 0.1")
|
||||
system_retry(30, "wmctrl -a '"+lyx_window_name+"'")
|
||||
system_retry(30, "wmctrl -i -a '"+lyx_window_name+"'")
|
||||
|
||||
|
||||
lyx_pid = os.environ.get('LYX_PID')
|
||||
@ -359,6 +359,9 @@ while not failed:
|
||||
sendKeystring(c[4:], lyx_pid)
|
||||
else:
|
||||
##intr_system('killall lyx; sleep 2 ; killall -9 lyx')
|
||||
if lyx_pid is None:
|
||||
print 'No path /proc/xxxx/status, exiting'
|
||||
else:
|
||||
print 'No path /proc/' + lyx_pid + '/status, exiting'
|
||||
os._exit(1)
|
||||
elif c[0:4] == 'KD: ':
|
||||
@ -412,6 +415,8 @@ while not failed:
|
||||
else:
|
||||
short_code = ccode
|
||||
lyx_dir = os.popen("dirname \"" + lyx_exe + "\"").read().rstrip()
|
||||
# on cmake-build there is no Makefile in this directory
|
||||
if os.path.exists(lyx_dir + "/Makefile"):
|
||||
print "Executing: grep 'PACKAGE =' " + lyx_dir + "/Makefile | sed -e 's/PACKAGE = \(.*\)/\\1/'"
|
||||
lyx_name = os.popen("grep 'PACKAGE =' " + lyx_dir + "/Makefile | sed -e 's/PACKAGE = \(.*\)/\\1/'").read().rstrip()
|
||||
intr_system("mkdir -p " + locale_dir + "/" + ccode + "/LC_MESSAGES")
|
||||
|
@ -51,7 +51,7 @@ set(ENV{XVKBD_EXE} ${XVKBD_EXE})
|
||||
set(ENV{KEYTEST_INFILE} "${AUTOTEST_ROOT}/${KEYTEST_INFILE}")
|
||||
set(ENV{KEYTEST_OUTFILE} "${WORKDIR}/${KEYTEST_OUTFILE}")
|
||||
set(ENV{MAX_DROP} 1)
|
||||
file(GLOB _testfiles RELATIVE "${WORKDIR}" "test.*")
|
||||
file(GLOB _testfiles RELATIVE "${WORKDIR}" "test*.*" "#test*.*")
|
||||
if(_testfiles)
|
||||
# remove some leftover files from previous test
|
||||
execute_process(
|
||||
|
Loading…
Reference in New Issue
Block a user