* Re: t5560-http-backend-noserver.sh fails on FreeBSD 8.1-STABLE
2010-08-21 7:57 ` Tarmigan
@ 2010-08-21 8:06 ` Ævar Arnfjörð Bjarmason
2010-08-21 18:07 ` Tarmigan
0 siblings, 1 reply; 4+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2010-08-21 8:06 UTC (permalink / raw)
To: Tarmigan; +Cc: Git Mailing List
[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]
On Sat, Aug 21, 2010 at 07:57, Tarmigan <tarmigan+git@gmail.com> wrote:
> On Thu, Aug 19, 2010 at 9:56 AM, Ævar Arnfjörð Bjarmason
> <avarab@gmail.com> wrote:
>> I haven't investigate this, but here's the failure output:
>>
>> ok 7 - static file if http.getanyfile false fails
>>
>> expecting success:
>> log_div "uploadpack default"
>> GET info/refs?service=git-upload-pack "200 OK" &&
>> POST git-upload-pack 0000 "200 OK"
>>
>> --- exp 2010-08-19 15:56:14.000000000 +0000
>> +++ act 2010-08-19 15:56:14.000000000 +0000
>> @@ -1 +1 @@
>> -Status: 200 OK
>> +Status: 404 Not Found
>> not ok - 8 http.uploadpack default enabled
>> #
>> # log_div "uploadpack default"
>> # GET info/refs?service=git-upload-pack "200 OK" &&
>> # POST git-upload-pack 0000 "200 OK"
>> #
>>
>
> Thanks for the report. Is this a new breakage and what version is it
> failing on?
>
> Do you ever test with GIT_TEST_HTTPD set? If not, can you please try this
> export GIT_TEST_HTTPD=1 && ./t5561-http-backend.sh -d -i -v
> and report back? Hopefully the test suite will automatically find
> apache on FreeBSD, otherwise you may need to give it some hints (see
> lib-httpd.sh).
Here are the outputs of:
$ GIT_TEST_HTTPD= ./t5560-http-backend-noserver.sh -d -i -v >
/tmp/no-httpd.txt 2>&1
$ GIT_TEST_HTTPD=1 ./t5560-http-backend-noserver.sh -d -i -v >
/tmp/with-httpd.txt 2>&1
Can't investigate this further now, sorry.
[-- Attachment #2: with-httpd.txt --]
[-- Type: text/plain, Size: 2743 bytes --]
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/.git/
expecting success:
echo content >file &&
git add file &&
git commit -m one &&
mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git --bare init &&
: >objects/info/alternates &&
: >objects/info/http-alternates
) &&
git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git push public master:master &&
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git repack -a -d
) &&
echo other >file &&
git add file &&
git commit -m two &&
git push public master:master &&
LOOSE_URL=$(find_file objects/??) &&
PACK_URL=$(find_file objects/pack/*.pack) &&
IDX_URL=$(find_file objects/pack/*.idx)
[master (root-commit) e00d2d0] one
Author: A U Thor <author@example.com>
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 file
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git/
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
* [new branch] master -> master
[master e101090] two
Author: A U Thor <author@example.com>
1 files changed, 1 insertions(+), 1 deletions(-)
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
e00d2d0..e101090 master -> master
ok 1 - setup repository
expecting success:
log_div "refs/heads/master"
GET refs/heads/master "404 Not Found"
ok 2 - direct refs/heads/master not found
expecting success:
log_div "getanyfile default"
get_static_files "200 OK"
ok 3 - static file is ok
expecting success:
log_div "no git-daemon-export-ok"
get_static_files "404 Not Found"
ok 4 - no export by default
expecting success:
log_div "git-daemon-export-ok"
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
touch git-daemon-export-ok
) &&
get_static_files "200 OK"
ok 5 - export if git-daemon-export-ok
expecting success:
log_div "getanyfile true"
config http.getanyfile true &&
get_static_files "200 OK"
ok 6 - static file if http.getanyfile true is ok
expecting success:
log_div "getanyfile false"
config http.getanyfile false &&
get_static_files "403 Forbidden"
ok 7 - static file if http.getanyfile false fails
expecting success:
log_div "uploadpack default"
GET info/refs?service=git-upload-pack "200 OK" &&
POST git-upload-pack 0000 "200 OK"
--- exp 2010-08-21 08:04:57.000000000 +0000
+++ act 2010-08-21 08:04:57.000000000 +0000
@@ -1 +1 @@
-Status: 200 OK
+Status: 404 Not Found
not ok - 8 http.uploadpack default enabled
#
# log_div "uploadpack default"
# GET info/refs?service=git-upload-pack "200 OK" &&
# POST git-upload-pack 0000 "200 OK"
#
[-- Attachment #3: no-httpd.txt --]
[-- Type: text/plain, Size: 2743 bytes --]
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/.git/
expecting success:
echo content >file &&
git add file &&
git commit -m one &&
mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git --bare init &&
: >objects/info/alternates &&
: >objects/info/http-alternates
) &&
git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git push public master:master &&
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git repack -a -d
) &&
echo other >file &&
git add file &&
git commit -m two &&
git push public master:master &&
LOOSE_URL=$(find_file objects/??) &&
PACK_URL=$(find_file objects/pack/*.pack) &&
IDX_URL=$(find_file objects/pack/*.idx)
[master (root-commit) 0bfcfe4] one
Author: A U Thor <author@example.com>
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 file
Initialized empty Git repository in /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git/
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
* [new branch] master -> master
[master d89e1cd] two
Author: A U Thor <author@example.com>
1 files changed, 1 insertions(+), 1 deletions(-)
To /usr/home/avar/g/git/t/trash directory.t5560-http-backend-noserver/repo.git
0bfcfe4..d89e1cd master -> master
ok 1 - setup repository
expecting success:
log_div "refs/heads/master"
GET refs/heads/master "404 Not Found"
ok 2 - direct refs/heads/master not found
expecting success:
log_div "getanyfile default"
get_static_files "200 OK"
ok 3 - static file is ok
expecting success:
log_div "no git-daemon-export-ok"
get_static_files "404 Not Found"
ok 4 - no export by default
expecting success:
log_div "git-daemon-export-ok"
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
touch git-daemon-export-ok
) &&
get_static_files "200 OK"
ok 5 - export if git-daemon-export-ok
expecting success:
log_div "getanyfile true"
config http.getanyfile true &&
get_static_files "200 OK"
ok 6 - static file if http.getanyfile true is ok
expecting success:
log_div "getanyfile false"
config http.getanyfile false &&
get_static_files "403 Forbidden"
ok 7 - static file if http.getanyfile false fails
expecting success:
log_div "uploadpack default"
GET info/refs?service=git-upload-pack "200 OK" &&
POST git-upload-pack 0000 "200 OK"
--- exp 2010-08-21 08:04:51.000000000 +0000
+++ act 2010-08-21 08:04:51.000000000 +0000
@@ -1 +1 @@
-Status: 200 OK
+Status: 404 Not Found
not ok - 8 http.uploadpack default enabled
#
# log_div "uploadpack default"
# GET info/refs?service=git-upload-pack "200 OK" &&
# POST git-upload-pack 0000 "200 OK"
#
^ permalink raw reply [flat|nested] 4+ messages in thread