perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hedges <Mark.Hed...@Ticketmaster.com>
Subject RE: pass extra args to a test in Apache::Test?
Date Fri, 25 Jul 2014 22:55:16 GMT
Hey nevermind, setting env vars works.  I guess I must have typed that wrong before when I
tried that.  Thank you.

Mark

-----Original Message-----
From: Mark Hedges 
Sent: Friday, July 25, 2014 3:46 PM
To: modperl@perl.apache.org
Cc: Mark Hedges
Subject: pass extra args to a test in Apache::Test?

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