summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2013-07-22 01:07:52 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2013-07-22 01:07:52 +0200
commit0c452fe97a395a1ecc2cacce3609ea6be366ac8e (patch)
tree2ef4978036417946250dc0bfb66bae6e5e69d3bb
parentc490a6ff2b7336121428c908de1ad4ceb87f6199 (diff)
downloadcoreutils-0c452fe97a395a1ecc2cacce3609ea6be366ac8e.tar.xz
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.
-rw-r--r--cfg.mk8
-rwxr-xr-x[-rw-r--r--]tests/df/df-output.sh0
-rwxr-xr-x[-rw-r--r--]tests/du/threshold.sh0
-rwxr-xr-x[-rw-r--r--]tests/factor/run.sh0
-rwxr-xr-x[-rw-r--r--]tests/init.sh0
-rwxr-xr-x[-rw-r--r--]tests/misc/csplit-suppress-matched.pl0
-rwxr-xr-x[-rw-r--r--]tests/misc/numfmt.pl0
-rwxr-xr-x[-rw-r--r--]tests/tail-2/retry.sh0
8 files changed, 8 insertions, 0 deletions
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
index a10f2706b..a10f2706b 100644..100755
--- a/tests/df/df-output.sh
+++ b/tests/df/df-output.sh
diff --git a/tests/du/threshold.sh b/tests/du/threshold.sh
index ee5217dbc..ee5217dbc 100644..100755
--- a/tests/du/threshold.sh
+++ b/tests/du/threshold.sh
diff --git a/tests/factor/run.sh b/tests/factor/run.sh
index dfe116484..dfe116484 100644..100755
--- a/tests/factor/run.sh
+++ b/tests/factor/run.sh
diff --git a/tests/init.sh b/tests/init.sh
index bd2048e22..bd2048e22 100644..100755
--- a/tests/init.sh
+++ b/tests/init.sh
diff --git a/tests/misc/csplit-suppress-matched.pl b/tests/misc/csplit-suppress-matched.pl
index bfced423b..bfced423b 100644..100755
--- a/tests/misc/csplit-suppress-matched.pl
+++ b/tests/misc/csplit-suppress-matched.pl
diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl
index 553f68b2b..553f68b2b 100644..100755
--- a/tests/misc/numfmt.pl
+++ b/tests/misc/numfmt.pl
diff --git a/tests/tail-2/retry.sh b/tests/tail-2/retry.sh
index 7ba773475..7ba773475 100644..100755
--- a/tests/tail-2/retry.sh
+++ b/tests/tail-2/retry.sh