mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: make some shell and perl scripts executable in 'tests/'
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.
This commit is contained in:
1 parent
c490a6ff2b
commit
0c452fe97a
8 files changed
+8
No files matched your search
@@ -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:
|
||||
|
||||
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Regular → Executable
File mode changed.
Reference in new issue
Block a user