summaryrefslogtreecommitdiff
path: root/tests/using-intree
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-03 12:02:42 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 11:54:10 +0100
commite270c55f02ce8839a6a2f4fbc316b213e4eaa9d1 (patch)
tree091e3123d08b92ee2a7c3efb14971aa84a9832ae /tests/using-intree
parent6913c854ca0f3eb901c39c74b74d7f0344318f72 (diff)
Tests: New tests/adhoc helper; document tests/using-intree too
Diffstat (limited to 'tests/using-intree')
-rwxr-xr-xtests/using-intree12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/using-intree b/tests/using-intree
index b907252..0235c20 100755
--- a/tests/using-intree
+++ b/tests/using-intree
@@ -1,4 +1,16 @@
#!/bin/bash
+#
+# usage:
+# cd .../dgit.git
+# tests/using-intree tests/test/some-test
+# or
+# cd .../dgit.git
+# tests/using-intree tests/run-all
+#
+# effects:
+# sets DGIT_TEST_INTREE which causes tests/lib to have test scripts
+# using programs etc. from the working tree
+
set -e
pwd=`pwd`
export DGIT_TEST_INTREE="$pwd"