tests: skip dav http-push tests under NO_EXPAT=NoThanks
authorJunio C Hamano <gitster@pobox.com>
Thu, 7 May 2015 16:06:14 +0000 (09:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 May 2015 16:48:43 +0000 (09:48 -0700)
When built with NO_EXPAT=NoThanks, we will not have a working http-push
over webdav.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/lib-httpd.sh
index e0caec3f679089b6643e129fbdb2423dfd8f6d94..b9ebbf619e8deddeff72ad4edc8cfe8abddbf733 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2188,6 +2188,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)))'\' >>$@
index 872a252d580a8c3a7001f551d08c028f35dcf410..d823664c57019dd26a77493eaf62486f85091070 100644 (file)
@@ -36,6 +36,12 @@ then
        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