coreutils
[Top][All Lists]
Advanced

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

Re: How to run Perl script separately


From: Pádraig Brady
Subject: Re: How to run Perl script separately
Date: Wed, 27 Jul 2022 11:40:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:98.0) Gecko/20100101 Thunderbird/98.0

On 26/07/2022 16:51, John Nguyen wrote:
Hello,

l'm a college student currently studying Linux.
l'm messing up with the Coreutils scripts that you guys made.
I figured how to run a BASH script separately using this syntax
`./tests/cp/cp-HL.sh` after l call this command `export built_programs=cp`
and use `echo $?` to check the exit code of the script.
Now, I'd like to do the same thing with Perl script. However, when I
execute it like l would with BASH script, like this `perl tests/misc/sort.pl`
it shows some errors about `subroutine` not found or something. I notice
the test Perl script depends on Coreutils.pm in the `/test` directory, but
I do not know how to modify the test Perl script or the command syntax.
I know to run any test separately, there is this command: `make check
TEST='/test/misc/sort.pl' SUBDIR=. VERBOSE=yes`
But that is not what I'm looking for.

I've been looking at the source code of Makefile, however, no progress.

Thanks in advance,
John Nguyen

Have a look at TESTSUITE_PERL_OPTIONS in tests/local.mk



reply via email to

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