16 whynot=$(t-restriction-$r)
23 1.?*) whynots="$whynots${whynots:+; }$whynot" ;;
24 *) fail "restriction $r for $t gave $rc $whynot !"
35 ?*) echo >&2 "SKIP $t $whynots" ;;
43 test-begin-gencontrol () {
45 dependencies='dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, bc, faketime'
48 restriction-gencontrol () {
49 if [ $r = x-dgit-out-of-tree-only ]; then return; fi
53 gencontrol-add-deps () {
55 dependencies+="${dependencies:+, }$dep"
59 dependencies-gencontrol () {
60 for dep in "$deps"; do
62 NO-DGIT) dependencies='chiark-utils-bin, faketime' ;;
63 NO-DEFAULT) dependencies='' ;;
64 GDR) gencontrol-add-deps \
65 git-debrebase git-buildpackage
67 *) gencontrol-add-deps "$dep" ;;
72 test-done-gencontrol () {
74 add_Depends="$dependencies" \
75 perl <debian/tests/control.in -wpe '
78 s{$}{ $ENV{"add_$h"} // "" }e;
81 case "$restrictions" in
82 ?*) echo "Restrictions:$restrictions" ;;
85 key=$(printf "%s" "$stanza" | sha256sum)
88 stanza_$key=\"\$stanza\"
89 tests_$key+=\" \${t#tests/tests/}\"
91 keys=" ${keys/ $key /}"
95 finish-gencontrol () {
101 printf "Tests:%s\n%s\n\n" "$tests" "$stanza"
109 /^: t-enumerate-tests-end$/q;
114 for t in $(run-parts --list tests/tests); do
116 for r in $(seddery 's/^t-restrict //p'); do
119 for deps in $(seddery 's/^t-dependencies //p'); do