summaryrefslogtreecommitdiff
path: root/tests/lib-restricts
blob: 5d32288217f01ac41350422731093b1858d723fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

t-restriction-x-dgit-intree-only () {
	if [ "x$DGIT_TEST_INTREE" != x ]; then return 0; fi
	echo 'running installed package version'
	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'
	return 1
}

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
}

t-restriction-x-dgit-unfinished () {
	echo 'unfinished test, or unfinished feature'
	return 1
}

t-restriction-hint-testsuite-triggers () {
	:
}