tests: unify test-install
authorPradeepkumar Gayam <in3xes@gmail.com>
Tue, 17 Aug 2010 17:48:59 +0530
changeset 11917 b03cf2349a80
parent 11916 d1ea16ca6520
child 11918 f21ecd091970
tests: unify test-install
tests/test-install
tests/test-install.out
tests/test-install.t
--- a/tests/test-install	Tue Aug 17 16:53:03 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-echo '% hg debuginstall'
-hg debuginstall
-
-echo '% hg debuginstall with no username'
-HGUSER= hg debuginstall
-
-# Happy End
-true
--- a/tests/test-install.out	Tue Aug 17 16:53:03 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-% hg debuginstall
-Checking encoding (ascii)...
-Checking extensions...
-Checking templates...
-Checking patch...
-Checking commit editor...
-Checking username...
-No problems detected
-% hg debuginstall with no username
-Checking encoding (ascii)...
-Checking extensions...
-Checking templates...
-Checking patch...
-Checking commit editor...
-Checking username...
- no username supplied (see "hg help config")
- (specify a username in your .hgrc file)
-1 problems detected, please check your install!
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-install.t	Tue Aug 17 17:48:59 2010 +0530
@@ -0,0 +1,23 @@
+hg debuginstall
+  $ hg debuginstall
+  Checking encoding (ascii)...
+  Checking extensions...
+  Checking templates...
+  Checking patch...
+  Checking commit editor...
+  Checking username...
+  No problems detected
+
+hg debuginstall with no username
+  $ HGUSER= hg debuginstall
+  Checking encoding (ascii)...
+  Checking extensions...
+  Checking templates...
+  Checking patch...
+  Checking commit editor...
+  Checking username...
+   no username supplied (see "hg help config")
+   (specify a username in your .hgrc file)
+  1 problems detected, please check your install!
+
+  $ true