threads / discuss / 25576

git-svn tests fail since 1.7.2.2

Subject: git-svn tests fail since 1.7.2.2

## tl;dr

4 messages between Oct 28, 2010 and Oct 28, 2010.

replies: 3people: 3as markdown or json

H.Merijn Brand· Oct 28, 2010, 10:28 UTC · lore

I always compile git myself from scratch. One reason is that I want git-gui to push tags by default, and the option is not available to store that in some global config. The patches I apply are available as http://tux.nl/Files/git-patch

(the templates/Makefile patch is to make install work on HP-UX and AIX
 too, where my machines don't seem to like the original installation
 code, but that doesn't change anything else).

Up to and including 1.7.2.1, all went smooth and fine, but as of 1.7.2.2 (and 1.7.3.1 and 1.7.3.2), the tests started to fail on svn issues. These tests fail * with or without * my patches. As a result of these failures, I do not dare to install newer versions of git.

I (have to) use svn for some remote repositories that I clone with git-svn to be able to use my favorite tools. IMHO svn sucks in user tools, so I prefer git, but that is probably like preaching to the choir here :)

I even created a few post-commit hooks in svn to sync a git clone automatically so I don't have to waste time in svn land to track down changes from a svn repo to some local svn repo's used in Eclipse.

I do *not* have a ~/.subversion or ~/.svn*

--8<--- *** t9101-git-svn-props.sh *** ok 1 - checkout working copy from svn ok 2 - setup some commits to svn ok 3 - initialize git svn ok 4 - fetch revisions from svn ok 5 - test svn:keywords ignoring ok 6 - raw $Id$ found in kw.c ok 7 - propset CR on crlf files ok 8 - fetch and pull latest from svn and checkout a new wc ok 9 - Comparing crlf ok 10 - Comparing ne_crlf ok 11 - Comparing lf ok 12 - Comparing ne_lf ok 13 - Comparing cr ok 14 - Comparing ne_cr ok 15 - Comparing empty_cr ok 16 - Comparing empty_lf ok 17 - Comparing empty ok 18 - Comparing empty_crlf ok 19 - Set CRLF on cr files ok 20 - fetch and pull latest from svn ok 21 - CRLF + $Id$ ok 22 - CRLF + $Id$ (no newline) ok 23 - test show-ignore not ok - 24 test create-ignore # # git svn fetch && git pull . remotes/git-svn && # git svn create-ignore && # cmp ./.gitignore create-ignore.expect && # cmp ./deeply/.gitignore create-ignore.expect && # cmp ./deeply/nested/.gitignore create-ignore.expect && # cmp ./deeply/nested/directory/.gitignore create-ignore.expect && # git ls-files -s | grep gitignore | cmp - create-ignore-index.expect # not ok - 25 test propget # # git svn propget svn:ignore . | cmp - prop.expect && # cd deeply && # git svn propget svn:ignore . | cmp - ../prop.expect && # git svn propget svn:entry:committed-rev nested/directory/.keep | cmp - ../prop2.expect && # git svn propget svn:ignore .. | cmp - ../prop.expect && # git svn propget svn:ignore nested/ | cmp - ../prop.expect && # git svn propget svn:ignore ./nested | cmp - ../prop.expect && # git svn propget svn:ignore .././deeply/nested | cmp - ../prop.expect # not ok - 26 test proplist # # git svn proplist . | cmp - prop.expect && # git svn proplist nested/directory/.keep | cmp - prop2.expect # # failed 3 among 26 test(s) 1..26 -->8---

git-1.7.3.2/t $ prove -v t9*
:
:
Test Summary Report
-------------------
t9101-git-svn-props.sh                           (Wstat: 256 Tests: 26 Failed: 3)
  Failed tests:  24-26
  Non-zero exit status: 1
