# HG changeset patch # User Matt Mackall # Date 2010-09-26 18:41:32 # Node ID 01c6be8361df36e309541ee3a0c0ce9264ebbc87 # Parent 3aa7b6445aadf27b6bb26ae4d387cdbaf13db11d tests: unify test-hgcia diff --git a/tests/test-hgcia.out b/tests/test-hgcia.out deleted file mode 100644 --- a/tests/test-hgcia.out +++ /dev/null @@ -1,30 +0,0 @@ -adding foo -pushing to ../cia -searching for changes -adding changesets -adding manifests -adding file changes -added 1 changesets with 1 changes to 1 files - - - - Mercurial (hgcia) - 0.1 - http://hg.kublai.com/mercurial/hgcia - testuser - - -testproject -default - - - - test - 0:e63c23eaa88a - foo - - foo - - - 0 - diff --git a/tests/test-hgcia b/tests/test-hgcia.t old mode 100755 new mode 100644 rename from tests/test-hgcia rename to tests/test-hgcia.t --- a/tests/test-hgcia +++ b/tests/test-hgcia.t @@ -1,23 +1,51 @@ -#!/bin/sh +Test the CIA extension -cat >> $HGRCPATH <> $HGRCPATH < [extensions] + > hgcia= + > + > [hooks] + > changegroup.cia = python:hgext.hgcia.hook + > + > [cia] + > user = testuser + > project = testproject + > test = True + > EOF -[cia] -user = testuser -project = testproject -test = True -EOF - -hg init src -hg init cia - -cd src -echo foo > foo -hg ci -Amfoo - -hg push ../cia + $ hg init src + $ hg init cia + $ cd src + $ echo foo > foo + $ hg ci -Amfoo + adding foo + $ hg push ../cia + pushing to ../cia + searching for changes + adding changesets + adding manifests + adding file changes + added 1 changesets with 1 changes to 1 files + + + + Mercurial (hgcia) + 0.1 + http://hg.kublai.com/mercurial/hgcia + testuser + + + testproject + default + + + + test + 0:e63c23eaa88a + foo + + foo + + + 0 +