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'
48 restriction-gencontrol () {
52 gencontrol-add-deps () {
54 dependencies+="${dependencies:+, }$dep"
58 dependencies-gencontrol () {
59 for dep in "$deps"; do
61 NO-DGIT) dependencies='chiark-utils-bin' ;;
62 GDR) gencontrol-add-deps \
63 git-debrebase git-buildpackage faketime
65 *) gencontrol-add-deps "$dep" ;;
70 test-done-gencontrol () {
72 add_Depends="$dependencies" \
73 perl <debian/tests/control.in -wpe '
76 s{$}{ $ENV{"add_$h"} // "" }e;
79 case "$restrictions" in
80 ?*) echo "Restrictions:$restrictions" ;;
83 key=$(printf "%s" "$stanza" | sha256sum)
86 stanza_$key=\"\$stanza\"
87 tests_$key+=\" \${t#tests/tests/}\"
89 keys=" ${keys/ $key /}"
93 finish-gencontrol () {
99 printf "Tests:%s\n%s\n\n" "$tests" "$stanza"
107 /^: t-enumerate-tests-end$/q;
112 for t in $(run-parts --list tests/tests); do
114 for r in $(seddery 's/^t-restrict //p'); do
117 for deps in $(seddery 's/^t-dependencies //p'); do