changeset 11874:a3c1234b3761

tests: unify test-cat
author Martin Geisler <mg@lazybytes.net>
date Sat, 14 Aug 2010 03:27:24 +0200
parents 0a0b2872b0de
children 88f5b5c058b5
files tests/test-cat tests/test-cat.out tests/test-cat.t
diffstat 3 files changed, 24 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-cat	Sat Aug 14 03:26:03 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#!/bin/sh
-#
-mkdir t
-cd t
-hg init
-echo 0 > a
-echo 0 > b
-hg ci -A -m m -d "1000000 0"
-hg rm a
-hg cat a
-hg cat --decode a # more tests in test-encode
-echo 1 > b
-hg ci -m m -d "1000000 0"
-echo 2 > b
-hg cat -r 0 a
-hg cat -r 0 b
-hg cat -r 1 a
-hg cat -r 1 b
--- a/tests/test-cat.out	Sat Aug 14 03:26:03 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-adding a
-adding b
-0
-0
-0
-0
-a: No such file in rev 03f6b0774996
-1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-cat.t	Sat Aug 14 03:27:24 2010 +0200
@@ -0,0 +1,24 @@
+  $ mkdir t
+  $ cd t
+  $ hg init
+  $ echo 0 > a
+  $ echo 0 > b
+  $ hg ci -A -m m -d "1000000 0"
+  adding a
+  adding b
+  $ hg rm a
+  $ hg cat a
+  0
+  $ hg cat --decode a # more tests in test-encode
+  0
+  $ echo 1 > b
+  $ hg ci -m m -d "1000000 0"
+  $ echo 2 > b
+  $ hg cat -r 0 a
+  0
+  $ hg cat -r 0 b
+  0
+  $ hg cat -r 1 a
+  a: No such file in rev 03f6b0774996
+  $ hg cat -r 1 b
+  1