Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E93F11239 for ; Fri, 25 Jul 2014 22:46:30 +0000 (UTC) Received: (qmail 89367 invoked by uid 500); 25 Jul 2014 22:46:29 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 89332 invoked by uid 500); 25 Jul 2014 22:46:29 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 89322 invoked by uid 99); 25 Jul 2014 22:46:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2014 22:46:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Mark.Hedges@ticketmaster.com designates 68.232.137.160 as permitted sender) Received: from [68.232.137.160] (HELO esa4.livenationus.iphmx.com) (68.232.137.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2014 22:46:22 +0000 X-IronPort-AV: E=Sophos;i="5.01,733,1400050800"; d="scan'208";a="4234058" Received: from unknown (HELO USASHEXCASHUB02.LYV.LiveNation.com) ([209.104.35.200]) by esa4.livenationus.iphmx.com with ESMTP/TLS/AES128-SHA; 25 Jul 2014 15:46:02 -0700 Received: from USASHEXMB03.LYV.LiveNation.com ([fe80::4d03:1c0a:f495:6dc8]) by USASHEXCASHUB02.LYV.LiveNation.com ([fe80::e45e:8c5e:e12c:43fb%18]) with mapi id 14.03.0123.003; Fri, 25 Jul 2014 18:46:00 -0400 From: Mark Hedges To: "modperl@perl.apache.org" CC: Mark Hedges Subject: pass extra args to a test in Apache::Test? Thread-Topic: pass extra args to a test in Apache::Test? Thread-Index: Ac+oWjRzItCFFp3dTAylA8GGeEYWig== Date: Fri, 25 Jul 2014 22:46:00 +0000 Message-ID: <55EEF0B3C5BF2744B2248754D717EE4C28DE1CE8@USASHEXMB03.LYV.LiveNation.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.240.17.201] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi. Is there a way to pass extra command-line arguments to a test script r= unning 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=3D1 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 t= o read. That seems a little kludgy. Any tips? Thank you. Mark