diff --git a/cfg.mk b/cfg.mk index 7b14c07f1..a4f36ff5f 100644 --- a/cfg.mk +++ b/cfg.mk @@ -115,6 +115,14 @@ sc_tests_list_consistency: | $(EGREP) "$$test_extensions_rx\$$"; \ } | sort | uniq -u | grep . && exit 1; : +# Ensure that all version-controlled test scripts are executable. +sc_tests_executable: + @test_extensions_rx=`echo $(TEST_EXTENSIONS) \ + | sed -e "s/ / -o -name */g" -e "s/^/-name */"`; \ + find tests/ \( $$test_extensions_rx \) \! -perm -111 -print \ + | sed -e "s/^/$(ME): Please make test executable: /" | grep . \ + && exit 1; : + # Create a list of regular expressions matching the names # of files included from system.h. Exclude a couple. .re-list: diff --git a/tests/df/df-output.sh b/tests/df/df-output.sh old mode 100644 new mode 100755 diff --git a/tests/du/threshold.sh b/tests/du/threshold.sh old mode 100644 new mode 100755 diff --git a/tests/factor/run.sh b/tests/factor/run.sh old mode 100644 new mode 100755 diff --git a/tests/init.sh b/tests/init.sh old mode 100644 new mode 100755 diff --git a/tests/misc/csplit-suppress-matched.pl b/tests/misc/csplit-suppress-matched.pl old mode 100644 new mode 100755 diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl old mode 100644 new mode 100755 diff --git a/tests/tail-2/retry.sh b/tests/tail-2/retry.sh old mode 100644 new mode 100755