changeset 12431:d911aa2b8570

tests: unify test-hgk
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:41:32 -0500
parents 60738066e37a
children 7f3af5da4e6c
files tests/test-hgk tests/test-hgk.out tests/test-hgk.t
diffstat 3 files changed, 18 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-hgk	Sun Sep 26 13:41:32 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-echo "[extensions]" >> $HGRCPATH
-echo "hgk=" >> $HGRCPATH
-
-hg init repo
-cd repo
-echo a > a
-hg ci -Am adda
-hg debug-cat-file commit 0
-
--- a/tests/test-hgk.out	Sun Sep 26 13:41:32 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-adding a
-tree a0c8bcbbb45c
-parent 000000000000
-author test 0 0
-committer test 0 0
-revision 0
-branch default
-
-adda
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-hgk.t	Sun Sep 26 13:41:32 2010 -0500
@@ -0,0 +1,18 @@
+Minimal hgk check
+
+  $ echo "[extensions]" >> $HGRCPATH
+  $ echo "hgk=" >> $HGRCPATH
+  $ hg init repo
+  $ cd repo
+  $ echo a > a
+  $ hg ci -Am adda
+  adding a
+  $ hg debug-cat-file commit 0
+  tree a0c8bcbbb45c
+  parent 000000000000
+  author test 0 0
+  committer test 0 0
+  revision 0
+  branch default
+  
+  adda