httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
Subject [Patch] add TEST_EXTRA_ARGS to allow passing arguments to t/TEST thru make invocation
Date Mon, 28 Jun 2004 20:16:03 GMT
I am working on an Apache::Test based test framework, and being able to pass extra conditionnal
arguments to t/TEST thru make test would be very much usefull. Since right now, you can only
turn verbose on or off.

$> make test TEST_EXTRA_ARGS="-port 8899 -debug=gdb"

For instance. Otherwise, I end up creating other make targets that look like

some_special_test:
	$(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) \
	t/TEST -port 8899 -bugreport -verbose=$(TEST_VERBOSE) $(TEST_FILES)

Forcing me to duplicate too much code for my taste.

Thoughts?

Index: Apache-Test/lib/Apache/TestMM.pm
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestMM.pm,v
retrieving revision 1.34
diff -u -I$Id -r1.34 TestMM.pm
--- Apache-Test/lib/Apache/TestMM.pm	16 Apr 2004 19:47:42 -0000	1.34
+++ Apache-Test/lib/Apache/TestMM.pm	28 Jun 2004 20:11:47 -0000
@@ -63,12 +63,12 @@

  test_clean :
  	$(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) \
-	t/TEST -clean
+	t/TEST $(TEST_EXTRA_ARGS) -clean

  run_tests : test_clean
  	$(PASSENV) \
  	$(FULLPERL) -I$(INST_ARCHLIB) -I$(INST_LIB) \
-	t/TEST -bugreport -verbose=$(TEST_VERBOSE) $(TEST_FILES)
+	t/TEST $(TEST_EXTRA_ARGS) -bugreport -verbose=$(TEST_VERBOSE) $(TEST_FILES)

  test :: pure_all run_tests test_clean


-- 
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

Mime
View raw message