bug-gawk
[Top][All Lists]
Advanced

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

Running test suite with installed gawk


From: Guilherme Puida Moreira
Subject: Running test suite with installed gawk
Date: Tue, 27 Aug 2024 23:18:07 -0300

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

Attachment: 0001-Enable-running-test-with-gawk-built-in-another-locat.patch
Description: Text Data


reply via email to

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