diff options
Diffstat (limited to 'tests/using-intree')
-rwxr-xr-x | tests/using-intree | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/using-intree b/tests/using-intree index 70d84e1..0235c20 100755 --- a/tests/using-intree +++ b/tests/using-intree @@ -1,6 +1,17 @@ #!/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 -tree=`pwd` -export DGIT_TEST="$tree/dgit" -export DGIT_REPOS_SERVER_TEST="$tree/dgit-repos-server" +pwd=`pwd` +export DGIT_TEST_INTREE="$pwd" exec "$@" |