File: lib-restricts

package info (click to toggle)
dgit 3.11~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,860 kB
  • ctags: 522
  • sloc: perl: 7,502; sh: 2,793; makefile: 113
file content (22 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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-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 () {
	schroot -l -c build 2>&1 >/dev/null || return 1
}

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