summaryrefslogtreecommitdiff
path: root/tests/using-intree
blob: 0235c2098fa8ad4f364ed23d6ca8cb056a198af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"
exec "$@"