# HG changeset patch # User Nicolas Dumazet # Date 1283162713 -32400 # Node ID 7790989534575604388b510595b661029c669294 # Parent e5ccb9ea8266132c01e78c987ddc52a821496764 tests: unify test-interhg diff -r e5ccb9ea8266 -r 779098953457 tests/test-interhg --- a/tests/test-interhg Tue Aug 31 15:47:13 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -#!/bin/sh - -hg init test -cd test - -cat > .hg/hgrc <Issue\1| - -# yes, 'x' is a weird delimiter... -markbugs = sxbugxbugx -EOF - -touch foo -hg add foo -hg commit -d '1 0' -m 'Issue123: fixed the bug!' - -hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log -cat hg.pid >> $DAEMON_PIDS - -echo % log -"$TESTDIR/get-with-headers.py" localhost:$HGPORT '/' | grep bts - -echo % errors -cat errors.log diff -r e5ccb9ea8266 -r 779098953457 tests/test-interhg.out --- a/tests/test-interhg.out Tue Aug 31 15:47:13 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -% log - Issue123: fixed the bug!default tip -% errors diff -r e5ccb9ea8266 -r 779098953457 tests/test-interhg.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-interhg.t Mon Aug 30 19:05:13 2010 +0900 @@ -0,0 +1,29 @@ + $ hg init test + $ cd test + + $ cat > .hg/hgrc < [extensions] + > interhg = + > + > [interhg] + > issues = s|Issue(\d+)|Issue\1| + > + > # yes, 'x' is a weird delimiter... + > markbugs = sxbugxbugx + > EOF + + $ touch foo + $ hg add foo + $ hg commit -d '1 0' -m 'Issue123: fixed the bug!' + + $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log + $ cat hg.pid >> $DAEMON_PIDS + +log + + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/' | grep bts + Issue123: fixed the bug!default tip + +errors + + $ cat errors.log