t9143-git-svn-gc.sh                              (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  10
  Non-zero exit status: 1
Files=71, Tests=865, 451 wallclock secs ( 0.53 usr  0.07 sys + 106.75 cusr 52.05 csys = 159.40 CPU)
Result: FAIL

These tests fail on *all* my Linux boxes, which happen to be OpenSUSE ranging from 11.0 to 11.3. FWIW I am not interested in svn support on HP-UX at the moment.

OpenSUSE 11.0/64:
Linux 2.6.25.20-0.7-default/#1  HP xw4600 Core(TM)2 Quad CPU Q9450 @ 2.66GHz/1998(4) x86_64  3950 Mb
+ svn, version 1.5.7 (r36142)
OpenSUSE 11.2/64:
Linux 2.6.31.12-0.2-default/#1  HP xw6400 Xeon(R) CPU E5320 @ 1.86GHz/1596(4) x86_64  3962 Mb
+ svn, version 1.6.6 (r40053)
OpenSUSE 11.3/32:
Linux 2.6.34.7-0.5-desktop/#1  HP EliteBook 8540p Core(TM) i5 CPU M 540 @ 2.53GHz/1199(4) i686  3868 Mb
+ svn, version 1.6.9 (r901367)

I'm not subscribed to this list and (sorry) have no time to follow it, so if you need more feedback, please keep me Cc'd

-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.3 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/
Mathias Lafeldt· Oct 28, 2010, 15:49 UTC · re: H.Merijn Brand · lore

Re: git-svn tests fail since 1.7.2.2

H.Merijn Brand wrote:
Show 115 quoted lines
> I always compile git myself from scratch. One reason is that I want
> git-gui to push tags by default, and the option is not available to
> store that in some global config. The patches I apply are available
> as http://tux.nl/Files/git-patch
> 
> (the templates/Makefile patch is to make install work on HP-UX and AIX
>  too, where my machines don't seem to like the original installation
>  code, but that doesn't change anything else).
> 
> Up to and including 1.7.2.1, all went smooth and fine, but as of
> 1.7.2.2 (and 1.7.3.1 and 1.7.3.2), the tests started to fail on svn
> issues. These tests fail * with or without * my patches. As a result
> of these failures, I do not dare to install newer versions of git.
> 
> I (have to) use svn for some remote repositories that I clone with
> git-svn to be able to use my favorite tools. IMHO svn sucks in user
> tools, so I prefer git, but that is probably like preaching to the
> choir here :)
> 
> I even created a few post-commit hooks in svn to sync a git clone
> automatically so I don't have to waste time in svn land to track down
> changes from a svn repo to some local svn repo's used in Eclipse.
> 
> I do *not* have a ~/.subversion or ~/.svn*
> 
> --8<---
> *** t9101-git-svn-props.sh ***
> ok 1 - checkout working copy from svn
> ok 2 - setup some commits to svn
> ok 3 - initialize git svn
> ok 4 - fetch revisions from svn
> ok 5 - test svn:keywords ignoring
> ok 6 - raw $Id$ found in kw.c
> ok 7 - propset CR on crlf files
> ok 8 - fetch and pull latest from svn and checkout a new wc
> ok 9 - Comparing crlf
> ok 10 - Comparing ne_crlf
> ok 11 - Comparing lf
> ok 12 - Comparing ne_lf
> ok 13 - Comparing cr
> ok 14 - Comparing ne_cr
> ok 15 - Comparing empty_cr
> ok 16 - Comparing empty_lf
> ok 17 - Comparing empty
> ok 18 - Comparing empty_crlf
> ok 19 - Set CRLF on cr files
> ok 20 - fetch and pull latest from svn
> ok 21 - CRLF + $Id$
> ok 22 - CRLF + $Id$ (no newline)
> ok 23 - test show-ignore
> not ok - 24 test create-ignore
> #
> #               git svn fetch && git pull . remotes/git-svn &&
> #               git svn create-ignore &&
> #               cmp ./.gitignore create-ignore.expect &&
> #               cmp ./deeply/.gitignore create-ignore.expect &&
> #               cmp ./deeply/nested/.gitignore create-ignore.expect &&
> #               cmp ./deeply/nested/directory/.gitignore create-ignore.expect &&
> #               git ls-files -s | grep gitignore | cmp - create-ignore-index.expect
> #
> not ok - 25 test propget
> #
> #               git svn propget svn:ignore . | cmp - prop.expect &&
> #               cd deeply &&
> #               git svn propget svn:ignore . | cmp - ../prop.expect &&
> #               git svn propget svn:entry:committed-rev nested/directory/.keep   | cmp - ../prop2.expect &&
> #               git svn propget svn:ignore .. | cmp - ../prop.expect &&
> #               git svn propget svn:ignore nested/ | cmp - ../prop.expect &&
> #               git svn propget svn:ignore ./nested | cmp - ../prop.expect &&
> #               git svn propget svn:ignore .././deeply/nested | cmp - ../prop.expect
> #
> not ok - 26 test proplist
> #
> #               git svn proplist . | cmp - prop.expect &&
> #               git svn proplist nested/directory/.keep | cmp - prop2.expect
> #
> # failed 3 among 26 test(s)
> 1..26
> -->8---
> 
> git-1.7.3.2/t $ prove -v t9*
> :
> :
> Test Summary Report
> -------------------
> t9101-git-svn-props.sh                           (Wstat: 256 Tests: 26 Failed: 3)
>   Failed tests:  24-26
>   Non-zero exit status: 1
> t9143-git-svn-gc.sh                              (Wstat: 256 Tests: 11 Failed: 1)
>   Failed test:  10
>   Non-zero exit status: 1
> Files=71, Tests=865, 451 wallclock secs ( 0.53 usr  0.07 sys + 106.75 cusr 52.05 csys = 159.40 CPU)
> Result: FAIL
> 
> 
> These tests fail on *all* my Linux boxes, which happen to be OpenSUSE
> ranging from 11.0 to 11.3. FWIW I am not interested in svn support on
> HP-UX at the moment.
> 
> OpenSUSE 11.0/64:
> Linux 2.6.25.20-0.7-default/#1  HP xw4600 Core(TM)2 Quad CPU Q9450 @ 2.66GHz/1998(4) x86_64  3950 Mb
> + svn, version 1.5.7 (r36142)
> 
> OpenSUSE 11.2/64:
> Linux 2.6.31.12-0.2-default/#1  HP xw6400 Xeon(R) CPU E5320 @ 1.86GHz/1596(4) x86_64  3962 Mb
> + svn, version 1.6.6 (r40053)
> 
> OpenSUSE 11.3/32:
> Linux 2.6.34.7-0.5-desktop/#1  HP EliteBook 8540p Core(TM) i5 CPU M 540 @ 2.53GHz/1199(4) i686  3868 Mb
> + svn, version 1.6.9 (r901367)
> 
> 
> I'm not subscribed to this list and (sorry) have no time to follow it,
> so if you need more feedback, please keep me Cc'd
> 
FYI, with Git 1.7.3.2, all tests passed for me.
In particular:

$ prove t9101-git-svn-props.sh t9143-git-svn-gc.sh t9101-git-svn-props....ok

t9143-git-svn-gc.......ok

All tests successful. Files=2, Tests=37, 11 wallclock secs ( 4.51 cusr + 2.45 csys = 6.96 CPU)

$ ../git --version git version 1.7.3.2.145.g7ebee

I'm running Ubuntu 9.10, btw.
-Mathias
Jonathan Nieder· Oct 28, 2010, 17:56 UTC · re: H.Merijn Brand · lore

Re: git-svn tests fail since 1.7.2.2

Hi,
H.Merijn Brand wrote [snipped somewhat]:
Show 20 quoted lines
> Up to and including 1.7.2.1, all went smooth and fine, but as of
> 1.7.2.2 (and 1.7.3.1 and 1.7.3.2), the tests started to fail on svn
> issues.
>
> t9101-git-svn-props.sh                           (Wstat: 256 Tests: 26 Failed: 3)
>   Failed tests:  24-26
> t9143-git-svn-gc.sh                              (Wstat: 256 Tests: 11 Failed: 1)
>   Failed test:  10
>
> These tests fail on *all* my Linux boxes, which happen to be OpenSUSE
> ranging from 11.0 to 11.3.
>
> OpenSUSE 11.0/64:
> + svn, version 1.5.7 (r36142)
> 
> OpenSUSE 11.2/64:
> + svn, version 1.6.6 (r40053)
> 
> OpenSUSE 11.3/32:
> + svn, version 1.6.9 (r901367)

Any idea what error message or command they fail at? Useful commands to try might be

 sh t9101-git-svn-props.sh -v
and
 sh -x t9101-git-svn-props.sh -v -i

Thanks for reporting, Jonathan

H.Merijn Brand· Oct 28, 2010, 20:32 UTC · re: Jonathan Nieder · lore

Re: git-svn tests fail since 1.7.2.2

On Thu, 28 Oct 2010 12:56:48 -0500, Jonathan Nieder <jrnieder@gmail.com> wrote:

Show 29 quoted lines
> Hi,
> 
> H.Merijn Brand wrote [snipped somewhat]:
> 
> > Up to and including 1.7.2.1, all went smooth and fine, but as of
> > 1.7.2.2 (and 1.7.3.1 and 1.7.3.2), the tests started to fail on svn
> > issues.
> >
> > t9101-git-svn-props.sh                           (Wstat: 256 Tests: 26 Failed: 3)
> >   Failed tests:  24-26
> > t9143-git-svn-gc.sh                              (Wstat: 256 Tests: 11 Failed: 1)
> >   Failed test:  10
> >
> > These tests fail on *all* my Linux boxes, which happen to be OpenSUSE
> > ranging from 11.0 to 11.3.
> >
> > OpenSUSE 11.0/64:
> > + svn, version 1.5.7 (r36142)
> > 
> > OpenSUSE 11.2/64:
> > + svn, version 1.6.6 (r40053)
> > 
> > OpenSUSE 11.3/32:
> > + svn, version 1.6.9 (r901367)
> 
> Any idea what error message or command they fail at?  Useful commands
> to try might be
> 
>  sh t9101-git-svn-props.sh -v
ok 23 - test show-ignore
expecting success:
        git svn fetch && git pull . remotes/git-svn &&
        git svn create-ignore &&
        cmp ./.gitignore create-ignore.expect &&
        cmp ./deeply/.gitignore create-ignore.expect &&
        cmp ./deeply/nested/.gitignore create-ignore.expect &&
        cmp ./deeply/nested/directory/.gitignore create-ignore.expect &&
        git ls-files -s | grep gitignore | cmp - create-ignore-index.expect
        A       deeply/nested/directory/.keep
r8 = ddf07d64e9879c7d8f730b781596e1a6cf5d413b (refs/remotes/git-svn)
From .
 * remote branch     git-svn    -> FETCH_HEAD
Updating eff953b..ddf07d6
Fast-forward
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 deeply/nested/directory/.keep
-: No such file or directory
not ok - 24 test create-ignore
#
#               git svn fetch && git pull . remotes/git-svn &&
#               git svn create-ignore &&
#               cmp ./.gitignore create-ignore.expect &&
#               cmp ./deeply/.gitignore create-ignore.expect &&
#               cmp ./deeply/nested/.gitignore create-ignore.expect &&
#               cmp ./deeply/nested/directory/.gitignore create-ignore.expect &&
#               git ls-files -s | grep gitignore | cmp - create-ignore-index.expect
#
expecting success:
        git svn propget svn:ignore . | cmp - prop.expect &&
        cd deeply &&
        git svn propget svn:ignore . | cmp - ../prop.expect &&
        git svn propget svn:entry:committed-rev nested/directory/.keep    | cmp - ../prop2.expect &&
        git svn propget svn:ignore .. | cmp - ../prop.expect &&
        git svn propget svn:ignore nested/ | cmp - ../prop.expect &&
        git svn propget svn:ignore ./nested | cmp - ../prop.expect &&
        git svn propget svn:ignore .././deeply/nested | cmp - ../prop.expect

-: No such file or directory error: git-svn died of signal 13 not ok - 25 test propget # # git svn propget svn:ignore . | cmp - prop.expect && # cd deeply && # git svn propget svn:ignore . | cmp - ../prop.expect && # git svn propget svn:entry:committed-rev nested/directory/.keep | cmp - ../prop2.expect && # git svn propget svn:ignore .. | cmp - ../prop.expect && # git svn propget svn:ignore nested/ | cmp - ../prop.expect && # git svn propget svn:ignore ./nested | cmp - ../prop.expect && # git svn propget svn:ignore .././deeply/nested | cmp - ../prop.expect #

expecting success:
        git svn proplist . | cmp - prop.expect &&
        git svn proplist nested/directory/.keep | cmp - prop2.expect

-: No such file or directory error: git-svn died of signal 13 not ok - 26 test proplist # # git svn proplist . | cmp - prop.expect && # git svn proplist nested/directory/.keep | cmp - prop2.expect #

# failed 3 among 26 test(s) 1..26 Exit 1

Right, If I would have thought of that myself, I would not have had to report the issue. My system seems to have a non-standard "cmp" that seems to have been chosen over the system one. That cmp does not handle -.

Problem solved:
ok 26 - test proplist

# passed all 26 test(s) 1..26

Show 6 quoted lines
> and
> 
>  sh -x t9101-git-svn-props.sh -v -i
> 
> Thanks for reporting,
> Jonathan
-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.3 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

← back to recent threads