[PATCH 1 of 9] tests: unify test-install
in3xes at gmail.com
in3xes at gmail.com
Tue Aug 17 07:37:58 CDT 2010
# HG changeset patch
# User Pradeepkumar Gayam <in3xes at gmail.com>
# Date 1282047539 -19800
# Node ID 19755c907192cde2da6895add7b1ebf874b8b313
# Parent 02bc57ffd0cefad4fa07e27c1a814a47c5544546
tests: unify test-install
diff -r 02bc57ffd0ce -r 19755c907192 tests/test-install
--- a/tests/test-install Tue Aug 17 17:39:37 2010 +0530
+++ /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
diff -r 02bc57ffd0ce -r 19755c907192 tests/test-install.out
--- a/tests/test-install.out Tue Aug 17 17:39:37 2010 +0530
+++ /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!
diff -r 02bc57ffd0ce -r 19755c907192 tests/test-install.t
--- /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
More information about the Mercurial-devel
mailing list