diff --git a/tests/test-interhg b/tests/test-interhg deleted file mode 100755 index 37c73c2987..0000000000 --- a/tests/test-interhg +++ /dev/null @@ -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 --git a/tests/test-interhg.out b/tests/test-interhg.out deleted file mode 100644 index 6c3e7e9544..0000000000 --- a/tests/test-interhg.out +++ /dev/null @@ -1,3 +0,0 @@ -% log - Issue123: fixed the bug!default tip -% errors diff --git a/tests/test-interhg.t b/tests/test-interhg.t new file mode 100644 index 0000000000..5b829a3d10 --- /dev/null +++ b/tests/test-interhg.t @@ -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