Am Fri, 13 Nov 2020 23:42:29 +0100
schrieb Kornel Benko <kor...@lyx.org>:

> Am Sat, 14 Nov 2020 10:55:48 +1300
> schrieb "Sam Crawley" <s...@crawley.nz>:
> 
> > On Sat, 14 Nov 2020, at 00:12, Kornel Benko wrote:  
> > > Running the test I get:
> > > ...
> > > Can't exec 
> > > "/usr2/src/lyx/lyx-git/development/batchtests/bin/compare_custom.pl":
> > > Permission denied
> > > at /BUILD/BUILDMint18/BuildLyxGitQt5.9.5local-gcc8.4.0/lyx_batch.pl line 
> > > 195.
> > > ...
> > > 
> > > The attached diff to your lyx_batch.pl.in cures it.  
> > 
> > Hmm, the @PERL_EXECUTABLE@ macro doesn't expand for me. Is there something 
> > I need to
> > do to make that work?
> > 
> > Sam.  
> 
> Defined at development/checkurls/CMakeLists.txt:8
>       find_package(Perl REQUIRED)
> 
> Apparently you do not have '-DLYX_ENABLE_URLTESTS:BOOL=ON'. We should move the
> find_package() call to different place, maybe to the main CMakeLists.txt.
> 
>       Kornel

Or, for now, change the development/batchtests/CMakeLists.txt.

        Kornel
diff --git a/development/batchtests/CMakeLists.txt b/development/batchtests/CMakeLists.txt
index 87a741deee..f93f233d74 100644
--- a/development/batchtests/CMakeLists.txt
+++ b/development/batchtests/CMakeLists.txt
@@ -6,12 +6,16 @@ string(TOUPPER "${testlabel}_" testprefix)
 macro(add_batch_test testname testpar)
   add_test(NAME "${testprefix}${testname}" COMMAND ${PERL_EXECUTABLE} ${CMAKE_BINARY_DIR}/lyx_batch.pl ${testpar})
   setmarkedtestlabel(${testprefix}${testname} ${ARGN} "${testlabel}")
 endmacro()
 
+# Tests not working without defined PERL_EXECUTABLE
+find_package(Perl REQUIRED)
+
 add_batch_test(outline-beamer beamer_test "export")
 # Checking that info inset correctly fills up VCS information
 # see also bug #10835
 add_batch_test(vcs-info vcs_info_export)
 add_batch_test(AMS-import ams-import "tex2lyx")
 add_batch_test(SAVE-as save_as_test "export")
+add_batch_test(compare-test compare_test "compare_test")
 

Attachment: pgpZlaKbNgUBN.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to