Skip to content

Commit 8087a62

Browse files
committed
Merge branch 'jk/skip-http-tests-under-no-curl'
Test clean-up. * jk/skip-http-tests-under-no-curl: tests: skip dav http-push tests under NO_EXPAT=NoThanks t/lib-httpd.sh: skip tests if NO_CURL is defined
2 parents 6263f58 + 309a9e3 commit 8087a62

8 files changed

+13
-35
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,7 @@ GIT-BUILD-OPTIONS: FORCE
21082108
@echo PYTHON_PATH=\''$(subst ','\'',$(PYTHON_PATH_SQ))'\' >>$@
21092109
@echo TAR=\''$(subst ','\'',$(subst ','\'',$(TAR)))'\' >>$@
21102110
@echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@
2111+
@echo NO_EXPAT=\''$(subst ','\'',$(subst ','\'',$(NO_EXPAT)))'\' >>$@
21112112
@echo USE_LIBPCRE=\''$(subst ','\'',$(subst ','\'',$(USE_LIBPCRE)))'\' >>$@
21122113
@echo NO_PERL=\''$(subst ','\'',$(subst ','\'',$(NO_PERL)))'\' >>$@
21132114
@echo NO_PYTHON=\''$(subst ','\'',$(subst ','\'',$(NO_PYTHON)))'\' >>$@

t/lib-httpd.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
# Copyright (c) 2008 Clemens Buchacher <[email protected]>
3131
#
3232

33+
if test -n "$NO_CURL"
34+
then
35+
skip_all='skipping test, git built without http support'
36+
test_done
37+
fi
38+
39+
if test -n "$NO_EXPAT" && test -n "$LIB_HTTPD_DAV"
40+
then
41+
skip_all='skipping test, git built without expat support'
42+
test_done
43+
fi
44+
3345
test_tristate GIT_TEST_HTTPD
3446
if test "$GIT_TEST_HTTPD" = false
3547
then

t/t5539-fetch-http-shallow.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
test_description='fetch/clone from a shallow clone over http'
44

55
. ./test-lib.sh
6-
7-
if test -n "$NO_CURL"; then
8-
skip_all='skipping test, git built without http support'
9-
test_done
10-
fi
11-
126
. "$TEST_DIRECTORY"/lib-httpd.sh
137
start_httpd
148

t/t5541-http-push-smart.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66
test_description='test smart pushing over http via http-backend'
77
. ./test-lib.sh
88

9-
if test -n "$NO_CURL"; then
10-
skip_all='skipping test, git built without http support'
11-
test_done
12-
fi
13-
149
ROOT_PATH="$PWD"
1510
. "$TEST_DIRECTORY"/lib-gpg.sh
1611
. "$TEST_DIRECTORY"/lib-httpd.sh

t/t5542-push-http-shallow.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
test_description='push from/to a shallow clone over http'
44

55
. ./test-lib.sh
6-
7-
if test -n "$NO_CURL"; then
8-
say 'skipping test, git built without http support'
9-
test_done
10-
fi
11-
126
. "$TEST_DIRECTORY"/lib-httpd.sh
137
start_httpd
148

t/t5550-http-fetch-dumb.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
test_description='test dumb fetching over http via static file'
44
. ./test-lib.sh
5-
6-
if test -n "$NO_CURL"; then
7-
skip_all='skipping test, git built without http support'
8-
test_done
9-
fi
10-
115
. "$TEST_DIRECTORY"/lib-httpd.sh
126
start_httpd
137

t/t5551-http-fetch-smart.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
test_description='test smart fetching over http via http-backend'
44
. ./test-lib.sh
5-
6-
if test -n "$NO_CURL"; then
7-
skip_all='skipping test, git built without http support'
8-
test_done
9-
fi
10-
115
. "$TEST_DIRECTORY"/lib-httpd.sh
126
start_httpd
137

t/t5561-http-backend.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22

33
test_description='test git-http-backend'
44
. ./test-lib.sh
5-
6-
if test -n "$NO_CURL"; then
7-
skip_all='skipping test, git built without http support'
8-
test_done
9-
fi
10-
115
. "$TEST_DIRECTORY"/lib-httpd.sh
126
start_httpd
137

0 commit comments

Comments
 (0)