GNU bug report logs - #14561
GNU make specific stuff cannot be used in RHS of "TESTS ="

Previous Next

Package: automake;

Reported by: Marko Lindqvist <cazfi74 <at> gmail.com>

Date: Wed, 5 Jun 2013 19:25:02 UTC

Severity: wishlist

Merged with 13771

To reply to this bug, email your comments to 14561 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-automake <at> gnu.org:
bug#14561; Package automake. (Wed, 05 Jun 2013 19:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marko Lindqvist <cazfi74 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-automake <at> gnu.org. (Wed, 05 Jun 2013 19:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marko Lindqvist <cazfi74 <at> gmail.com>
To: bug-automake <at> gnu.org
Subject: TESTS set from patsubst result in unterminated variable reference
Date: Wed, 5 Jun 2013 22:22:20 +0300
[Message part 1 (text/plain, inline)]
 This was found originally when trying to use automake-1.13 (including
attempt with 1.13.3) for gtk-engines-2.20.2, but I've tried to produce
minimum Makefile.am to reproduce the problem (attached).

 When variable TESTS gets assigned result from patsubst -function,
running make for resulting Makefile errors with:
Makefile:592: *** unterminated variable reference.  Stop.


 Attached testcase includes minimum configure.ac and Makefile.am and
separate ./run.sh script to produce rest of the files and to run make.


 - ML
[automakeTESTSbug.tar.xz (application/octet-stream, attachment)]

Information forwarded to bug-automake <at> gnu.org:
bug#14561; Package automake. (Sat, 08 Jun 2013 09:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 14561 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Marko Lindqvist <cazfi74 <at> gmail.com>
Cc: 14561 <at> debbugs.gnu.org
Subject: Re: bug#14561: TESTS set from patsubst result in unterminated variable
	reference
Date: Sat, 08 Jun 2013 11:56:50 +0200
retitle GNU make specific stuff cannot be used in RHS of "TESTS =" 14561
retitle GNU make specific stuff cannot be used in RHS of "TESTS =" 13771
forcemerge 13771 14561
stop

On 06/05/2013 09:22 PM, Marko Lindqvist wrote:
>  This was found originally when trying to use automake-1.13 (including
> attempt with 1.13.3) for gtk-engines-2.20.2, but I've tried to produce
> minimum Makefile.am to reproduce the problem (attached).
>
>  When variable TESTS gets assigned result from patsubst -function,
> running make for resulting Makefile errors with:
> Makefile:592: *** unterminated variable reference.  Stop.
> 
> 
>  Attached testcase includes minimum configure.ac and Makefile.am and
> separate ./run.sh script to produce rest of the files and to run make.
> 
> 
This is basically a duplicated of bug#13771, so I'm merging this
report with that one.

The bottom line is that this is a long-standing limitation of the
parallel testsuite harness: Automake needs to analyze the contents
of TESTS statically (at automake runtime), so GNU make special
builtins or user-defined functions cannot be used in the TESTS
definition (automake doesn't grasp them).

You can work around this by wrapping your GNU make specific stuff
into a configure substitution, which will be left alone by automake;
e.g.:

  # In configure.ac:
  AC_SUBST([auto_find_tests], ['$(sort $(wildcard *.test))'])

  # In Makefile.am:
  TESTS = @auto_find_tests@

Note that, in order for this to work correctly in all situations,
you should only use tests whose suffix is listed in TESTS_EXTENSIONS
(if that variable is not explicitly defined, it's default value
is ".test").  That's because, missing such extension(s), automake
cannot generate generic suffix rules to create the '.trs' and
'.log' files the testsuite harness relies upon.

HTH,
  Stefano




Forcibly Merged 13771 14561. Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 08 Jun 2013 09:58:02 GMT) Full text and rfc822 format available.

Changed bug title to 'GNU make specific stuff cannot be used in RHS of "TESTS ="' from 'TESTS set from patsubst result in unterminated variable reference' Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 08 Jun 2013 10:00:02 GMT) Full text and rfc822 format available.

Changed bug title to 'GNU make specific stuff cannot be used in RHS of "TESTS =" 13771' from 'GNU make specific stuff cannot be used in RHS of "TESTS ="' Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 08 Jun 2013 10:00:02 GMT) Full text and rfc822 format available.

Changed bug title to 'GNU make specific stuff cannot be used in RHS of "TESTS ="' from 'GNU make specific stuff cannot be used in RHS of "TESTS =" 13771' Request was from Stefano Lattarini <stefano.lattarini <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 08 Jun 2013 10:03:02 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.