Skip to content

Commit

Permalink
Merge branch 'jk/skip-http-tests-under-no-curl' into maint
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Jun 5, 2015
2 parents e41f8d9 + 309a9e3 commit c538004
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 35 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2102,6 +2102,7 @@ GIT-BUILD-OPTIONS: FORCE
@echo PYTHON_PATH=\''$(subst ','\'',$(PYTHON_PATH_SQ))'\' >>$@
@echo TAR=\''$(subst ','\'',$(subst ','\'',$(TAR)))'\' >>$@
@echo NO_CURL=\''$(subst ','\'',$(subst ','\'',$(NO_CURL)))'\' >>$@
@echo NO_EXPAT=\''$(subst ','\'',$(subst ','\'',$(NO_EXPAT)))'\' >>$@
@echo USE_LIBPCRE=\''$(subst ','\'',$(subst ','\'',$(USE_LIBPCRE)))'\' >>$@
@echo NO_PERL=\''$(subst ','\'',$(subst ','\'',$(NO_PERL)))'\' >>$@
@echo NO_PYTHON=\''$(subst ','\'',$(subst ','\'',$(NO_PYTHON)))'\' >>$@
Expand Down
12 changes: 12 additions & 0 deletions t/lib-httpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
# Copyright (c) 2008 Clemens Buchacher <drizzd@aon.at>
#

if test -n "$NO_CURL"
then
skip_all='skipping test, git built without http support'
test_done
fi

if test -n "$NO_EXPAT" && test -n "$LIB_HTTPD_DAV"
then
skip_all='skipping test, git built without expat support'
test_done
fi

test_tristate GIT_TEST_HTTPD
if test "$GIT_TEST_HTTPD" = false
then
Expand Down
6 changes: 0 additions & 6 deletions t/t5539-fetch-http-shallow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
test_description='fetch/clone from a shallow clone over http'

. ./test-lib.sh

if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
test_done
fi

. "$TEST_DIRECTORY"/lib-httpd.sh
start_httpd

Expand Down
5 changes: 0 additions & 5 deletions t/t5541-http-push-smart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
test_description='test smart pushing over http via http-backend'
. ./test-lib.sh

if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
test_done
fi

ROOT_PATH="$PWD"
. "$TEST_DIRECTORY"/lib-gpg.sh
. "$TEST_DIRECTORY"/lib-httpd.sh
Expand Down
6 changes: 0 additions & 6 deletions t/t5542-push-http-shallow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
test_description='push from/to a shallow clone over http'

. ./test-lib.sh

if test -n "$NO_CURL"; then
say 'skipping test, git built without http support'
test_done
fi

. "$TEST_DIRECTORY"/lib-httpd.sh
start_httpd

Expand Down
6 changes: 0 additions & 6 deletions t/t5550-http-fetch-dumb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

test_description='test dumb fetching over http via static file'
. ./test-lib.sh

if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
test_done
fi

. "$TEST_DIRECTORY"/lib-httpd.sh
start_httpd

Expand Down
6 changes: 0 additions & 6 deletions t/t5551-http-fetch-smart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

test_description='test smart fetching over http via http-backend'
. ./test-lib.sh

if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
test_done
fi

. "$TEST_DIRECTORY"/lib-httpd.sh
start_httpd

Expand Down
6 changes: 0 additions & 6 deletions t/t5561-http-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

test_description='test git-http-backend'
. ./test-lib.sh

if test -n "$NO_CURL"; then
skip_all='skipping test, git built without http support'
test_done
fi

. "$TEST_DIRECTORY"/lib-httpd.sh
start_httpd

Expand Down

0 comments on commit c538004

Please sign in to comment.