tests: unify test-paths
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 12 Aug 2010 15:18:44 +0900
changeset 11785 7d9be960cd9a
parent 11784 8a1943685dfb
child 11786 38e3f973a4f3
tests: unify test-paths
tests/test-paths
tests/test-paths.out
tests/test-paths.t
--- a/tests/test-paths	Thu Aug 12 15:12:25 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-#!/bin/sh
-hg init a
-hg clone a b
-cd a
-echo '[paths]' >> .hg/hgrc
-echo 'dupe = ../b' >> .hg/hgrc
-hg in dupe | fgrep '../'
-cd ..
-hg -R a in dupe | fgrep '../'
-true
--- a/tests/test-paths.out	Thu Aug 12 15:12:25 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-updating to branch default
-0 files updated, 0 files merged, 0 files removed, 0 files unresolved
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-paths.t	Thu Aug 12 15:18:44 2010 +0900
@@ -0,0 +1,15 @@
+  $ hg init a
+  $ hg clone a b
+  updating to branch default
+  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ cd a
+  $ echo '[paths]' >> .hg/hgrc
+  $ echo 'dupe = ../b' >> .hg/hgrc
+  $ hg in dupe
+  comparing with .*/test-paths.t/b
+  no changes found
+  $ cd ..
+  $ hg -R a in dupe
+  comparing with .*/test-paths.t/b
+  no changes found
+  $ true