Mercurial > hg-stable
changeset 11917:b03cf2349a80
tests: unify test-install
author | Pradeepkumar Gayam <in3xes@gmail.com> |
---|---|
date | Tue, 17 Aug 2010 17:48:59 +0530 |
parents | d1ea16ca6520 |
children | f21ecd091970 |
files | tests/test-install tests/test-install.out tests/test-install.t |
diffstat | 3 files changed, 23 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- 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