Skip Menu |
 

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 50215
Status: open
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: PERRAD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: a new option --env
Download (untitled) / with headers
text/plain 588b
I need a new option --env (or another name) which set environment variables before running test. Currently, I write something like this in a Makefile(gmake) : export LUA_PATH=;;../src/?.lua export LUA_INIT=platform = { osname=[[win32]], intsize=4 } test: prove --exec=parrot-lua *.t But export is gmake specific. So, I would write (portable on various platforms with various make utilities): test: prove \ --env "LUA_PATH=;;../src/?.lua" \ --env "LUA_INIT=platform = { osname=[[win32]], intsize=4 }" \ --exec=parrot-lua *.t Thanks. François Perrad. (fperrad on parrot)
Download (untitled) / with headers
text/plain 810b
On Mon Oct 05 10:45:03 2009, PERRAD wrote: Show quoted text
> I need a new option --env (or another name) which set environment > variables before running test. > > Currently, I write something like this in a Makefile(gmake) : > > export LUA_PATH=;;../src/?.lua > export LUA_INIT=platform = { osname=[[win32]], intsize=4 } > test: > prove --exec=parrot-lua *.t > > But export is gmake specific. > So, I would write (portable on various platforms with various make > utilities): > > test: > prove \ > --env "LUA_PATH=;;../src/?.lua" \ > --env "LUA_INIT=platform = { osname=[[win32]], intsize=4 }" \ > --exec=parrot-lua *.t > > Thanks.
This is what the env command does, right? I'm going to reject this ticket on the assumption that env does indeed solve your problem. Please re-open it if that's not the case.
Download (untitled) / with headers
text/plain 986b
On Sun Jan 17 16:00:51 2010, ANDYA wrote: Show quoted text
> On Mon Oct 05 10:45:03 2009, PERRAD wrote:
> > I need a new option --env (or another name) which set environment > > variables before running test. > > > > Currently, I write something like this in a Makefile(gmake) : > > > > export LUA_PATH=;;../src/?.lua > > export LUA_INIT=platform = { osname=[[win32]], intsize=4 } > > test: > > prove --exec=parrot-lua *.t > > > > But export is gmake specific. > > So, I would write (portable on various platforms with various make > > utilities): > > > > test: > > prove \ > > --env "LUA_PATH=;;../src/?.lua" \ > > --env "LUA_INIT=platform = { osname=[[win32]], intsize=4 }" \ > > --exec=parrot-lua *.t > > > > Thanks.
> > This is what the env command does, right? I'm going to reject this > ticket on the assumption that env does indeed solve your problem. Please > re-open it if that's not the case. >
The env utility is compliant with POSIX. But it is not available on Windows.
Subject: Re: [rt.cpan.org #50215] a new option --env
Date: Sun, 17 Jan 2010 13:44:35 -0800
To: bug-Test-Harness [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Download (untitled) / with headers
text/plain 470b
Andy Armstrong via RT wrote: Show quoted text
> This is what the env command does, right? I'm going to reject this > ticket on the assumption that env does indeed solve your problem. Please > re-open it if that's not the case.
The OP wanted something cross-platform, which things like 'env' and 'export' are not. -- You know what the chain of command is? It's the chain I go get and beat you with 'til you understand who's in ruttin' command here. -- Jayne Cobb, "Firefly"
Subject: Re: [rt.cpan.org #50215] a new option --env
Date: Sun, 17 Jan 2010 23:18:51 +0000
To: bug-Test-Harness [...] rt.cpan.org
From: Andy Armstrong <andy [...] hexten.net>
Download (untitled) / with headers
text/plain 425b
On 17 Jan 2010, at 21:45, Michael G Schwern via RT wrote: Show quoted text
> Andy Armstrong via RT wrote:
>> This is what the env command does, right? I'm going to reject this >> ticket on the assumption that env does indeed solve your problem. Please >> re-open it if that's not the case.
> > The OP wanted something cross-platform, which things like 'env' and 'export' > are not.
Ah yes - I see that now. -- Andy Armstrong, Hexten


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.