tests: unify test-hgk
authorMatt Mackall <mpm@selenic.com>
Sun, 26 Sep 2010 13:41:32 -0500
changeset 12431 d911aa2b8570
parent 12430 60738066e37a
child 12432 7f3af5da4e6c
tests: unify test-hgk
tests/test-hgk
tests/test-hgk.out
tests/test-hgk.t
--- 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