DocBook v2

Thibaut Cuvelier tcuvelier at lyx.org
Mon Aug 31 19:13:43 UTC 2020


On Mon, 31 Aug 2020 at 20:07, Scott Kostyshak <skostysh at lyx.org> wrote:

> On Mon, Aug 31, 2020 at 07:57:12PM +0200, Thibaut Cuvelier wrote:
> > On Mon, 31 Aug 2020 at 19:31, Kornel Benko <kornel at lyx.org> wrote:
> >
> > > Am Mon, 31 Aug 2020 19:24:58 +0200
> > > schrieb Thibaut Cuvelier <tcuvelier at lyx.org>:
> > >
> > > > > After everything is compiled, got to the build directory and use
> > > > >  $ ctest -R docbook5 -j4
> > > > > provided that you have 4 processors active.
> > > > >
> > > > This command works like a charm (as long as the path is correctly
> > > configured). For now,
> > > > it looks like exactly all the tests fail, I guess there is still
> work to
> > > do!
> > >
> > > Select some export
> > >  $ ctest -R export/doc/Intro_docbook5
> > >
> > > Check the log-output in build-dir
> > >         Testing/Temporary/LastTest.log
> > > and eventually send it to me. Maybe you miss some commands, or
> perl-module.
> > >
> >
> > A first issue is that CTest doesn't find my Python installation. For
> > instance, this is what I can find in this log file:
>
> A few questions:
>
> Is the following indeed the correct path to Python on your system?
>
> C:/Users/Thibaut/AppData/Local/Microsoft/WindowsApps/python3.exe
>

It's not. By adding the right path in the path environment variable, I
could make it work.

However, I still have similar issues with Perl. My new version of Perl in
on the path and is the one that gets used on the command line:

D:\LyX\lyx-unstable\cmake-build-debug>perl -v

This is perl 5, version 32, subversion 0 (v5.32.0) built for
MSWin32-x64-multi-thread

Copyright 1987-2020, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

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
"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):

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?

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


> 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:

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.


-- 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200831/b530a72e/attachment-0001.html>


More information about the lyx-devel mailing list