Some newer test scripts - partially ones from me - are not executable.
It does not seem to be a problem, but for consistency and to avoid
future problems on unusual platforms or shells change the permissions
by adding the executable bit.
* cfg.mk (sc_tests_executable): Add new syntax-check rule to ensure
that all test scripts are executable.
* tests/df/df-output.sh: Change file mode from 644 to 755.
* tests/du/threshold.sh: Likewise.
* tests/factor/run.sh: Likewise.
* tests/init.sh: Likewise.
* tests/misc/csplit-suppress-matched.pl: Likewise.
* tests/misc/numfmt.pl: Likewise.
* tests/tail-2/retry.sh: Likewise.
| $(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: