# tests for git-p4

4 messages from 2008-07-12 to 2008-07-13. Participants: Matt McClure, Johannes Schindelin, Simon Hausmann.
Thread: https://gitlist.dev/t/14421

## Matt McClure, 2008-07-12 12:24

Subject: tests for git-p4
Message-ID: <e48c5e540807120524rabdcfa6vd91c16ef1b0f80a0@mail.gmail.com>
URL: https://gitlist.dev/e/e48c5e540807120524rabdcfa6vd91c16ef1b0f80a0%40mail.gmail.com

```
I'm planning to write a "p4-fast-export" that will facilitate using
Bazaar on projects maintained in Perforce.  I'd like to reuse code
from git-p4 since it appears to have much of the functionality I want.
 In fact, the main reason I can't just use git-p4 today is that it
does too much: it pushes the Perforce fast-export representation
directly into Git.  I'm going to work on covering the existing
functionality in tests before I start modifying the code, and I could
try to write those tests such that they'll be useful to the Git
project as well.

Would my tests be of interest to git-p4's authors?  Is there any
existing test framework for git-p4 that I missed?

Matt

```

## Johannes Schindelin, 2008-07-12 14:36

Subject: Re: tests for git-p4
Message-ID: <alpine.DEB.1.00.0807121536110.8950@racer>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0807121536110.8950%40racer
In-Reply-To: <e48c5e540807120524rabdcfa6vd91c16ef1b0f80a0@mail.gmail.com>

```
Hi,

On Sat, 12 Jul 2008, Matt McClure wrote:

> Would my tests be of interest to git-p4's authors?  Is there any 
> existing test framework for git-p4 that I missed?

git$ git shortlog -e -s -n -- contrib/fast-import/git-p4* | head -n 5
   102  Simon Hausmann <simon@lst.de>
    50  Simon Hausmann <shausman@trolltech.com>
    31  Han-Wen Nienhuys <hanwen@google.com>
    13  Simon Hausmann <hausmann@kde.org>
     7  Marius Storm-Olsen <marius@trolltech.com>

Hth,
Dscho

```

## Simon Hausmann, 2008-07-13 12:26

Subject: Re: tests for git-p4
Message-ID: <200807131426.09688.simon@lst.de>
URL: https://gitlist.dev/e/200807131426.09688.simon%40lst.de
In-Reply-To: <e48c5e540807120524rabdcfa6vd91c16ef1b0f80a0@mail.gmail.com>

```
On Saturday 12 July 2008 14:24:10 Matt McClure wrote:
> I'm planning to write a "p4-fast-export" that will facilitate using
> Bazaar on projects maintained in Perforce.  I'd like to reuse code
> from git-p4 since it appears to have much of the functionality I want.
>  In fact, the main reason I can't just use git-p4 today is that it
> does too much: it pushes the Perforce fast-export representation
> directly into Git.  I'm going to work on covering the existing
> functionality in tests before I start modifying the code, and I could
> try to write those tests such that they'll be useful to the Git
> project as well.
>
> Would my tests be of interest to git-p4's authors?  Is there any
> existing test framework for git-p4 that I missed?

There are currently no automated tests for git-p4. I would certainly be 
interested, but I forsee difficulties testing the interaction with p4 in a 
general way independent from a specific server setup.


Simon

```

## Matt McClure, 2008-07-13 18:40

Subject: Re: tests for git-p4
Message-ID: <e48c5e540807131140k754dbb88k36dd8fb463e6fc6b@mail.gmail.com>
URL: https://gitlist.dev/e/e48c5e540807131140k754dbb88k36dd8fb463e6fc6b%40mail.gmail.com
In-Reply-To: <200807131426.09688.simon@lst.de>

```
On Sun, Jul 13, 2008 at 8:26 AM, Simon Hausmann <simon@lst.de> wrote:
> On Saturday 12 July 2008 14:24:10 Matt McClure wrote:
> There are currently no automated tests for git-p4. I would certainly be
> interested, but I forsee difficulties testing the interaction with p4 in a
> general way independent from a specific server setup.

I can solve that by bootstrapping a p4d server for the tests that need
to exercise p4 directly.  At higher levels of abstraction, if they
evolve, I could replace p4 with a test double that doesn't need a
Perforce server.

Matt

```
