[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running test suite with installed gawk
From: |
arnold |
Subject: |
Re: Running test suite with installed gawk |
Date: |
Tue, 27 Aug 2024 23:23:54 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
Thank you for this! I will review it.
I think it's a large enough change that you'll need to sign
paperwork assigning ownership of the changes to the FSF.
Are you willing to do that?
Thanks,
Arnold
"Guilherme Puida Moreira" <guilherme@puida.xyz> wrote:
> Hello,
>
> I'm trying to run the gawk test suite using the gawk installed in my
> system instead of the one in the build tree. This can be useful for
> distributions that want to test that the program is correctly installed,
> such as Debian's autopkgtests.
>
> I have attached a small patch that enables running the test suite
> without building gawk from source, with
>
> . /etc/profile.d/gawk.sh
> gawkpath_default
> make -C test check AWKPROG=$(which gawk) AWKLIBPATH=$AWKLIBPATH
>
> I had to change some hardcoded references to ../gawk and also modify
> some targets in tests/Makefile.am. I tried to follow what the
> 'generate_shell' (in tests/Gentest) function does, but I'm not sure if
> my changes are correct.
>
> Now there are still some tests failing: all tests that reference
> 'testext' fail because this library is not shipped; 'test/filefuncs.awk'
> fails because it expects 'api.o' to exist, and it doesn't if you don't
> build gawk from source, but maybe any other file can be used here
> instead.
>
> The attached patch was generated from the current stable branch, but it
> applies cleanly on master. Let me know if my changes are reasonable.
>
> Thanks,
> --
> Guilherme Puida