Allow TEST_FILES make var to be used to pass an argument list through to harness...
authorYves Orton <demerphq@gmail.com>
Wed, 25 Jul 2007 19:13:56 +0000 (19:13 +0000)
committerYves Orton <demerphq@gmail.com>
Wed, 25 Jul 2007 19:13:56 +0000 (19:13 +0000)
This allows things like

  make test_harness TEST_FILES='-re x2p'

which will run any test files that match the string 'x2p'. As x2p is the last test to be run this is kinda useful.

p4raw-id: //depot/perl@31658

Makefile.SH

index 8215b4c..d823287 100644 (file)
@@ -1177,10 +1177,10 @@ test_prep: test_prep_pre miniperl$(EXE_EXT) $(unidatafiles) perl$(EXE_EXT) $(dyn
        PERL=./perl $(MAKE) _test_prep
 
 _test_tty:
-       cd t && $(PERL_DEBUG) $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS) </dev/tty
+       cd t && $(PERL_DEBUG) $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS) $(TEST_FILES) </dev/tty
 
 _test_notty:
-       cd t && $(PERL_DEBUG) PERL_SKIP_TTY_TEST=1 $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS)
+       cd t && $(PERL_DEBUG) PERL_SKIP_TTY_TEST=1 $(LDLIBPTH) $(PERL) $(TESTFILE) $(TEST_ARGS) $(TEST_FILES)
 
 unpack_files:
        $(LDLIBPTH) $(RUN) ./miniperl$(EXE_EXT) -Ilib uupacktool.pl -u -m