automating Mercurial test suite runs

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Mar 22 20:10:48 CDT 2007


On 2007-03-23 02:34, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> Hi all,
> 
> I've written a small shell script to automate runs of the Mercurial
> test suite through a cron job.  The script isn't really anything
> fancy, but it can already run the tests by pulling from a 'gate'
> repository.  While writing it, I used a local crew repo clone at:
> 
>   /home/keramida/hg/mercurial/crew
> 
> and in fact the current version of the script still uses this local
> path as $GATEREPO.  I've pushed the current version of the script to:
> 
>   http://hg.hellug.gr/mercurial/gker/rev/24e13561536f
> 
> Does it look like something that would be nice to extend and add to
> the Mercurial distribution?

FWIW, here's a sample run of the tests being run in a clone of the
repository which contains the script itself, with the clone being pulled
over ssh:

,-----------------------------------------------------------------------
| $ env GATEREPO='ssh://keramida@igloo.linux.gr/hg/mercurial/gker' sh mercurial-test.sh
| 2007-03-23 00:56:41 -- Gate repository is at ssh://keramida@igloo.linux.gr/hg/mercurial/gker
| 2007-03-23 00:56:41 -- Creating temporary test workspace at /tmp/crewXXXX
| 2007-03-23 00:56:41 -- Initializing test workspace at /tmp/hgtest-PBmG
| 2007-03-23 00:56:42 -- Pulling changesets from gate repo at ssh://keramida@igloo.linux.gr/hg/mercurial/gker
| pulling from ssh://keramida@igloo.linux.gr/hg/mercurial/gker
| requesting all changes
| adding changesets
| adding manifests
| adding file changes
| added 4352 changesets with 8268 changes to 590 files
| (run 'hg update' to get a working copy)
| 2007-03-23 00:58:57 -- Gate tip is 24e13561536f
| 2007-03-23 00:58:57 -- Checking out clean copy of 24e13561536f revision
| 510 files updated, 0 files merged, 0 files removed, 0 files unresolved
| 2007-03-23 00:59:00 -- Running the Mercurial test suite.
| 2007-03-23 00:59:00 -- Extra run-tests.py flags: (none)
| ....................................................................................................................................................
| # Ran 148 tests, 0 skipped, 0 failed.
| 2007-03-23 01:06:41 -- Removing test workspace from /tmp/hgtest-PBmG
| $
`-----------------------------------------------------------------------



More information about the Mercurial-devel mailing list