diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-12-12 14:22:59 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-12 14:22:59 -0800 |
commit | 694a88a309c74ffeefa9a0db0396ee4c168a521c (patch) | |
tree | 79007f8bcf98505df2e4cf423ac7307535c1b2d1 /t/lib-httpd.sh | |
parent | Merge branch 'cn/thin-push-capability' (diff) | |
parent | remove #!interpreter line from shell libraries (diff) | |
download | tgif-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/lib-httpd.sh')
-rw-r--r-- | t/lib-httpd.sh | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh index ad8f1ef71e..c4707843c4 100644 --- a/t/lib-httpd.sh +++ b/t/lib-httpd.sh @@ -1,4 +1,31 @@ -#!/bin/sh +# Shell library to run an HTTP server for use in tests. +# Ends the test early if httpd tests should not be run, +# for example because the user has not enabled them. +# +# Usage: +# +# . ./test-lib.sh +# . "$TEST_DIRECTORY"/lib-httpd.sh +# start_httpd +# +# test_expect_success '...' ' +# ... +# ' +# +# test_expect_success ... +# +# stop_httpd +# test_done +# +# Can be configured using the following variables. +# +# GIT_TEST_HTTPD enable HTTPD tests +# LIB_HTTPD_PATH web server path +# LIB_HTTPD_MODULE_PATH web server modules path +# LIB_HTTPD_PORT listening port +# LIB_HTTPD_DAV enable DAV +# LIB_HTTPD_SVN enable SVN +# LIB_HTTPD_SSL enable SSL # # Copyright (c) 2008 Clemens Buchacher <drizzd@aon.at> # |