summaryrefslogtreecommitdiff
path: root/t/lib-git-daemon.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/lib-git-daemon.sh
parent72911f8c18d06f2ad340061f9a76556b21acf822 (diff)
parent11d62145b904b81013d1ad558d68a74e22e81a91 (diff)
downloadgit-694a88a309c74ffeefa9a0db0396ee4c168a521c.tar.gz
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/lib-git-daemon.sh')
-rw-r--r--t/lib-git-daemon.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/t/lib-git-daemon.sh b/t/lib-git-daemon.sh
index 87f0ad8f41..394b06b32f 100644
--- a/t/lib-git-daemon.sh
+++ b/t/lib-git-daemon.sh
@@ -1,4 +1,20 @@
-#!/bin/sh
+# Shell library to run git-daemon in tests. Ends the test early if
+# GIT_TEST_GIT_DAEMON is not set.
+#
+# Usage:
+#
+# . ./test-lib.sh
+# . "$TEST_DIRECTORY"/lib-git-daemon.sh
+# start_git_daemon
+#
+# test_expect_success '...' '
+# ...
+# '
+#
+# test_expect_success ...
+#
+# stop_git_daemon
+# test_done
if test -z "$GIT_TEST_GIT_DAEMON"
then