A test module should depend on 'test-framework-sh' if and only if the
test uses tests/init.sh.


2024-05-17  Bruno Haible  <br...@clisp.org>

        tests: Fix dependencies to test-framework-sh.
        * modules/argp-tests (Depends-on): Add test-framework-sh.
        * modules/argp-version-etc-tests (Depends-on): Likewise.
        * modules/dfa-tests (Depends-on): Likewise.
        * modules/error-tests (Depends-on): Likewise.
        * modules/readtokens-tests (Depends-on): Likewise.
        * modules/string-desc-tests (Depends-on): Likewise.
        * modules/verror-tests (Depends-on): Likewise.
        * modules/xstdopen-tests (Depends-on): Remove test-framework-sh.

diff --git a/modules/argp-tests b/modules/argp-tests
index fada6827f0..ea2d29aef4 100644
--- a/modules/argp-tests
+++ b/modules/argp-tests
@@ -4,6 +4,7 @@ tests/test-argp-2.sh
 tests/macros.h
 
 Depends-on:
+test-framework-sh
 
 Makefile.am:
 TESTS += test-argp test-argp-2.sh
diff --git a/modules/argp-version-etc-tests b/modules/argp-version-etc-tests
index df101821b4..cbb15d74bf 100644
--- a/modules/argp-version-etc-tests
+++ b/modules/argp-version-etc-tests
@@ -5,6 +5,7 @@ tests/test-argp-version-etc-1.sh
 Depends-on:
 argp
 version-etc-fsf
+test-framework-sh
 
 Makefile.am:
 TESTS += test-argp-version-etc test-argp-version-etc-1.sh
diff --git a/modules/dfa-tests b/modules/dfa-tests
index b7c7c11d27..53049cee4c 100644
--- a/modules/dfa-tests
+++ b/modules/dfa-tests
@@ -11,6 +11,7 @@ stdlib
 string
 unistd
 regex
+test-framework-sh
 
 configure.ac:
 
diff --git a/modules/error-tests b/modules/error-tests
index 58369089e3..d543e917bf 100644
--- a/modules/error-tests
+++ b/modules/error-tests
@@ -4,6 +4,7 @@ tests/test-error.c
 tests/macros.h
 
 Depends-on:
+test-framework-sh
 
 configure.ac:
 
diff --git a/modules/readtokens-tests b/modules/readtokens-tests
index 189cde252c..5dc8973b9f 100644
--- a/modules/readtokens-tests
+++ b/modules/readtokens-tests
@@ -5,6 +5,7 @@ tests/test-readtokens.sh
 
 Depends-on:
 closeout
+test-framework-sh
 
 configure.ac:
 
diff --git a/modules/string-desc-tests b/modules/string-desc-tests
index 687d4e2af2..226378c65f 100644
--- a/modules/string-desc-tests
+++ b/modules/string-desc-tests
@@ -5,6 +5,7 @@ tests/macros.h
 
 Depends-on:
 close
+test-framework-sh
 
 configure.ac:
 
diff --git a/modules/verror-tests b/modules/verror-tests
index bd76d768c1..bdcf060219 100644
--- a/modules/verror-tests
+++ b/modules/verror-tests
@@ -4,6 +4,7 @@ tests/test-verror.c
 tests/macros.h
 
 Depends-on:
+test-framework-sh
 
 configure.ac:
 
diff --git a/modules/xstdopen-tests b/modules/xstdopen-tests
index 0810f4afc8..e1de5d2e8d 100644
--- a/modules/xstdopen-tests
+++ b/modules/xstdopen-tests
@@ -4,7 +4,6 @@ tests/test-xstdopen.sh
 tests/macros.h
 
 Depends-on:
-test-framework-sh
 
 Makefile.am:
 TESTS += test-xstdopen.sh




Reply via email to