chiark / gitweb /
1eb166e424a68f093929f8d4662708534fb9a7b0
[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 -l -c build 2>&1 >/dev/null || return 1
17 }