chiark / gitweb /
Merge branch 'wip.tutorials' into wip
[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 }
18
19 t-restriction-x-dgit-unfinished () {
20         echo 'unfinished test, or unfinished feature'
21         return 1
22 }