diff --git a/tests/test-alias.out b/tests/test-alias.out
deleted file mode 100644
index 6c8e824970d1dd3d2c374725c660cc51722f9af2_dGVzdHMvdGVzdC1hbGlhcy5vdXQ=..0000000000000000000000000000000000000000
--- a/tests/test-alias.out
+++ /dev/null
@@ -1,69 +0,0 @@
-% basic
-% unknown
-alias 'unknown' resolves to unknown command 'bargle'
-alias 'unknown' resolves to unknown command 'bargle'
-% ambiguous
-alias 'ambiguous' resolves to ambiguous command 's'
-alias 'ambiguous' resolves to ambiguous command 's'
-% recursive
-alias 'recursive' resolves to unknown command 'recursive'
-alias 'recursive' resolves to unknown command 'recursive'
-% no definition
-no definition for alias 'nodefinition'
-no definition for alias 'nodefinition'
-% invalid options
-error in definition for alias 'no--cwd': --cwd may only be given on the command line
-error in definition for alias 'no--cwd': --cwd may only be given on the command line
-error in definition for alias 'no-R': -R may only be given on the command line
-error in definition for alias 'no-R': -R may only be given on the command line
-error in definition for alias 'no--repo': --repo may only be given on the command line
-error in definition for alias 'no--repo': --repo may only be given on the command line
-error in definition for alias 'no--repository': --repository may only be given on the command line
-error in definition for alias 'no--repository': --repository may only be given on the command line
-% no usage
-no rollback information available
-adding foo
-% with opts
-C foo
-% with opts and whitespace
-0 e63c23eaa88a | 1970-01-01 00:00 +0000
-% interaction with defaults
-0:e63c23eaa88a
--1:000000000000
-% properly recursive
-changeset:   -1:0000000000000000000000000000000000000000
-parent:      -1:0000000000000000000000000000000000000000
-parent:      -1:0000000000000000000000000000000000000000
-manifest:    -1:0000000000000000000000000000000000000000
-user:        
-date:        Thu Jan 01 00:00:00 1970 +0000
-extra:       branch=default
-
-% path expanding
-# HG changeset patch
-# User test
-# Date 0 0
-# Node ID e63c23eaa88ae77967edcf4ea194d31167c478b0
-# Parent  0000000000000000000000000000000000000000
-foo
-
-diff -r 000000000000 -r e63c23eaa88a foo
---- /dev/null	Thu Jan 01 00:00:00 1970 +0000
-+++ b/foo	Thu Jan 01 00:00:00 1970 +0000
-@@ -0,0 +1,1 @@
-+foo
-% shell aliases
-foo
-% invalid arguments
-hg rt: invalid arguments
-hg rt 
-
-alias for: hg root
-
-print the root (top) of the current working directory
-
-    Print the root directory of the current repository.
-
-    Returns 0 on success.
-
-use "hg -v help rt" to show global options
diff --git a/tests/test-alias b/tests/test-alias.t
old mode 100755
new mode 100644
similarity index 0%
rename from tests/test-alias
rename to tests/test-alias.t
index 6c8e824970d1dd3d2c374725c660cc51722f9af2_dGVzdHMvdGVzdC1hbGlhcw==..61b0a01182d5a24e81ad12e2bf5f3d92f003f4d2_dGVzdHMvdGVzdC1hbGlhcy50
--- a/tests/test-alias
+++ b/tests/test-alias.t
@@ -1,2 +1,41 @@
-#!/bin/sh
+  $ cat >> $HGRCPATH <<EOF
+  > [alias]
+  > myinit = init
+  > cleanstatus = status -c
+  > unknown = bargle
+  > ambiguous = s
+  > recursive = recursive
+  > nodefinition =
+  > no--cwd = status --cwd elsewhere
+  > no-R = status -R elsewhere
+  > no--repo = status --repo elsewhere
+  > no--repository = status --repository elsewhere
+  > mylog = log
+  > lognull = log -r null
+  > shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
+  > dln = lognull --debug
+  > nousage = rollback
+  > put = export -r 0 -o "\$FOO/%R.diff"
+  > echo = !echo
+  > rt = root
+  > 
+  > [defaults]
+  > mylog = -q
+  > lognull = -q
+  > log = -v
+  > EOF
+
+
+basic
+
+  $ hg myinit alias
+
+
+unknown
+
+  $ hg unknown
+  alias 'unknown' resolves to unknown command 'bargle'
+  $ hg help unknown
+  alias 'unknown' resolves to unknown command 'bargle'
+
 
@@ -2,22 +41,19 @@
 
-cat >> $HGRCPATH <<EOF
-[alias]
-myinit = init
-cleanstatus = status -c
-unknown = bargle
-ambiguous = s
-recursive = recursive
-nodefinition =
-no--cwd = status --cwd elsewhere
-no-R = status -R elsewhere
-no--repo = status --repo elsewhere
-no--repository = status --repository elsewhere
-mylog = log
-lognull = log -r null
-shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
-dln = lognull --debug
-nousage = rollback
-put = export -r 0 -o "\$FOO/%R.diff"
-echo = !echo
-rt = root
+ambiguous
+
+  $ hg ambiguous
+  alias 'ambiguous' resolves to ambiguous command 's'
+  $ hg help ambiguous
+  alias 'ambiguous' resolves to ambiguous command 's'
+
+
+recursive
+
+  $ hg recursive
+  alias 'recursive' resolves to unknown command 'recursive'
+  $ hg help recursive
+  alias 'recursive' resolves to unknown command 'recursive'
+
+
+no definition
 
