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

[PATCH 2/2] t/lib-http.sh: Enable httpd tests by default.

From
TCTarmigan Casebolt <tarmigan+git@gmail.com>
Date
Nov 20, 2009, 01:22 UTC
Message-ID
<1258680123-28684-2-git-send-email-tarmigan+git@gmail.com>
In-Reply-To
<1258680123-28684-1-git-send-email-tarmigan+git@gmail.com>

With smart http, git over http is likely to become much more common. To increase testing of smart http, enable the http tests by default.

If we cannot detect httpd, we still skip these tests, so it should not cause problems on platforms where we cannot run the tests.

Signed-off-by: Tarmigan Casebolt <tarmigan+git@gmail.com>
---
 t/lib-httpd.sh |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh
index 6b86353..db537b4 100644
--- a/t/lib-httpd.sh
+++ b/t/lib-httpd.sh
@@ -3,11 +3,12 @@
 # Copyright (c) 2008 Clemens Buchacher <drizzd@aon.at>
 #
 
-if test -z "$GIT_TEST_HTTPD"
+if test -n "$NO_GIT_TEST_HTTPD"
 then
-	say "skipping test, network testing disabled by default"
-	say "(define GIT_TEST_HTTPD to enable)"
+	say "Skipping http tests because NO_GIT_TEST_HTTPD is defined"
 	test_done
+else
+	say "Define NO_GIT_TEST_HTTPD to disable http testing"
 fi
 
 HTTPD_PARA=""
-- 
1.6.5.52.g35487
Previous: Tarmigan CaseboltNext: Junio C Hamano
Message 2 of 10 in “t/lib-http.sh: Restructure finding of default httpd location”
  1. 1/2 t/lib-http.sh: Restructure finding of default httpd locationTarmigan Casebolt, Nov 20, 2009
  2. 2/2 t/lib-http.sh: Enable httpd tests by default.Tarmigan Casebolt, Nov 20, 2009
  3. Junio C HamanoNov 20, 2009
  4. TarmiganNov 20, 2009
  5. Clemens BuchacherNov 20, 2009
  6. Junio C HamanoNov 20, 2009
  7. Junio C HamanoNov 20, 2009
  8. Jay SoffianNov 20, 2009
  9. TarmiganNov 20, 2009
  10. t/lib-http.sh: Restructure finding of default httpd locationTarmigan Casebolt, Jan 2, 2010

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.