X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Fusing-intree;h=0235c2098fa8ad4f364ed23d6ca8cb056a198af4;hp=26d5812c22728c42206c8b09ce8da20b6e60dc8b;hb=fd18e72ae4857dea79a492c7047af611ece9d1d5;hpb=1f0e14f2af07576c71e674a946b84f60f594e653 diff --git a/tests/using-intree b/tests/using-intree index 26d5812c..0235c209 100755 --- a/tests/using-intree +++ b/tests/using-intree @@ -1,5 +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 pwd=`pwd` -export DGIT_TEST_INTREE="$pwd" PERLLIB="$pwd${PERLLIB:+:}${PERLLIB}" +export DGIT_TEST_INTREE="$pwd" exec "$@"