X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib-restricts;h=5d32288217f01ac41350422731093b1858d723fa;hb=461ac887006c3e2e4e430f9cca41c0fe2fa0a8fc;hp=64d56a4a023f913513a3b4571593369d09290488;hpb=d929eda43aa0a327d7a3b87c4441d412131e4617;p=dgit.git diff --git a/tests/lib-restricts b/tests/lib-restricts index 64d56a4a..5d322882 100644 --- a/tests/lib-restricts +++ b/tests/lib-restricts @@ -6,6 +6,12 @@ t-restriction-x-dgit-intree-only () { return 1 } +t-restriction-x-dgit-out-of-tree-only () { + if [ "x$DGIT_TEST_INTREE" = x ]; then return 0; fi + echo 'running out of development tree' + return 1 +} + t-restriction-x-dgit-git-only () { if test -d .git; then return 0; fi echo 'not running out of git clone' @@ -13,5 +19,16 @@ t-restriction-x-dgit-git-only () { } t-restriction-x-dgit-schroot-build () { - schroot -l -c build 2>&1 || return 1 + # if DGIT_SCHROOT_CHROOT is set, user wants not to skip this test + if [ "x${DGIT_SCHROOT_CHROOT}" != x ]; then return 0; fi + schroot -l -c build 2>&1 >/dev/null || return 1 +} + +t-restriction-x-dgit-unfinished () { + echo 'unfinished test, or unfinished feature' + return 1 +} + +t-restriction-hint-testsuite-triggers () { + : }