automake-ng
[Top][All Lists]
Advanced

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

Re: [Automake-NG] [PATCH 18/17] [ng] coverage: parallel-tests and dynami


From: Stefano Lattarini
Subject: Re: [Automake-NG] [PATCH 18/17] [ng] coverage: parallel-tests and dynamic $(TEST_EXTENSIONS) content
Date: Wed, 23 May 2012 00:02:15 +0200

On 05/22/2012 11:22 PM, Stefano Lattarini wrote:
> The recent changes to the parallel-tests implementation should allow us
> to define or override TEST_EXTENSIONS with more dynamic contents; in
> particular, something like:
> 
>     TEST_EXTENSIONS = $(suffix $(TESTS))
> 
> should now work smoothly.
> 
> * t/test-extensions-dynamic.sh: New test.
> 
In light of the the discussion about [PATCH 15/17], consider the diff
below squashed in.

Regards,
  Stefano

-*-*-*-

diff --git a/t/test-extensions-dynamic.sh b/t/test-extensions-dynamic.sh
index a762ad8..e2dbc7d 100755
--- a/t/test-extensions-dynamic.sh
+++ b/t/test-extensions-dynamic.sh
@@ -29,7 +29,7 @@ mkdir sub
 cat > Makefile.am << 'END'
 SUBDIRS = sub
 TESTS = foo.sh bar.test baz.t1 mu.t1.t2 zardoz.tap
-TEST_EXTENSIONS = .test @suf@ $(foreach i,1 2,t$(i))
+TEST_EXTENSIONS = .test @suf@ $(foreach i,1 2,.t$(i))
 TEST_EXTENSIONS += $(subst &,.,$(call am__tolower,&SH))
 END

@@ -81,7 +81,7 @@ test -f sub/3.log

 do_clean

-do_setup TEST_EXTENSIONS='.sh t2 test ${suf}'
+do_setup TEST_EXTENSIONS='.sh .t2 $(subst o,e,.tost) ${suf}'
 test -f foo.log
 test -f bar.log
 test -f baz.t1.log




reply via email to

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