git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] tests: skip dav http-push tests under NO_EXPAT=NoThanks

From
Junio C Hamano <gitster@pobox.com>
Date
May 7, 2015, 16:06 UTC
Message-ID
<xmqqzj5gqsnd.fsf_-_@gitster.dls.corp.google.com>
In-Reply-To
<xmqqvbg5tubj.fsf@gitster.dls.corp.google.com>

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       | 1 +
 t/lib-httpd.sh | 6 ++++++
 2 files changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index e0caec3..b9ebbf6 100644
--- 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)))'\' >>$@
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh
index 872a252..d823664 100644
--- a/t/lib-httpd.sh
+++ b/t/lib-httpd.sh
@@ -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
Previous: Junio C HamanoNext: Jeff King
Message 5 of 6 in “t5540: skip under NO_CURL=NoThanks”
  1. t5540: skip under NO_CURL=NoThanksJunio C Hamano, May 6, 2015
  2. Jeff KingMay 6, 2015
  3. Jeff KingMay 6, 2015
  4. Junio C HamanoMay 6, 2015
  5. Junio C HamanoMay 7, 2015
  6. Jeff KingMay 7, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.