17 lines: ${BASH_LINENO[*]}
18 files: ${BASH_SOURCE[*]}
25 trap 'test $? = 0 || t-report-failure' EXIT
27 t-filter-out-git-hyphen-dir
31 : ${DGIT_TEST_DEBUG=-D}
32 export DGIT_TEST_DEBUG
34 : ${DGIT_TEST_DISTRO+ ${distro=${DGIT_TEST_DISTRO}}}
36 export GIT_COMMITTER_DATE='1515000000 +0100'
37 export GIT_AUTHOR_DATE='1515000000 +0100'
41 testname="${DGIT_TEST_TESTNAME-${0##*/}}"
42 export DGIT_TEST_TROOT=$troot
45 if [ x"$tmp" = x ]; then
46 export DGIT_TEST_BYHAND=1
49 tmp=tests/tmp/$testname
52 elif [ "x$DGIT_TEST_TMPBASE" != x ]; then
53 tmpbase="$DGIT_TEST_TMPBASE"
61 test -f $tmp/.save-env || \
62 env -0 >$tmp/.save-env
66 export DEBCHANGE_VENDOR=dpkg
69 mkdir -p $tmp/incoming
70 cat <<END >$tmp/dput.cf
73 incoming = $tmp/incoming
77 : ${t_archive_method:=aq}
78 : ${tagpfx:=archive/test-dummy}
79 : ${suitespecs:=sid:unstable}
82 GIT_COMMITTER_DATE="$(( ${GIT_COMMITTER_DATE%% *} + 1 )) ${GIT_COMMITTER_DATE#* }"
83 GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE"
87 local mpat="$1"; shift
90 LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output
91 local ps="${PIPESTATUS[*]}"
95 "0 0") fail "command unexpectedly succeeded (instead of: $mpat)" ;;
97 *) fail "tee failed" ;;
100 t-grep-mpat "$mpat" $tmp/t.output
111 E:*) grepper=egrep ;;
112 F:*) grepper=fgrep ;;
113 *) fail "bad mpat prefix in $mpat";;
119 $grepper -e "$mpat" "$file" ||
120 fail "message not found"
123 t-expect-push-fail () {
124 local mpat="$1"; shift
126 local triedpush; triedpush=`git rev-parse HEAD`
129 t-expect-fail "$mpat" "$@"
131 diff $tmp/show-refs.{pre,post}-push
133 t-git-objects-not-present '' $triedpush
135 eval "$t_expect_push_fail_hook"
138 t-git-objects-not-present () {
139 # t-git-objects-not-present GITDIR|'' OBJID [...]
140 # specifying '' means the repo for package $p
141 local gitdir="${1-$dgitrepo}"
143 if ! [ -e "$gitdir" ]; then return; fi
146 t-expect-fail 'unable to find' \
152 local whichoutput=$1; shift
153 local whichrepo=${1-$dgitrepo}
154 local outputfile="$tmp/show-refs.$whichoutput"
157 if test -d $whichrepo; then
165 local edittree=$1.edit
166 if test -d "$edittree"; then
167 cp -a "$edittree"/* .
175 t-untar $troot/worktrees/${p}_$1
178 t-select-package () {
180 dgitrepo=$tmp/git/$p.git
187 local gs=$troot/git-srcs/${p}_$v.git
188 (set -e; cd $tmp/git; t-untar $gs)
193 (set -e; cd $tmp/git; tar xf $troot/git-template.tar)
196 t-salsa-add-remote () {
197 local d=$tmp/salsa/$p
199 (set -e; cd $d; git init --bare)
200 git remote add ${1-origin} $d
203 t-git-merge-base () {
204 git merge-base $1 $2 || test $? = 1
208 # t-has-ancestor ANCESTOR
209 # (CHILD is implicit, HEAD)
210 local now; now=`git rev-parse HEAD`
211 local ancestor; ancestor=`git rev-parse $1^{}`
212 local mbase; mbase=`t-git-merge-base $ancestor $now`
213 if [ x$mbase != x$ancestor ]; then
214 fail "not ff $ancestor..$now, $mbase != $ancestor"
218 t-has-parent-or-is () {
219 # t-has-parent-or-is CHILD PARENT
223 parents=$(git show --pretty=format:' %P %H ' "$child")
224 parent=$(git rev-parse "$parent~0")
227 *) fail "child $child lacks parent $parent" ;;
231 t-prep-newpackage () {
238 if ! git show-ref --verify --quiet refs/heads/master; then
239 git branch -m dgit/sid master
247 t-archive-none-$t_archive_method
249 t-archive-none-aq () {
250 mkdir -p $tmp/aq/dsc_in_suite $tmp/mirror/pool/main
256 for suitespec in $suitespecs; do
257 local suite=${suitespec%%:*}
258 local sname=${suitespec#*:}
260 >$tmp/aq/package.$suite.$p
261 t-aq-archive-updated $suite $p
263 >$tmp/aq/package.new.$p
264 t-aq-archive-updated new $p
266 ln -sf $suite $tmp/aq/dsc_in_suite/$sname
268 cat <<END >>$tmp/aq/suites
271 "archive" : "ftp-master",
272 "codename" : "$suite",
285 cat <<END >>$tmp/aq/suites
291 t-aq-archive-updated () {
294 local suitedir=$tmp/aq/dsc_in_suite/$suite
296 perl <$tmp/aq/package.$suite.$p >$suitedir/$p -wne '
300 m{^(\S+) (\w+) ([^ \t/]+)/(\S+)} or die;
308 my $json = JSON->new->canonical();
309 print $json->encode(\@v) or die $!;
314 t-archive-process-incoming () {
316 mv $tmp/incoming/${p}_* $tmp/mirror/pool/main/
317 t-archive-query "$suite"
322 local dscf=main/${p}_${v}.dsc
323 t-archive-query-$t_archive_method "$suite" "$p" "$v" "$dscf"
325 t-archive-query-aq () {
330 local sha; sha=`sha256sum <$tmp/mirror/pool/$dscf`
331 echo "${v} ${sha% -} $dscf" >>$tmp/aq/package.$suite.${p}
332 t-aq-archive-updated $suite $p
338 local dscf=${p}_$2.dsc
339 rm -f $tmp/mirror/pool/main/${p}_*
340 ln $troot/pkg-srcs/${p}_${2%-*}* $tmp/mirror/pool/main/
341 t-archive-query $suite
344 (set -e; cd $tmp/extract; dpkg-source -x ../mirror/pool/main/$dscf)
347 t-git-dir-time-passes () {
348 touch -d 'last year' $dgitrepo
352 local gitdir=$dgitrepo
355 if test -e "$gitdir"; then fail "$gitdir exists"; fi
358 public) wantstat='7[75]5' ;;
359 secret) wantstat='7[70]0' ;;
360 *) fail "$1 t-git-dir-check ?" ;;
362 gotstat=`stat -c%a $gitdir`
364 *$wantstat) return ;;
365 *) fail "$gitdir has mode $gotstat, expected $wantstat" ;;
369 t-expect-fsck-fail () {
370 echo >>$tmp/fsck.expected-errors "$1"
374 local fsckerrs=$(git rev-parse --git-dir)/dgit-test-fsck.errs
377 LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \
379 ps="${PIPESTATUS[*]}"
383 if [ -f $tmp/fsck.expected-errors ]; then
384 pats=(-w -f $tmp/fsck.expected-errors)
388 pats+=(-e 'notice: HEAD points to an unborn branch')
389 pats+=(-e 'notice: No default references')
392 grep -v "${pats[@]}" $fsckerrs
396 1) ;; # no unexpected errors
397 0) fail "unexpected messages from git-fsck" ;;
398 *) fail "grep of git-fsck failed" ;;
405 for d in $tmp/*/.git $tmp/git/*.git; do
413 : '========================================'
419 t-save-artifacts () {
420 artifacts="$AUTOPKGTEST_ARTIFACTS"
421 if [ x"$artifacts" = x ]; then return; fi
422 if [ x"tmp" = x ]; then return; fi
423 GZIP=-1v tar -C "$tmp" -zc -f "$artifacts/${0##*/}.tar.gz" \
427 t-rm-dput-dropping () {
428 rm -f $tmp/${p}_${v}_*.upload
432 local dgit=${DGIT_TEST-dgit}
435 {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{'
436 $dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \
437 ${dgit_config_debian_alias-"--config-lookup-explode=dgit-distro.debian.alias-canon"} \
438 ${DGIT_GITDEBREBASE_TEST+--git-debrebase=}${DGIT_GITDEBREBASE_TEST} \
439 ${distro+${distro:+-d}}${distro--dtest-dummy} \
440 $DGIT_TEST_OPTS $DGIT_TEST_DEBUG \
441 -kBCD22CD83243B79D3DFAC33EA3DBCBC039B13D8A $t_dgit_xopts "$@"
442 : '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
449 (export LC_ALL=C.UTF-8
450 if [ "$DGIT_TEST_INTREE" ]; then
451 make -C $DGIT_TEST_INTREE $page.$section.view
458 diff --exclude=.git --exclude=.pc -ruN $*
461 t-files-notexist () {
470 t-cloned-fetched-good () {
471 t-diff-nogit ../extract/$p-${v%-*} .
472 t-clean-on-branch dgit/sid
475 refs/heads/dgit/sid \
476 refs/remotes/dgit/dgit/sid
477 t-refs-notexist refs/dgit/unstable refs/remotes/dgit/dgit/unstable
481 printf "%s${1:+\n}" "$1" >$tmp/t.want
484 diff $tmp/t.want $tmp/t.got
487 t-clean-on-branch () {
488 t-output "## $1" git status -b --porcelain
496 local import=IMPORT.${DGIT_TEST_TESTNAME-${0##*/}}
497 exec 4>$tmp/$import.new
500 for vn in $savevars; do
501 perl >&4 -"I$root" -MDebian::Dgit -e '
502 printf "%s=%s\n", $ARGV[0], shellquote $ARGV[1]
503 ' $vn "$(eval "printf '%s\n' \"\$$vn\"")"
506 (set -e; cd $tmp; tar cf $import.tar $savedirs)
508 printf >&4 "\n%s\n" "$importeval"
510 mv -f $tmp/$import.new $tmp/$import
518 if [ "x$tmpbase" = x ]; then
519 # ADTTMP was set on entry to tests/lib, so we
520 # are not sharing tmp area between tests
522 lock="$tmp/.dummy.lock"
524 setupsrc="$tmpbase/$setupname"
525 lock="$setupsrc.lock"
528 local simport="$setupsrc/IMPORT.$setupname"
530 if ! [ -e "$simport" ]; then
531 with-lock-ex -w "$lock" \
532 xargs -0 -a $tmp/.save-env \
535 setupname="$1"; shift
537 if [ -e "$simport" ]; then exit 0; fi
539 "tests/setup/$setupname"
540 ' x "$root" "$setupname" "$simport"
543 if [ "x$setupsrc" != "x$tmp" ]; then
544 (set -e; cd $tmp; tar xf "$simport.tar")
550 t-git-get-ref-exact () {
552 # does not dereference, unlike t-git-get-ref
555 *) fail "t-git-get-ref-exact bad $ref" ;;
557 git for-each-ref --format='%(objectname)' "[r]efs/${ref#refs/}"
564 *) fail "t-git-get-ref bad $ref" ;;
566 (git show-ref -d $1 || test $? = 1) | perl -ne '
567 $x = $1 if m#^(\w+) \Q'$1'\E(?:\^\{\})?$#;
568 END { print "$x\n" if length $x; }
572 t-ref-same-exact () {
574 local val; val=`t-git-get-ref-exact $name`
575 t-ref-same-val "$name" $val
580 local val; val=`t-git-get-ref $name`
581 t-ref-same-val "$name" $val
585 local val; val=`git rev-parse HEAD`
586 t-ref-same-val HEAD $val
592 case "${t_ref_val-unset}" in
595 *) fail "ref varies: ($name)\
596 ${val:-nothing} != ${t_ref_val:-nothing} (${t_ref_names[*]})" ;;
599 t_ref_names+=("$name")
602 t-refs-same-start () {
617 val=`t-git-get-ref $g`
618 if [ "x$val" != x ]; then
619 fail "ref $g unexpectedly exists ($val)"
625 echo refs/tags/$tagpfx/${v//\~/_}
629 git log -n1 --pretty=format:"$1" "$2"
632 t-sametree-parent () {
635 local ctree; ctree=$(t-format-ref '%T' "$ref")
638 for parent in $(t-format-ref '%P' "$ref"); do
639 local ptree; ptree=$(t-format-ref '%T' "$parent")
640 if [ "x$ptree" = "x$ctree" ]; then
644 case "$psame" in ""|" * *") break ;; esac
650 t-check-pushed-master () {
651 local master; master=`t-git-get-ref refs/heads/master`
652 if [ x$master = x$t_ref_val ]; then return; fi
653 if [ x$master = x ]; then fail "failed to push master"; fi
654 # didn't update master, it must be not FF
655 local mbase; mbase=`t-git-merge-base $master $t_ref_val`
656 if [ x$mbase = x$master ]; then fail "failed to ff master"; fi
659 t-push-was-source-only () {
661 t-files-notexist $tmp/incoming/${p}_${v}_*.deb \
662 $tmp/incoming/${p}_${v}_*.udeb
663 # we permit _source.buildinfo files; see test_changes_source_only()
664 for f in $tmp/incoming/${p}_${v}_*.buildinfo; do
667 *_source.buildinfo) ;;
668 *) fail "non-source-only file $f exists!" ;;
676 local suite=${2:-sid}
682 t-pushed-good-core () {
686 refs/remotes/dgit/dgit/$suite
688 refs/heads/dgit/unstable \
689 refs/remotes/dgit/dgit/unstable
690 (set -e; cd $dgitrepo
694 ${t_check_pushed_master:- : NOT-DRS-NO-CHECK-PUSHED-MASTER}
698 git verify-tag `t-v-tag`
701 t-splitbrain-pushed-good--unpack () {
706 ln -s $tmp/mirror/pool/main/*.orig*.tar* .
707 ln -s $tmp/incoming/*.orig*.tar* . ||:
708 ln -s $incoming_dsc .
709 ln -s ${incoming_dsc/.dsc/.debian.tar}* .
710 dpkg-source "$@" -x *.dsc
713 git fetch ../../$p "refs/tags/*:refs/tags/*"
716 t-splitbrain-pushed-good--checkprep () {
718 git rm --cached -r --ignore-unmatch .pc
721 t-splitbrain-pushed-good--checkdiff () {
723 t-splitbrain-pushed-good--checkprep
724 t-output "" git diff --stat --cached $tag
727 t-splitbrain-pushed-good-start () {
728 dep14tag=refs/tags/test-dummy/${v//\~/_}
730 t-output "" git status --porcelain
732 t-refs-same $dep14tag
733 (set -e; cd $dgitrepo; t-refs-same $dep14tag)
734 git merge-base --is-ancestor $dep14tag $dgittag
737 t-ref-same refs/heads/split.p
738 case "$(t-git-get-ref refs/heads/split.b)" in
740 "$(git rev-parse refs/heads/split.p^0)") ;;
741 "$(git rev-parse refs/heads/split.p^1)") ;;
748 t-splitbrain-pushed-good--unpack
749 t-splitbrain-pushed-good--checkdiff $dgittag
751 t-splitbrain-pushed-good-end-made-dep14 () {
752 t-splitbrain-pushed-good--checkdiff $dep14tag
756 t-splitbrain-rm-gitignore-patch () {
758 next unless $_ eq "auto-gitignore\n";
761 rename "debian/patches/$_", "../t-auto-gitignore" or die $!;
763 ' debian/patches/series
766 t-gbp-pushed-good () {
767 local suite=${1:-sid}
768 t-splitbrain-pushed-good-start
770 # Right, now we want to check that the maintainer tree and
771 # the dgit tree differ in exactly the ways we expect. We
772 # achieve this by trying to reconstruct the maintainer tree
773 # from the dgit tree.
775 # So, unpack it withut the patches applied
776 t-splitbrain-pushed-good--unpack --skip-patches
778 # dgit might have added a .gitignore patch, which we need to
780 t-splitbrain-rm-gitignore-patch
782 # Now the result should differ only in non-debian/ .gitignores
783 t-splitbrain-pushed-good--checkprep
784 git diff --cached --name-only $dep14tag >../changed
786 next if !m#^debian/# && m#(^|/)\.gitignore#;
790 # If we actually apply the gitignore patch by hand, it
792 if [ -f ../t-auto-gitignore ]; then
793 patch --backup-if-mismatch -p1 -u <../t-auto-gitignore
796 t-splitbrain-pushed-good-end-made-dep14
799 t-unapplied-pushed-good () {
800 t-splitbrain-pushed-good-start
801 t-splitbrain-pushed-good--unpack --skip-patches
802 t-splitbrain-pushed-good-end-made-dep14
805 t-dpm-pushed-good () {
806 t-splitbrain-pushed-good-start
807 t-splitbrain-pushed-good--unpack
808 t-splitbrain-rm-gitignore-patch
809 t-splitbrain-pushed-good-end-made-dep14
812 t-commit-build-push-expect-log () {
818 t-dgit push --new 2>&1 |tee $tmp/push.log
819 t-grep-mpat "$mpat" $tmp/push.log
826 use Dpkg::Control::Hash;
827 my $h = new Dpkg::Control::Hash allow_pgp=>1;
828 $h->parse(\*STDIN,"'"$file"'");
829 my $val = $h->{"'$field'"},"\n";
830 die "'"$file $field"'" unless defined $val;
836 export DGIT_TEST_DISTRO=''
838 t-git-config dgit-suite.unstable.distro test-dummy
848 "") '$var'="$tstunt" ;;
849 *) '$var'="$tstunt:$'$var'" ;;
855 t-tstunt--save-real () {
866 p="${p/:"$tmp/tstunt":/:}"
878 *) fail "did not find $f on PATH $PATH" ;;
881 local varname=${f//[^_0-9a-zA-Z]/_}
882 varname=DGIT_TEST_REAL_${varname^^}
885 : \${$varname:=\$real}
891 local tstunt=$tmp/tstunt
892 t-stunt-envvar PATH $tstunt
893 t-stunt-envvar PERLLIB $tstunt
896 t-tstunt--save-real $f
898 local d="$tstunt/${f%/*}"
900 ln -sf "$troot/tstunt/$f" "$d"/.
904 t-tstunt-parsechangelog () {
905 t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
908 t-tstunt-lintian () {
912 t-tstunt-debuild () {
917 local dsc=${p}_${v}.dsc
918 incoming_dsc=$tmp/incoming/$dsc
923 local val; val=`t-822-field $incoming_dsc Dgit`
926 die "Dgit $_ ?" unless m/^\w+\b/;
927 print $&,"\n" or die $!;
929 t-ref-same-val $incoming_dsc "$val"
936 debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc || test $? = 1) \
940 t-gbp-unapplied-pq2qc () {
941 # does `gbp pq export'
942 # commits the resulting debian/patches on qc/BRANCH
943 # leaves us on qc/BRANCH (eg "qc/quilt-tip"))
944 # qc/BRANCH is not fast-forwarding
948 branch=`git symbolic-ref HEAD`
949 branch=${branch#refs/heads/}
952 */*) fail "unexpected branch $branch" ;;
955 git branch -f qc/$branch
956 git checkout qc/$branch
957 git add debian/patches
958 git commit -m 'Commit patch queue'
961 t-git-pseudo-merge () {
962 # like git merge -s ours
963 if [ ! "$git_pseuomerge_opts" ]; then
964 if git merge --help \
965 | grep -q allow-unrelated-histories; then
966 git_pseuomerge_opts='--allow-unrelated-histories'
968 git_pseuomerge_opts+=' -s ours'
970 git merge $git_pseuomerge_opts "$@"
973 t-gbp-example-prep-no-ff () {
974 t-tstunt-parsechangelog
975 t-archive example 1.0-1
983 git checkout -b patch-queue/quilt-tip-2 patch-queue/quilt-tip
986 echo '/* some comment */' >>src.c
988 git commit -m 'Add a comment to an upstream file'
990 t-gbp-unapplied-pq2qc
992 t-commit 'some updates' 1.0-2
995 t-gbp-example-prep () {
996 t-gbp-example-prep-no-ff
999 -m 'Pseudo-merge to make descendant of archive' \
1000 remotes/dgit/dgit/sid
1003 t-make-badcommit () {
1005 git cat-file commit HEAD | \
1006 perl -pe 's/^committer /commiter /' | \
1007 git hash-object -w -t commit --stdin
1009 t-expect-fsck-fail $badcommit
1014 v=${2:-${majorv:-1}.$revision}
1015 dch --force-distribution -v$v --distribution ${3:-unstable} "$1"
1016 git add debian/changelog
1018 revision=$(( ${revision-0} + 1 ))
1022 local cmd="$1"; shift
1023 local suite=${1-unstable}
1024 $cmd -r -D "$suite" ''
1028 t-dch-r-rune t-dch-commit "$@"
1032 faketime @"${GIT_AUTHOR_DATE% *}" dch "$@"
1033 git commit -m "dch $*" debian/changelog
1037 git config --global "$@"
1041 t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext %S "
1042 t-git-config dgit-distro.test-dummy.git-check true
1043 t-git-config dgit-distro.test-dummy.git-create true
1044 t-git-config dgit-distro.test-dummy.dgit-tag-format new,old,maint
1045 cp $troot/gnupg/{dd.gpg,dm.gpg,dm.txt} $tmp/.
1046 cp $troot/suites $tmp/.
1047 cp $troot/suites $tmp/suites-master
1049 export t_check_pushed_master=t-check-pushed-master
1051 drs_dispatch=$tmp/distro=test-dummy
1054 if [ "x$DGIT_TEST_INTREE" != x ]; then
1055 ln -sf "$DGIT_TEST_INTREE" $drs_dispatch/dgit-live
1058 ln -sf $tmp/git $drs_dispatch/repos
1059 ln -sf $tmp/suites $tmp/suites-master $tmp/dm.txt $drs_dispatch/
1060 mkdir -p $drs_dispatch/keyrings
1061 ln -sf $tmp/dd.gpg $drs_dispatch/keyrings/debian-keyring.gpg
1062 ln -sf $tmp/dm.gpg $drs_dispatch/keyrings/debian-maintainers.gpg
1063 ln -sf /bin/true $drs_dispatch/policy-hook
1067 export tagpfx=archive/test-dummy
1068 t-git-config dgit-distro.test-dummy.dgit-tag-format new,maint
1071 export tagpfx=test-dummy
1072 t-git-config dgit-distro.test-dummy.dgit-tag-format old
1077 t-git-config dgit-distro.test-dummy.ssh "$troot/dsd-ssh"
1078 t-git-config dgit-distro.test-dummy.git-check ssh-cmd
1079 t-git-config dgit-distro.test-dummy.git-create true
1080 t-git-config dgit-distro.test-dummy.git-url \
1081 "ext::$troot/dsd-ssh X %S /dgit/test-dummy/repos"
1083 t-git-config dgit-distro.test-dummy.diverts.drs /drs
1084 t-git-config dgit-distro.test-dummy/drs.ssh "$troot/ssh"
1085 t-git-config dgit-distro.test-dummy/drs.git-url $tmp/git
1086 t-git-config dgit-distro.test-dummy/drs.git-check ssh-cmd
1087 t-git-config dgit-distro.test-dummy/drs.git-create ssh-cmd
1089 echo 'no-such-package* drs' >$drs_dispatch/diverts
1093 : '(((((((((((((((((((((((((((((((((((((((('
1094 ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@"
1095 : '))))))))))))))))))))))))))))))))))))))))'
1098 t-policy-nonexist () {
1099 ln -sf no-such-file-or-directory $drs_dispatch/policy-hook
1102 t-make-hook-link () {
1103 local hook=$1 # in infra/
1105 hook=${DGIT_INFRA_PFX}$hook
1108 *) hook=`type -P $hook` ;;
1110 ln -sf "$hook" $linkpath
1115 t-make-hook-link $policyhook $drs_dispatch/policy-hook
1120 t-policy dgit-repos-policy-debian
1123 t-policy-admin create-db
1126 t-policy-periodic () {
1127 : '(((((((((((((((((((((((((((((((((((((((('
1128 ${DGIT_REPOS_SERVER_TEST-dgit-repos-server} \
1129 test-dummy $drs_dispatch '' --cron
1130 : '))))))))))))))))))))))))))))))))))))))))'
1134 local restriction=$1
1135 (cd $root; t-restriction-$restriction >&2)
1139 : "Hopefully installed: $*"
1146 export DGIT_TEST_TESTNAME="$testname"
1147 export DGIT_TEST_TMPBASE="$tmpbase"
1155 t-chain-test "${t#*-}"
1158 t-git-config dgit.default.old-dsc-distro test-dummy
1160 for import in ${autoimport-gnupg}; do
1164 t-setup-import $import