[Top][All Lists]
[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
- Re: [PATCH] {testsuite-work} tests: new test dedicated to `--add-missing' and `--copy' (was: Re: [PATCH 2/3] {testsuite-work} tests: can use also $SHELL to check shell scripts from `lib/'), (continued)
[PATCH 3/3] {testsuite-work} tests: `lib/' shell scripts transparently tested also with $SHELL, Stefano Lattarini, 2011/06/06
Re: [PATCH 3/3] {testsuite-work} tests: `lib/' shell scripts transparently tested also with $SHELL, Stefano Lattarini, 2011/06/07
[PATCH] {testsuite-work} tests: remove 'test_prefer_config_shell' from the environment (was: Re: [PATCH 3/3] {testsuite-work} tests: `lib/' shell scripts transparently tested also with $SHELL), Stefano Lattarini, 2011/06/13
Re: [PATCH 0/3] {testsuite-work} Test automake-provided shell scripts (those in `lib/') also with $SHELL, not only with /bin/sh, Stefano Lattarini, 2011/06/08