chiark / gitweb /
Cope with new git-buildpackage which provides gbp, rather than the eponymous command...
[dgit.git] / tests / lib-restricts
1 #!/bin/sh
2
3 t-restriction-x-dgit-intree-only () {
4         if [ "x$DGIT_TEST_INTREE" != x ]; then return 0; fi
5         echo 'running installed package version'
6         return 1
7 }
8
9 t-restriction-x-dgit-git-only () {
10         if test -d .git; then return 0; fi
11         echo 'not running out of git clone'
12         return 1
13 }
14
15 t-restriction-x-dgit-schroot-build () {
16         schroot -la | grep -qxF chroot:build
17 }