automake-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] {testsuite-work} tests: remove 'test_prefer_config_shell' fr


From: Stefano Lattarini
Subject: Re: [PATCH] {testsuite-work} tests: remove 'test_prefer_config_shell' from the environment
Date: Thu, 16 Jun 2011 10:19:29 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

On Monday 13 June 2011, Stefano Lattarini wrote:
> On Monday 06 June 2011, Stefano Lattarini wrote:
> > With the previous commit, the user could prefer the use of $SHELL
> > over /bin/sh in some tests checking the Automake-provided shell
> > scripts by manually exporting `test_prefer_config_shell' to "yes"
> > in the environment.  With this commit, we ensure that such tests
> > *always* and *transparently* run using both $SHELL and /bin/sh
> > to execute the checked scripts.  The `test_prefer_config_shell'
> > variable becomes an internal detail, and is no more meant to be
> > manually defined or overridden.
> > 
> > * tests/defs-static.in: Check that `test_prefer_config_shell' is
> > not exported in the environment.  Error out if this is the case.
> >
> [HUGE SNIP]
> 
> > diff --git a/tests/defs-static.in b/tests/defs-static.in
> > index 53d9f93..17ed284 100644
> > --- a/tests/defs-static.in
> > +++ b/tests/defs-static.in
> > @@ -70,7 +70,9 @@ fi
> >  # Check that the environment is properly sanitized.
> >  # Having variables exported to the empty string is OK, since our code
> >  # treats such variables as if they were unset.
> > -for var in me required parallel_tests original_AUTOMAKE original_ACLOCAL; 
> > do
> > +for var in me required parallel_tests test_prefer_config_shell \
> > +           original_AUTOMAKE original_ACLOCAL
> > +do
> >    if eval "test x\"\$$var\" != x" && env | grep "^$var=" >/dev/null; then
> >      echo "$argv0: variable \`$var' is set in the environment:" \
> >           "this is unsafe" >&2
> > 
> Hmpf, this should have been complemented by a proper addition to
> AM_TEST_ENVIRONMENT in tests/Makefile.am.  I will sooninsh apply
> the attached follow-up patch if there is no objection.
> 
> Regards,
>   Stefano
> 
Pushed now.

Regards,
  Stefano



reply via email to

[Prev in Thread] Current Thread [Next in Thread]