coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH 4/7] tests: avoid use of '-T' in shebang line to enable perl


From: Stefano Lattarini
Subject: Re: [PATCH 4/7] tests: avoid use of '-T' in shebang line to enable perl taint mode
Date: Thu, 30 Aug 2012 16:42:31 +0200

On 08/30/2012 04:21 PM, Jim Meyering wrote:
> Stefano Lattarini wrote:
>> * tests/rm/fail-eperm: Rename ...
>> * tests/rm/fail-eperm.xpl: ... like this
>> * tests/Makefile.am (TESTS): Adjust.
>> (TEST_EXTENSIONS): New, list '.xpl'.
>> (XPL_TEST_LOGS): New, run a perl test in tainted mode.
>> * tests/shell-or-perl: Simplify this script: we no longer need to
>> parse the shebang line and adjust the flags in the perl invocation
>> accordingly.
>> ---
>>  tests/Makefile.am                       | 8 +++++++-
>>  tests/rm/{fail-eperm => fail-eperm.xpl} | 0
>>  tests/shell-or-perl                     | 9 ++-------
>>  3 files changed, 9 insertions(+), 8 deletions(-)
>>  rename tests/rm/{fail-eperm => fail-eperm.xpl} (100%)
> 
> Thanks for working on all of this.
> 
> This patch turns off -T (taint-checking) for all but one of the perl-based
> test scripts.
>
Which, unless I'm mistaken, is the same behaviour we had *before* the patch.
Or am I missing something.

> I think it is a valuable feature to leave enabled for as
> many tests as possible.  Do you have a good reason for turning it off?
> I.e., why not define PL_LOG_COMPILER to use -T?
>
This patch tries keep the behaviour of the perl test scripts as  unchaged
as possible, an I think this should not be changed.  If you believe running
most '*.pl' tests with '-T' would be better, that could be easily done in
a follow-up patch to be applied after this series, no?

Thanks,
  Stefano



reply via email to

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