changeset 2141:db617700d318

tests: move "test setup" script into a 'testlib' directory This will avoid cluttering the tests directory.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 07 Mar 2017 12:04:05 +0100
parents d31ad31e456b
children 994d81caec68
files tests/test-topic-dest.t tests/test-topic-push.t tests/test-topic-stack-data.t tests/test-topic-stack.t tests/test-topic-tutorial.t tests/test-topic.t tests/testlib tests/testlib/topic_setup.sh
diffstat 7 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-topic-dest.t
+++ b/tests/test-topic-dest.t
@@ -1,4 +1,4 @@
-  $ . "$TESTDIR/testlib"
+  $ . "$TESTDIR/testlib/topic_setup.sh"
 
   $ hg init jungle
   $ cd jungle
--- a/tests/test-topic-push.t
+++ b/tests/test-topic-push.t
@@ -1,4 +1,4 @@
-  $ . "$TESTDIR/testlib"
+  $ . "$TESTDIR/testlib/topic_setup.sh"
 
   $ cat << EOF >> $HGRCPATH
   > [ui]
--- a/tests/test-topic-stack-data.t
+++ b/tests/test-topic-stack-data.t
@@ -1,7 +1,7 @@
 Setup
 =====
 
-  $ . "$TESTDIR/testlib"
+  $ . "$TESTDIR/testlib/topic_setup.sh"
 
   $ hg init test-list
   $ cd test-list
--- a/tests/test-topic-stack.t
+++ b/tests/test-topic-stack.t
@@ -1,4 +1,4 @@
-  $ . "$TESTDIR/testlib"
+  $ . "$TESTDIR/testlib/topic_setup.sh"
 
 Initial setup
 
--- a/tests/test-topic-tutorial.t
+++ b/tests/test-topic-tutorial.t
@@ -7,7 +7,7 @@
 
 .. Some Setup::
 
-  $ . "$TESTDIR/testlib"
+  $ . "$TESTDIR/testlib/topic_setup.sh"
   $ hg init server
   $ cd server
   $ cat >> .hg/hgrc << EOF
--- a/tests/test-topic.t
+++ b/tests/test-topic.t
@@ -1,4 +1,4 @@
-  $ . "$TESTDIR/testlib"
+  $ . "$TESTDIR/testlib/topic_setup.sh"
 
   $ hg init pinky
   $ cd pinky
rename from tests/testlib
rename to tests/testlib/topic_setup.sh
--- a/tests/testlib
+++ b/tests/testlib/topic_setup.sh
@@ -2,7 +2,7 @@
 
 # This file holds logic that is used in many tests.
 # It can be called in a test like this:
-#  $ . "$TESTDIR/testlib"
+#  $ . "$TESTDIR/testlib/topic_setup.sh"
 
 # Enable obsolete markers and enable extensions
 cat >> $HGRCPATH << EOF