aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorClemens Buchacher <drizzd@aon.at>2008-02-27 20:28:45 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-27 15:38:40 -0800
commitfaa4bc35a05ddb1822f3770cd8c51859e3b929ee (patch)
tree99a87c25116ab1de7cbdec6c7a17f93e8226fd4a /t/test-lib.sh
parent6eaf40608dfe0c23aa990a8c7d4a135df1af3cab (diff)
downloadgit-faa4bc35a05ddb1822f3770cd8c51859e3b929ee.tar.gz
git-faa4bc35a05ddb1822f3770cd8c51859e3b929ee.tar.xz
http-push: add regression tests
http-push tests require a web server with WebDAV support. This commit introduces a HTTPD test library, which can be configured using the following environment 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 Signed-off-by: Clemens Buchacher <drizzd@aon.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 83889c4f4..9d9cb8d5a 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -80,7 +80,7 @@ do
-q|--q|--qu|--qui|--quie|--quiet)
quiet=t; shift ;;
--no-color)
- color=; shift ;;
+ color=; shift ;;
--no-python)
# noop now...
shift ;;
@@ -142,7 +142,12 @@ test_count=0
test_fixed=0
test_broken=0
-trap 'echo >&5 "FATAL: Unexpected exit with code $?"; exit 1' exit
+die () {
+ echo >&5 "FATAL: Unexpected exit with code $?"
+ exit 1
+}
+
+trap 'die' exit
test_tick () {
if test -z "${test_tick+set}"