{"thread":{"id":"29167","subject":"How to run http server tests?","startedAt":"2011-12-14T21:20:07Z","lastAt":"2011-12-14T22:02:38Z","messageCount":3,"participants":["Johannes Sixt","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"181186","messageId":"4EE91307.6080504@kdbg.org","threadId":"29167","inReplyTo":null,"subject":"How to run http server tests?","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2011-12-14T21:20:07Z","receivedAt":"2011-12-14T21:20:07Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"I have a hard time running tests that use lib-httpd.sh.\n\nI run the tests like this:\n\n  LIB_HTTPD_MODULE_PATH=/usr/lib64/apache2 GIT_TEST_HTTPD=Yes \\\n      sh -x t5541-http-push.sh -v -i\n\nand I have to apply this patch because I do not have mod_cgi on my\nsystem (OpenSuse 11.4):\n\ndiff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf\nindex 0a4cdfa..e5cb3f9 100644\n--- a/t/lib-httpd/apache.conf\n+++ b/t/lib-httpd/apache.conf\n@@ -13,4 +13,4 @@ ErrorLog error.log\n </IfModule>\n-<IfModule !mod_cgi.c>\n-       LoadModule cgi_module modules/mod_cgi.so\n+<IfModule !mod_scgi.c>\n+       LoadModule scgi_module modules/mod_scgi.so\n </IfModule>\n\n\nI see t5541-http-push.sh #2 fail with:\n\n++ cd '/home/jsixt/Src/git/git/t/trash directory.t5541-http-push'\n++ git clone http://127.0.0.1:5541/smart/test_repo.git/ test_repo_clone\nCloning into 'test_repo_clone'...\nfatal: http://127.0.0.1:5541/smart/test_repo.git/info/refs not found:\ndid you run git update-server-info on the server?\n\nt5551-http-fetch.sh fails at #3 here:\n\n++ GIT_CURL_VERBOSE=1\n++ git clone --quiet http://127.0.0.1:5551/smart/repo.git clone\n+ eval_ret=128\n\nIn this case, 'git clone' output is redirected to file 'err'; it has the\nsame error as above.\n\nt5561-http-backend.sh fails at #3 like so:\n\n+++ diff -u exp act\n--- exp 2011-12-14 21:14:49.000000000 +0000\n+++ act 2011-12-14 21:14:49.000000000 +0000\n@@ -1 +1 @@\n-HTTP/1.1 200 OK\n+HTTP/1.1 404 Not Found\n\nCan someone help?\n\nThanks,\n-- Hannes\n"},{"id":"181187","messageId":"20111214213952.GA11519@sigill.intra.peff.net","threadId":"29167","inReplyTo":"4EE91307.6080504@kdbg.org","subject":"Re: How to run http server tests?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2011-12-14T21:39:52Z","receivedAt":"2011-12-14T21:39:52Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Dec 14, 2011 at 10:20:07PM +0100, Johannes Sixt wrote:\n\n> I have a hard time running tests that use lib-httpd.sh.\n> \n> I run the tests like this:\n> \n>   LIB_HTTPD_MODULE_PATH=/usr/lib64/apache2 GIT_TEST_HTTPD=Yes \\\n>       sh -x t5541-http-push.sh -v -i\n> \n> and I have to apply this patch because I do not have mod_cgi on my\n> system (OpenSuse 11.4):\n> \n> diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf\n> index 0a4cdfa..e5cb3f9 100644\n> --- a/t/lib-httpd/apache.conf\n> +++ b/t/lib-httpd/apache.conf\n> @@ -13,4 +13,4 @@ ErrorLog error.log\n>  </IfModule>\n> -<IfModule !mod_cgi.c>\n> -       LoadModule cgi_module modules/mod_cgi.so\n> +<IfModule !mod_scgi.c>\n> +       LoadModule scgi_module modules/mod_scgi.so\n>  </IfModule>\n\nHmm. I know nothing about scgi, but a quick google indicates that it is\na separate protocol from CGI and is more like FastCGI (i.e., it wants to\nspawn a long-running CGI server and contact it over a separate\nprotocol).\n\nSo I suspect you are not able to run http-backend, and thus you have no\nsmart-http support in your setup.\n\n> I see t5541-http-push.sh #2 fail with:\n> \n> ++ cd '/home/jsixt/Src/git/git/t/trash directory.t5541-http-push'\n> ++ git clone http://127.0.0.1:5541/smart/test_repo.git/ test_repo_clone\n> Cloning into 'test_repo_clone'...\n> fatal: http://127.0.0.1:5541/smart/test_repo.git/info/refs not found:\n> did you run git update-server-info on the server?\n\nThat's would I would expect if you have no smart-http support. The git\nclient will fall back to trying dumb http, but that should fail (because\nwe haven't run update-server-info).\n\nThe other errors you see probably stem from the same issue.\n\n-Peff\n"},{"id":"181189","messageId":"4EE91CFE.4070807@kdbg.org","threadId":"29167","inReplyTo":"20111214213952.GA11519@sigill.intra.peff.net","subject":"Re: How to run http server tests?","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2011-12-14T22:02:38Z","receivedAt":"2011-12-14T22:02:38Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 14.12.2011 22:39, schrieb Jeff King:\n> On Wed, Dec 14, 2011 at 10:20:07PM +0100, Johannes Sixt wrote:\n>> diff --git a/t/lib-httpd/apache.conf b/t/lib-httpd/apache.conf\n>> index 0a4cdfa..e5cb3f9 100644\n>> --- a/t/lib-httpd/apache.conf\n>> +++ b/t/lib-httpd/apache.conf\n>> @@ -13,4 +13,4 @@ ErrorLog error.log\n>>  </IfModule>\n>> -<IfModule !mod_cgi.c>\n>> -       LoadModule cgi_module modules/mod_cgi.so\n>> +<IfModule !mod_scgi.c>\n>> +       LoadModule scgi_module modules/mod_scgi.so\n>>  </IfModule>\n> \n> Hmm. I know nothing about scgi, but a quick google indicates that it is\n> a separate protocol from CGI and is more like FastCGI (i.e., it wants to\n> spawn a long-running CGI server and contact it over a separate\n> protocol).\n> \n> So I suspect you are not able to run http-backend, and thus you have no\n> smart-http support in your setup.\n\nThanks, that put me on the right track. I have to use\n\n  LIB_HTTPD_MODULE_PATH=/usr/lib64/apache2-prefork\n\n-- Hannes\n"}]}