aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-12 14:22:59 -0800
committerJunio C Hamano <gitster@pobox.com>2013-12-12 14:22:59 -0800
commit694a88a309c74ffeefa9a0db0396ee4c168a521c (patch)
tree79007f8bcf98505df2e4cf423ac7307535c1b2d1 /t/test-lib.sh
parent72911f8c18d06f2ad340061f9a76556b21acf822 (diff)
parent11d62145b904b81013d1ad558d68a74e22e81a91 (diff)
downloadgit-694a88a309c74ffeefa9a0db0396ee4c168a521c.tar.gz
git-694a88a309c74ffeefa9a0db0396ee4c168a521c.tar.xz
Merge branch 'jn/scripts-updates'
* jn/scripts-updates: remove #!interpreter line from shell libraries test: replace shebangs with descriptions in shell libraries test: make FILEMODE a lazy prereq contrib: remove git-p4import mark contributed hooks executable mark perl test scripts executable mark Windows build scripts executable
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index d303e6c94..1cf78d5b1 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+# Test framework for git. See t/README for usage.
#
# Copyright (c) 2005 Junio C Hamano
#
@@ -577,11 +577,9 @@ then
make_valgrind_symlink () {
# handle only executables, unless they are shell libraries that
- # need to be in the exec-path. We will just use "#!" as a
- # guess for a shell-script, since we have no idea what the user
- # may have configured as the shell path.
+ # need to be in the exec-path.
test -x "$1" ||
- test "#!" = "$(head -c 2 <"$1")" ||
+ test "# " = "$(head -c 2 <"$1")" ||
return;
base=$(basename "$1")
@@ -834,6 +832,10 @@ test_lazy_prereq SYMLINKS '
ln -s x y && test -h y
'
+test_lazy_prereq FILEMODE '
+ test "$(git config --bool core.filemode)" = true
+'
+
test_lazy_prereq CASE_INSENSITIVE_FS '
echo good >CamelCase &&
echo bad >camelcase &&