chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog: start 7.1~
[dgit.git]
/
tests
/
lib-restricts
diff --git
a/tests/lib-restricts
b/tests/lib-restricts
index bffe13a2b1e9beafe37de3bf7f63555cff075b45..5d32288217f01ac41350422731093b1858d723fa 100644
(file)
--- a/
tests/lib-restricts
+++ b/
tests/lib-restricts
@@
-6,6
+6,12
@@
t-restriction-x-dgit-intree-only () {
return 1
}
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'
t-restriction-x-dgit-git-only () {
if test -d .git; then return 0; fi
echo 'not running out of git clone'
@@
-13,6
+19,8
@@
t-restriction-x-dgit-git-only () {
}
t-restriction-x-dgit-schroot-build () {
}
t-restriction-x-dgit-schroot-build () {
+ # 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
}
schroot -l -c build 2>&1 >/dev/null || return 1
}
@@
-20,3
+28,7
@@
t-restriction-x-dgit-unfinished () {
echo 'unfinished test, or unfinished feature'
return 1
}
echo 'unfinished test, or unfinished feature'
return 1
}
+
+t-restriction-hint-testsuite-triggers () {
+ :
+}