coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: standardize perl usage in tests


From: Pádraig Brady
Subject: Re: [PATCH] tests: standardize perl usage in tests
Date: Sat, 30 Jun 2018 19:30:57 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

On 30/06/18 19:18, Jim Meyering wrote:
> On Sat, Jun 30, 2018 at 6:55 PM, Pádraig Brady <address@hidden> wrote:
>> * tests/cp/fiemap-FMR.sh: Ensure perl is parameterized to $PERL,
>> and ensure require_perl_ is used, so tests are skipped appropriately.
>> * tests/cp/preserve-gid.sh: Likewise.
>> * tests/du/long-from-unreadable.sh: Likewise.
>> * tests/misc/env-S-script.sh: Likewise.
>> * tests/misc/sort-benchmark-random.sh: Likewise.
>> * tests/rm/deep-2.sh: Likewise.
> ...
>> -perl -e '
>> +$PERL -e '
> ...
>> -perl -e '
>> +$PERL -e '
> ...
>> -: ${PERL=perl}
>>  $PERL \
>>      -e 'my $d = "x" x 200; foreach my $i (1..52)' \
>>      -e '  { mkdir ($d, 0700) && chdir $d or die "$!" }' \
> 
> Thanks for all the clean-up.
> That looks fine.
> 
> For a further (separate) diff, what do you think about also defining a
> "perl" function?
> Then, the majority of those invocations would have the more natural
> "perl -e ..." look.

That would be neater, though it's a little invasive
for this pending release I think, due to possible
shell variance with function scope etc.

thanks for the review,
Pádraig



reply via email to

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