DocBook v2

Kornel Benko kornel at lyx.org
Mon Aug 31 19:47:29 UTC 2020


Am Mon, 31 Aug 2020 21:13:43 +0200
schrieb Thibaut Cuvelier <tcuvelier at lyx.org>:

> Here is an excerpt of the test log:
> 
> -- Expected result file "doc/Intro.xml" exists
> -- Calling C:/Program Files (x86)/LyX 2.3/Perl/bin/perl.exe

The perl executable is found at cmake configure time. So you have to set the
desired path before configuring.
But I wonder about 'LyX 2.3' in path.


> "D:/LyX/lyx-unstable/development/autotests/xmlParser.pl" "doc/Intro.xml" -- Can't
> locate XML/Parser.pm in @INC (you may need to install the XML::Parser module) (@INC
> contains: C:/Program Files (x86)/LyX 2.3/Perl/lib .) at
> D:/LyX/lyx-unstable/development/autotests/xmlParser.pl line 4. BEGIN
> failed--compilation aborted at D:/LyX/lyx-unstable/development/autotests/xmlParser.pl
> line 4.
> 
> -- Msg Summary:
> -- OK: Exporting
> "D:/LyX/lyx-unstable/cmake-build-debug/autotests/out-home/AbC_WZYxQW/doc/Intro.lyx" to
> format docbook5 -- Error: Checking "doc/Intro.xml" with xmlParser.pl -- Exporting
> doc/Intro.lyx to docbook5 CMake Error at
> D:/LyX/lyx-unstable/development/autotests/export.cmake:298 (message): Export failed
> 
> Even though I have another Perl on the path, CTest still uses another one (which also
> happens to be on the path, but in one of the last few folders):

 As said, ctest has no chance to set the path for perl.

> D:\LyX\lyx-unstable\cmake-build-debug>set path
> Path=C:\Strawberry\perl\bin;C:\Strawberry\c\bin;C:\Users\Thibaut\Anaconda3\;C:\localsolver_9_5\bin;C:\Program
> Files\IBM\ILOG\CPLEX_Studio1210\opl\bin\x64_win64;C:\Program
> Files\IBM\ILOG\CPLEX_Studio1210\opl\oplide\;C:\Program
> Files\IBM\ILOG\CPLEX_Studio1210\cplex\bin\x64_win64;C:\Program
> Files\IBM\ILOG\CPLEX_Studio1210\cpoptimizer\bin\x64_win64;C:\gurobi900\win64\bin;C:\Program
> Files\IBM\ILOG\CPLEX_Studio129\opl\bin\x64_win64;C:\Program
> Files\IBM\ILOG\CPLEX_Studio129\opl\oplide\;C:\Program
> Files\IBM\ILOG\CPLEX_Studio129\cplex\bin\x64_win64;C:\Program
> Files\IBM\ILOG\CPLEX_Studio129\cpoptimizer\bin\x64_win64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
> Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA
> Corporation\PhysX\Common;C:\Program
> Files\PuTTY\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
> Files\Pandoc\;C:\Program Files (x86)\LyX 2.3\Perl\bin;C:\Program Files (x86)\Wolfram
> Research\WolframScript\;C:\Program
> Files\Mosek\9.2\tools\platform\win64x86\bin;C:\Program
> Files\MATLAB\R2020a\bin;C:\Program Files\Wolfram Research\WolframScript\;C:\Program
> Files\Git\cmd;C:\Users\Thibaut\AppData\Local\Microsoft\WindowsApps;C:\Users\Thibaut\AppData\Local\atom\bin;C:\Users\Thibaut\AppData\Local\GitHubDesktop\bin;C:\Users\Thibaut\AppData\Local\Programs\MiKTeX
> 2.9\miktex\bin\x64\;C:\Program
> Files\Java\jdk-12.0.1\bin;C:\Users\Thibaut\AppData\Local\Microsoft\WindowsApps;;C:\Users\Thibaut\AppData\Local\Programs\Microsoft
> VS Code\bin;C:\Program Files\CMake\bin
> 
> Maybe CTest is using the one that CMake detected when building the project?

