tests: unify test-symlink-addremove
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 12 Aug 2010 22:58:46 +0900
changeset 11809 97b391bb6379
parent 11808 3f6cf4cb3dca
child 11810 8c01fc10cb67
tests: unify test-symlink-addremove
tests/test-symlink-addremove
tests/test-symlink-addremove.out
tests/test-symlink-addremove.t
--- a/tests/test-symlink-addremove	Thu Aug 12 22:57:06 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-"$TESTDIR/hghave" symlink || exit 80
-
-hg init a
-cd a
-
-echo '% directory moved and symlinked'
-mkdir foo
-touch foo/a
-hg ci -Ama
-mv foo bar
-ln -s bar foo
-echo '% now addremove should remove old files'
-hg addremove
--- a/tests/test-symlink-addremove.out	Thu Aug 12 22:57:06 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-% directory moved and symlinked
-adding foo/a
-% now addremove should remove old files
-adding bar/a
-adding foo
-removing foo/a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-symlink-addremove.t	Thu Aug 12 22:58:46 2010 +0900
@@ -0,0 +1,20 @@
+  $ "$TESTDIR/hghave" symlink || exit 80
+
+  $ hg init a
+  $ cd a
+
+directory moved and symlinked
+
+  $ mkdir foo
+  $ touch foo/a
+  $ hg ci -Ama
+  adding foo/a
+  $ mv foo bar
+  $ ln -s bar foo
+
+now addremove should remove old files
+
+  $ hg addremove
+  adding bar/a
+  adding foo
+  removing foo/a