Subject: | a new option --env |
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)