A few days ago I wrote:
>       * modules/test-framework-sh (Makefile.am): Augment TESTS_ENVIRONMENT
>       here.
>       * modules/nlcanon-tests (Makefile.am): Don't augment TESTS_ENVIRONMENT
>       here.

But this does not work: In a testdir of all modules, top_builddir does not get
defined in the TESTS_ENVIRONMENT of gltests/, only of the one in gllib/.

That's because 'test-framework-sh' is not recognized as a tests module.

There are three ways to fix it:
  - Rename test-framework-sh to <something>-tests. But then, what about
    the existing module test-framework-sh-tests?
  - Modify gnulib-tool to recognize 'test-framework-sh' as a tests module.
    But then again, what about test-framework-sh-tests?
  - Change the 'Applicability'.

This patch does it:


2025-08-10  Bruno Haible  <[email protected]>

        test-framework-sh: Ensure TESTS_ENVIRONMENT gets augmented in gltests/.
        * modules/test-framework-sh (Applicability): New section.

diff --git a/modules/test-framework-sh b/modules/test-framework-sh
index 2a10d461ff..34bc66f40d 100644
--- a/modules/test-framework-sh
+++ b/modules/test-framework-sh
@@ -1,6 +1,9 @@
 Description:
 Bourne-shell-based testing framework
 
+Applicability:
+all
+
 Files:
 tests/init.sh
 




Reply via email to