[LTP] [PATCH v3 3/4] openposix: Rebuild run.sh when the Makefile changes

Anders Roxell anders.roxell@linaro.org
Wed Nov 25 22:09:32 CET 2026


run.sh has no prerequisites, so it keeps an old list of tests after
tests are added or removed. Only make clean fixes it.

Make run.sh depend on the Makefile that lists the tests.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 testcases/open_posix_testsuite/scripts/generate-makefiles.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
index 1c12a456cc41..b9df91e14b62 100755
--- a/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
+++ b/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
@@ -200,7 +200,7 @@ EOF
 
 	if ! grep -q '^run.sh' "$makefile.3"; then
 		cat >> "$makefile.3" <<EOF
-run.sh:
+run.sh: Makefile
 	@echo '#!/bin/sh' > \$@
 	@echo "\$(top_srcdir)/bin/run-tests.sh \$(subdir) \$(INSTALL_TARGETS)" >> \$@
 	@chmod +x run.sh
-- 
2.53.0



More information about the ltp mailing list