automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two TESTS from the same file


From: Ralf Wildenhues
Subject: Re: Two TESTS from the same file
Date: Fri, 10 Dec 2010 06:49:13 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Pippijn,

* Pippijn van Steenhoven wrote on Thu, Dec 09, 2010 at 06:01:41AM CET:
>   TESTS += t1075b.rexp # compiled
>   TESTS += t1075b.texp # interpreted
> 
>   TEST_EXTENSIONS = .rexp .texp
> 
>   REXP_LOG_COMPILER = $(srcdir)/runtest
>   TEXP_LOG_COMPILER = $(srcdir)/runtest
> 
>   # in case the two outputs are equal, the directory only has a single
>   # .exp file which we copy to .texp and .rexp here
>   .exp.rexp: ; @cp $< $@
>   .exp.texp: ; @cp $< $@
> 
> The copying worked well and everything is ok, except that both .rexp and
> .texp produce .log, so after one of them has been run, the other one is
> not run, because the .log already exists.
> 
> Any ideas on how I can get this to work without adding yet more subdirs?

Remove either .rexp or .texp or both from TEST_EXTENSIONS.  Then the log
files will be named t1075b.rexp.log or t1075b.texp.log or both.  This is
a bit uglier, and also makes for larger Makefile.in and Makefile files,
but should otherwise work.

Cheers,
Ralf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]