@@ -23,7 +59,6 @@
 
-[defaults]
-mylog = -q
-lognull = -q
-log = -v
-EOF
+  $ hg nodef
+  no definition for alias 'nodefinition'
+  $ hg help nodef
+  no definition for alias 'nodefinition'
 
@@ -29,4 +64,4 @@
 
-echo '% basic'
-hg myinit alias
+
+invalid options
 
@@ -32,13 +67,18 @@
 
-echo '% unknown'
-hg unknown
-hg help unknown
-
-echo '% ambiguous'
-hg ambiguous
-hg help ambiguous
-
-echo '% recursive'
-hg recursive
-hg help recursive
+  $ hg no--cwd
+  error in definition for alias 'no--cwd': --cwd may only be given on the command line
+  $ hg help no--cwd
+  error in definition for alias 'no--cwd': --cwd may only be given on the command line
+  $ hg no-R
+  error in definition for alias 'no-R': -R may only be given on the command line
+  $ hg help no-R
+  error in definition for alias 'no-R': -R may only be given on the command line
+  $ hg no--repo
+  error in definition for alias 'no--repo': --repo may only be given on the command line
+  $ hg help no--repo
+  error in definition for alias 'no--repo': --repo may only be given on the command line
+  $ hg no--repository
+  error in definition for alias 'no--repository': --repository may only be given on the command line
+  $ hg help no--repository
+  error in definition for alias 'no--repository': --repository may only be given on the command line
 
@@ -44,5 +84,16 @@
 
-echo '% no definition'
-hg nodef
-hg help nodef
+  $ cd alias
+
+
+no usage
+
+  $ hg nousage
+  no rollback information available
+
+  $ echo foo > foo
+  $ hg ci -Amfoo
+  adding foo
+
+
+with opts
 
@@ -48,11 +99,11 @@
 
-echo '% invalid options'
-hg no--cwd
-hg help no--cwd
-hg no-R
-hg help no-R
-hg no--repo
-hg help no--repo
-hg no--repository
-hg help no--repository
+  $ hg cleanst
+  C foo
+
+
+with opts and whitespace
+
+  $ hg shortlog
+  0 e63c23eaa88a | 1970-01-01 00:00 +0000
+
 
@@ -58,3 +109,3 @@
 
-cd alias
+interaction with defaults
 
@@ -60,4 +111,6 @@
 
-echo '% no usage'
-hg nousage
+  $ hg mylog
+  0:e63c23eaa88a
+  $ hg lognull
+  -1:000000000000
 
@@ -63,4 +116,4 @@
 
-echo foo > foo
-hg ci -Amfoo
+
+properly recursive
 
@@ -66,4 +119,11 @@
 
-echo '% with opts'
-hg cleanst
+  $ hg dln
+  changeset:   -1:0000000000000000000000000000000000000000
+  parent:      -1:0000000000000000000000000000000000000000
+  parent:      -1:0000000000000000000000000000000000000000
+  manifest:    -1:0000000000000000000000000000000000000000
+  user:        
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  extra:       branch=default
+  
 
@@ -69,4 +129,2 @@
 
-echo '% with opts and whitespace'
-hg shortlog
 
@@ -72,5 +130,3 @@
 
-echo '% interaction with defaults'
-hg mylog
-hg lognull
+path expanding
 
@@ -76,4 +132,16 @@
 
-echo '% properly recursive'
-hg dln
+  $ FOO=`pwd` hg put
+  $ cat 0.diff
+  # HG changeset patch
+  # User test
+  # Date 0 0
+  # Node ID e63c23eaa88ae77967edcf4ea194d31167c478b0
+  # Parent  0000000000000000000000000000000000000000
+  foo
+  
+  diff -r 000000000000 -r e63c23eaa88a foo
+  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+  +++ b/foo	Thu Jan 01 00:00:00 1970 +0000
+  @@ -0,0 +1,1 @@
+  +foo
 
@@ -79,5 +147,4 @@
 
-echo '% path expanding'
-FOO=`pwd` hg put
-cat 0.diff
+
+shell aliases
 
@@ -83,6 +150,6 @@
 
-echo '% shell aliases'
-hg echo foo
-echo '% invalid arguments'
-hg rt foo
+  $ hg echo foo
+  foo
+
+invalid arguments
 
@@ -88,2 +155,16 @@
 
-exit 0
+  $ hg rt foo
+  hg rt: invalid arguments
+  hg rt 
+  
+  alias for: hg root
+  
+  print the root (top) of the current working directory
+  
+      Print the root directory of the current repository.
+  
+      Returns 0 on success.
+  
+  use "hg -v help rt" to show global options
+
+  $ exit 0