Yes, when configuring (e.g. building compilation commands)

> Do you have xmllint installed on your system? If so, what is its location?
> > 
> Yes, I do, it's near Perl:
> 
> D:\LyX\lyx-unstable\cmake-build-debug>where xmllint
> C:\Strawberry\c\bin\xmllint.exe

 xmllint is used without being searched for by cmake. E.g. PATH will be used on ctest run.

> Can you do the same (post log if errors) for ctest -R "tex2lyx"? These tests don't rely
> on Python from what I remember so it might be interesting to see if those work well at
> least. Also do you get all failings for ctest -R "xhtml"?
> > 
> ctest -R "tex2lyx": everything fails. It looks like tex2lyx isn't built:

You have to use install-target to build everything.

> Start testing: Aug 31 21:12 Romance Daylight Time
> ----------------------------------------------------------
> 6/7444 Testing: tex2lyx/roundtrip/test.ltx
> 6/7444 Test: tex2lyx/roundtrip/test.ltx
> Command: "C:/Program Files/CMake/bin/cmake.exe"
> "-DLYX_TESTS_USERDIR=D:/LyX/lyx-unstable/cmake-build-debug/Testing/.lyx"
> "-DLYX_USERDIR_VER=LYX_USERDIR_24x"
> "-DLYX_PYTHON_EXECUTABLE=D:/LyX/lyx-unstable/lyx-windows-deps-msvc2017/Python/python.exe"
> "-DPY_SCRIPT=D:/LyX/lyx-unstable/src/tex2lyx/test/runtests.py"
> "-DTEX2LYX_EXE=D:/LyX/lyx-unstable/cmake-build-debug/bin/tex2lyx.exe"
> "-DSCRIPT_DIR=D:/LyX/lyx-unstable/lib/scripts"
> "-DWORKDIR=D:/LyX/lyx-unstable/cmake-build-debug/src/tex2lyx/test"
> "-DTESTFILE=test.ltx" "-P" "D:/LyX/lyx-unstable/src/tex2lyx/test/runtests.cmake"
> Directory: D:/LyX/lyx-unstable/cmake-build-debug/src/tex2lyx/test
> "tex2lyx/roundtrip/test.ltx" start time: Aug 31 21:12 Romance Daylight Time Output:
> ---------------------------------------------------------- -- SCRIPT_DIR =
> D:/LyX/lyx-unstable/lib/scripts Consider installing the PyWin extension modules if
> you're irritated by windows appearing briefly. Error: Converting the following files
> failed: test.ltx -- Executing: D:/LyX/lyx-unstable/cmake-build-debug/bin/tex2lyx.exe
> -roundtrip -copyfiles -f D:\LyX\lyx-unstable\src\tex2lyx\test\test.ltx
> D:\LyX\lyx-unstable\cmake-build-debug\src\tex2lyx\test\test.lyx
> 
> 'D:/LyX/lyx-unstable/cmake-build-debug/bin/tex2lyx.exe' is not recognized as an
> internal or external command, operable program or batch file.

Does this file not exist?

> -- Error output of D:/LyX/lyx-unstable/src/tex2lyx/test/runtests.py = 1
> CMake Error at D:/LyX/lyx-unstable/src/tex2lyx/test/runtests.cmake:71 (message):
>   D:/LyX/lyx-unstable/src/tex2lyx/test/runtests.py failed
> 
> 
> <end of output>
> Test time =   0.16 sec
> ----------------------------------------------------------
> Test Failed.
> "tex2lyx/roundtrip/test.ltx" end time: Aug 31 21:12 Romance Daylight Time
> "tex2lyx/roundtrip/test.ltx" time elapsed: 00:00:00
> ----------------------------------------------------------
>  
> ctest -R "xhtml": some tests pass.

	Kornel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200831/e4acfc01/attachment-0001.asc>


More information about the lyx-devel mailing list