From: Jeff King <peff@peff.net>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: How to run http server tests?
Date: Wed, 14 Dec 2011 16:39:52 -0500 [thread overview]
Message-ID: <20111214213952.GA11519@sigill.intra.peff.net> (raw)
In-Reply-To: <4EE91307.6080504@kdbg.org>
On Wed, Dec 14, 2011 at 10:20:07PM +0100, Johannes Sixt wrote:
> I have a hard time running tests that use lib-httpd.sh.
>
> I run the tests like this:
>
> LIB_HTTPD_MODULE_PATH=/usr/lib64/apache2 GIT_TEST_HTTPD=Yes \
> sh -x t5541-http-push.sh -v -i
>
> and I have to apply this patch because I do not have mod_cgi on my
> system (OpenSuse 11.4):
>
> diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf
> index 0a4cdfa..e5cb3f9 100644
> --- a/t/lib-httpd/apache.conf
> +++ b/t/lib-httpd/apache.conf
> @@ -13,4 +13,4 @@ ErrorLog error.log
> </IfModule>
> -<IfModule !mod_cgi.c>
> - LoadModule cgi_module modules/mod_cgi.so
> +<IfModule !mod_scgi.c>
> + LoadModule scgi_module modules/mod_scgi.so
> </IfModule>
Hmm. I know nothing about scgi, but a quick google indicates that it is
a separate protocol from CGI and is more like FastCGI (i.e., it wants to
spawn a long-running CGI server and contact it over a separate
protocol).
So I suspect you are not able to run http-backend, and thus you have no
smart-http support in your setup.
> I see t5541-http-push.sh #2 fail with:
>
> ++ cd '/home/jsixt/Src/git/git/t/trash directory.t5541-http-push'
> ++ git clone http://127.0.0.1:5541/smart/test_repo.git/ test_repo_clone
> Cloning into 'test_repo_clone'...
> fatal: http://127.0.0.1:5541/smart/test_repo.git/info/refs not found:
> did you run git update-server-info on the server?
That's would I would expect if you have no smart-http support. The git
client will fall back to trying dumb http, but that should fail (because
we haven't run update-server-info).
The other errors you see probably stem from the same issue.
-Peff
next prev parent reply other threads:[~2011-12-14 21:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 21:20 How to run http server tests? Johannes Sixt
2011-12-14 21:39 ` Jeff King [this message]
2011-12-14 22:02 ` Johannes Sixt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111214213952.GA11519@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).