[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: detecting autopkgtest

On 2013-09-16 10:38, Enrico Tassi wrote:
> Hello, is checking for the environment variable ADTTMP the recommended
> way to test if a test is being run by adt-run?  It seems to work, but
> I'd like to know if there is a better way or not.
> I've many packages with a decent "test" target already, run at build
> time.  In case this target is run by adt-run I want it to behave in
> a slightly different way.  For exmample I don't want to set env
> variables so that non system-wide installed .so files are found,
> something really needed when running the tests at build time.
> Cheers


Personally, I just added a small sh script to set a few ENV variables
then called the upstream test target (see [1]).



Reply to: