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

Re: Use mongoose to test smart-http unconditionally?

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 4, 2013, 20:09 UTC
Message-ID
<xmqqa9ggl6oq.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACsJy8BHnTHRugJoTDGs7h=dF1qQUWyPXYxCU8YsDU57s+5gyg@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 5 quoted lines
> I was thinking of an alternative to apache for testing smart-http
> so that most of http tests could always run.  Mongoose [1] looks
> like a good candidate to bundle with git. Just one pair of source
> files, mongoose.[ch], a mainloop wrapper and we have an http
> server.
Hmmmm.  How would the high-level integration look like?
 - we add contrib/mongoose/*;
 - in t/Makefile, we:
   . set GIT_TEST_HTTPD to yes, unless it is already set to another value;
   . set LIB_HTTPD_PATH to $GIT_BUILD_DIR/contrib/mongoose/mongoose,
     unless it is already set to another value;
   . if LIB_HTTPD_PATH is set to our mongoose and if it hasn't been
     built, go ../contrib/mongoose and build it.
 - we teach lib-httpd.sh to trigger the DEFAULT_HTTPD_PATH
   computation when LIB_HTTPD_PATH is set to 'system-apache', so
   that people can test with their installed apache if they choose
   to; and
 - we teach lib-httpd.sh to write out an appropriate configuration
   for the mongoose server.

That would force people to run http tests by turning it from an opt-in option to an opt-out option.

Or were you thinking about embedding mongoose in the git executable?
Previous: Jeff KingNext: Jeff King
Message 7 of 10 in “Use mongoose to test smart-http unconditionally?”
  1. Duy NguyenDec 4, 2013
  2. Shawn PearceDec 4, 2013
  3. Jeff KingDec 4, 2013
  4. Jonathan NiederDec 4, 2013
  5. Duy NguyenDec 5, 2013
  6. Jeff KingDec 5, 2013
  7. Junio C HamanoDec 4, 2013
  8. Jeff KingDec 4, 2013
  9. Junio C HamanoDec 4, 2013
  10. Jeff KingDec 5, 2013

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.