perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hedges <Mark.Hed...@Ticketmaster.com>
Subject pass extra args to a test in Apache::Test?
Date Fri, 25 Jul 2014 22:46:00 GMT
Hi.  Is there a way to pass extra command-line arguments to a test script running in Apache::Test?

I want to do:

  t/TEST -verbose t/foobar.t --baz

And have this argument show up in @ARGV of t/foobar.t.  Is there a special trick?

Or, this would work:

  BAZ=1 t/TEST -verbose t/foobar.t

And have that show up in $ENV in t/foobar.t.

The only way I have found so far is to put files somewhere for the script to read.  That seems
a little kludgy.

Any tips?  Thank you.

Mark

Mime
View raw message