Hi Ralf, Pippijn. On Friday 10 December 2010, Ralf Wildenhues wrote: > > * 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. > If you do so, say remove both `.rexp' and `.texp' from TEST_EXTENSIONS, you should also remove the definitions of REXP_LOG_COMPILER and TEXP_LOG_COMPILER, and insted define `LOG_COMPILER' to `$(srcdir)/runtest'. In fact, the documentation from the automake manual reads something like: ``For tests that match an extension .ext listed in TEST_EXTENSIONS, you can provide a test driver using the variable ext_LOG_COMPILER (note the upper-case extension). For all tests without a registered extension, the variable LOG_COMPILER may be used.''
HTH, Stefano
