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 schroot=${DGIT_SCHROOT_CHROOT:-build}
78 # Pretty much any Debian sid snapshot schroot will do.
80 : ${t_archive_method:=aq}
81 : ${tagpfx:=archive/test-dummy}
82 : ${suitespecs:=sid:unstable}
85 GIT_COMMITTER_DATE="$(( ${GIT_COMMITTER_DATE%% *} + 1 )) ${GIT_COMMITTER_DATE#* }"
86 GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE"
90 local mpat="$1"; shift
93 LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output
94 local ps="${PIPESTATUS[*]}"
98 "0 0") fail "command unexpectedly succeeded (instead of: $mpat)" ;;
100 *) fail "tee failed" ;;
103 t-grep-mpat "$mpat" $tmp/t.output
114 E:*) grepper=egrep ;;
115 F:*) grepper=fgrep ;;
116 *) fail "bad mpat prefix in $mpat";;
122 $grepper -e "$mpat" "$file" ||
123 fail "message not found"
126 t-expect-push-fail () {
127 local mpat="$1"; shift
129 local triedpush; triedpush=`git rev-parse HEAD`
132 t-expect-fail "$mpat" "$@"
134 diff $tmp/show-refs.{pre,post}-push
136 t-git-objects-not-present '' $triedpush
138 eval "$t_expect_push_fail_hook"
141 t-git-objects-not-present () {
142 # t-git-objects-not-present GITDIR|'' OBJID [...]
143 # specifying '' means the repo for package $p
144 local gitdir="${1-$dgitrepo}"
146 if ! [ -e "$gitdir" ]; then return; fi
149 t-expect-fail 'unable to find' \
155 local whichoutput=$1; shift
156 local whichrepo=${1-$dgitrepo}
157 local outputfile="$tmp/show-refs.$whichoutput"
160 if test -d $whichrepo; then
168 local edittree=$1.edit
169 if test -d "$edittree"; then
170 cp -a "$edittree"/* .
178 t-untar $troot/worktrees/${p}_$1
181 t-select-package () {
183 dgitrepo=$tmp/git/$p.git
190 local gs=$troot/git-srcs/${p}_$v.git
191 (set -e; cd $tmp/git; t-untar $gs)
196 (set -e; cd $tmp/git; tar xf $troot/git-template.tar)
199 t-salsa-add-remote () {
200 local d=$tmp/salsa/$p
202 (set -e; cd $d; git init --bare)
203 git remote add ${1-origin} $d
206 t-git-merge-base () {
207 git merge-base $1 $2 || test $? = 1
211 # t-has-ancestor ANCESTOR
212 # (CHILD is implicit, HEAD)
213 local now; now=`git rev-parse HEAD`
214 local ancestor; ancestor=`git rev-parse $1^{}`
215 local mbase; mbase=`t-git-merge-base $ancestor $now`
216 if [ x$mbase != x$ancestor ]; then
217 fail "not ff $ancestor..$now, $mbase != $ancestor"
221 t-has-parent-or-is () {
222 # t-has-parent-or-is CHILD PARENT
226 parents=$(git show --pretty=format:' %P %H ' "$child")
227 parent=$(git rev-parse "$parent~0")
230 *) fail "child $child lacks parent $parent" ;;
234 t-prep-newpackage () {
241 if ! git show-ref --verify --quiet refs/heads/master; then
242 git branch -m dgit/sid master
250 t-archive-none-$t_archive_method
252 t-archive-none-aq () {
253 mkdir -p $tmp/aq/dsc_in_suite $tmp/mirror/pool/main
259 for suitespec in $suitespecs; do
260 local suite=${suitespec%%:*}
261 local sname=${suitespec#*:}
263 >$tmp/aq/package.$suite.$p
264 t-aq-archive-updated $suite $p
266 >$tmp/aq/package.new.$p
267 t-aq-archive-updated new $p
269 ln -sf $suite $tmp/aq/dsc_in_suite/$sname
271 cat <<END >>$tmp/aq/suites
274 "archive" : "ftp-master",
275 "codename" : "$suite",
288 cat <<END >>$tmp/aq/suites
294 t-aq-archive-updated () {
297 local suitedir=$tmp/aq/dsc_in_suite/$suite
299 perl <$tmp/aq/package.$suite.$p >$suitedir/$p -wne '
303 m{^(\S+) (\w+) ([^ \t/]+)/(\S+)} or die;
311 my $json = JSON->new->canonical();
312 print $json->encode(\@v) or die $!;
317 t-archive-process-incoming () {
319 mv $tmp/incoming/${p}_* $tmp/mirror/pool/main/
320 t-archive-query "$suite"
325 local dscf=main/${p}_${v}.dsc
326 t-archive-query-$t_archive_method "$suite" "$p" "$v" "$dscf"
328 t-archive-query-aq () {
333 local sha; sha=`sha256sum <$tmp/mirror/pool/$dscf`
334 echo "${v} ${sha% -} $dscf" >>$tmp/aq/package.$suite.${p}
335 t-aq-archive-updated $suite $p
341 local dscf=${p}_$2.dsc
342 rm -f $tmp/mirror/pool/main/${p}_*
343 ln $troot/pkg-srcs/${p}_${2%-*}* $tmp/mirror/pool/main/
344 t-archive-query $suite
347 (set -e; cd $tmp/extract; dpkg-source -x ../mirror/pool/main/$dscf)
350 t-git-dir-time-passes () {
351 touch -d 'last year' $dgitrepo
355 local gitdir=$dgitrepo
358 if test -e "$gitdir"; then fail "$gitdir exists"; fi
361 public) wantstat='7[75]5' ;;
362 secret) wantstat='7[70]0' ;;
363 *) fail "$1 t-git-dir-check ?" ;;
365 gotstat=`stat -c%a $gitdir`
367 *$wantstat) return ;;
368 *) fail "$gitdir has mode $gotstat, expected $wantstat" ;;
372 t-expect-fsck-fail () {
373 echo >>$tmp/fsck.expected-errors "$1"
377 local fsckerrs=$(git rev-parse --git-dir)/dgit-test-fsck.errs
380 LC_MESSAGES=C git fsck --no-dangling --strict 2>&1 \
382 ps="${PIPESTATUS[*]}"
386 if [ -f $tmp/fsck.expected-errors ]; then
387 pats=(-w -f $tmp/fsck.expected-errors)
391 pats+=(-e 'notice: HEAD points to an unborn branch')
392 pats+=(-e 'notice: No default references')
395 grep -v "${pats[@]}" $fsckerrs
399 1) ;; # no unexpected errors
400 0) fail "unexpected messages from git-fsck" ;;
401 *) fail "grep of git-fsck failed" ;;
408 for d in $tmp/*/.git $tmp/git/*.git; do
416 : '========================================'
422 t-save-artifacts () {
423 artifacts="$AUTOPKGTEST_ARTIFACTS"
424 if [ x"$artifacts" = x ]; then return; fi
425 if [ x"tmp" = x ]; then return; fi
426 GZIP=-1v tar -C "$tmp" -zc -f "$artifacts/${0##*/}.tar.gz" \
430 t-rm-dput-dropping () {
431 rm -f $tmp/${p}_${v}_*.upload
435 local dgit=${DGIT_TEST-dgit}
438 {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{'
439 $dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \
440 ${dgit_config_debian_alias-"--config-lookup-explode=dgit-distro.debian.alias-canon"} \
441 ${DGIT_GITDEBREBASE_TEST+--git-debrebase=}${DGIT_GITDEBREBASE_TEST} \
442 ${distro+${distro:+-d}}${distro--dtest-dummy} \
443 $DGIT_TEST_OPTS $DGIT_TEST_DEBUG \
444 -kBCD22CD83243B79D3DFAC33EA3DBCBC039B13D8A $t_dgit_xopts "$@"
445 : '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
452 (export LC_ALL=C.UTF-8
453 if [ "$DGIT_TEST_INTREE" ]; then
454 make -C $DGIT_TEST_INTREE $page.$section.view
461 diff --exclude=.git --exclude=.pc -ruN $*
464 t-files-notexist () {
473 t-cloned-fetched-good () {
474 t-diff-nogit ../extract/$p-${v%-*} .
475 t-clean-on-branch dgit/sid
478 refs/heads/dgit/sid \
479 refs/remotes/dgit/dgit/sid
480 t-refs-notexist refs/dgit/unstable refs/remotes/dgit/dgit/unstable
484 printf "%s${1:+\n}" "$1" >$tmp/t.want
487 diff $tmp/t.want $tmp/t.got
490 t-clean-on-branch () {
491 t-output "## $1" git status -b --porcelain
499 local import=IMPORT.${DGIT_TEST_TESTNAME-${0##*/}}
500 exec 4>$tmp/$import.new
503 for vn in $savevars; do
504 perl >&4 -"I$root" -MDebian::Dgit -e '
505 printf "%s=%s\n", $ARGV[0], shellquote $ARGV[1]
506 ' $vn "$(eval "printf '%s\n' \"\$$vn\"")"
509 (set -e; cd $tmp; tar cf $import.tar $savedirs)
511 printf >&4 "\n%s\n" "$importeval"
513 mv -f $tmp/$import.new $tmp/$import
521 if [ "x$tmpbase" = x ]; then
522 # ADTTMP was set on entry to tests/lib, so we
523 # are not sharing tmp area between tests
525 lock="$tmp/.dummy.lock"
527 setupsrc="$tmpbase/$setupname"
528 lock="$setupsrc.lock"
531 local simport="$setupsrc/IMPORT.$setupname"
533 if ! [ -e "$simport" ]; then
534 with-lock-ex -w "$lock" \
535 xargs -0 -a $tmp/.save-env \
538 setupname="$1"; shift
540 if [ -e "$simport" ]; then exit 0; fi
542 "tests/setup/$setupname"
543 ' x "$root" "$setupname" "$simport"
546 if [ "x$setupsrc" != "x$tmp" ]; then
547 (set -e; cd $tmp; tar xf "$simport.tar")
553 t-git-get-ref-exact () {
555 # does not dereference, unlike t-git-get-ref
558 *) fail "t-git-get-ref-exact bad $ref" ;;
560 git for-each-ref --format='%(objectname)' "[r]efs/${ref#refs/}"
567 *) fail "t-git-get-ref bad $ref" ;;
569 (git show-ref -d $1 || test $? = 1) | perl -ne '
570 $x = $1 if m#^(\w+) \Q'$1'\E(?:\^\{\})?$#;
571 END { print "$x\n" if length $x; }
575 t-ref-same-exact () {
577 local val; val=`t-git-get-ref-exact $name`
578 t-ref-same-val "$name" $val
583 local val; val=`t-git-get-ref $name`
584 t-ref-same-val "$name" $val
588 local val; val=`git rev-parse HEAD`
589 t-ref-same-val HEAD $val
595 case "${t_ref_val-unset}" in
598 *) fail "ref varies: ($name)\
599 ${val:-nothing} != ${t_ref_val:-nothing} (${t_ref_names[*]})" ;;
602 t_ref_names+=("$name")
605 t-refs-same-start () {
620 val=`t-git-get-ref $g`
621 if [ "x$val" != x ]; then
622 fail "ref $g unexpectedly exists ($val)"
628 echo refs/tags/$tagpfx/${v//\~/_}
632 git log -n1 --pretty=format:"$1" "$2"
635 t-sametree-parent () {
638 local ctree; ctree=$(t-format-ref '%T' "$ref")
641 for parent in $(t-format-ref '%P' "$ref"); do
642 local ptree; ptree=$(t-format-ref '%T' "$parent")
643 if [ "x$ptree" = "x$ctree" ]; then
647 case "$psame" in ""|" * *") break ;; esac
653 t-check-pushed-master () {
654 local master; master=`t-git-get-ref refs/heads/master`
655 if [ x$master = x$t_ref_val ]; then return; fi
656 if [ x$master = x ]; then fail "failed to push master"; fi
657 # didn't update master, it must be not FF
658 local mbase; mbase=`t-git-merge-base $master $t_ref_val`
659 if [ x$mbase = x$master ]; then fail "failed to ff master"; fi
662 t-push-was-source-only () {
664 t-files-notexist $tmp/incoming/${p}_${v}_*.deb \
665 $tmp/incoming/${p}_${v}_*.udeb
666 # we permit _source.buildinfo files; see test_changes_source_only()
667 for f in $tmp/incoming/${p}_${v}_*.buildinfo; do
670 *_source.buildinfo) ;;
671 *) fail "non-source-only file $f exists!" ;;
679 local suite=${2:-sid}
685 t-pushed-good-core () {
689 refs/remotes/dgit/dgit/$suite
691 refs/heads/dgit/unstable \
692 refs/remotes/dgit/dgit/unstable
693 (set -e; cd $dgitrepo
697 ${t_check_pushed_master:- : NOT-DRS-NO-CHECK-PUSHED-MASTER}
701 git verify-tag `t-v-tag`
704 t-splitbrain-pushed-good--unpack () {
709 ln -s $tmp/mirror/pool/main/*.orig*.tar* .
710 ln -s $tmp/incoming/*.orig*.tar* . ||:
711 ln -s $incoming_dsc .
712 ln -s ${incoming_dsc/.dsc/.debian.tar}* .
713 dpkg-source "$@" -x *.dsc
716 git fetch ../../$p "refs/tags/*:refs/tags/*"
719 t-splitbrain-pushed-good--checkprep () {
721 git rm --cached -r --ignore-unmatch .pc
724 t-splitbrain-pushed-good--checkdiff () {
726 t-splitbrain-pushed-good--checkprep
727 t-output "" git diff --stat --cached $tag
730 t-splitbrain-pushed-good-start () {
731 dep14tag=refs/tags/test-dummy/${v//\~/_}
733 t-output "" git status --porcelain
735 t-refs-same $dep14tag
736 (set -e; cd $dgitrepo; t-refs-same $dep14tag)
737 git merge-base --is-ancestor $dep14tag $dgittag
740 t-ref-same refs/heads/split.p
741 case "$(t-git-get-ref refs/heads/split.b)" in
743 "$(git rev-parse refs/heads/split.p^0)") ;;
744 "$(git rev-parse refs/heads/split.p^1)") ;;
751 t-splitbrain-pushed-good--unpack
752 t-splitbrain-pushed-good--checkdiff $dgittag
754 t-splitbrain-pushed-good-end-made-dep14 () {
755 t-splitbrain-pushed-good--checkdiff $dep14tag
759 t-splitbrain-rm-gitignore-patch () {
761 next unless $_ eq "auto-gitignore\n";
764 rename "debian/patches/$_", "../t-auto-gitignore" or die $!;
766 ' debian/patches/series
769 t-gbp-pushed-good () {
770 local suite=${1:-sid}
771 t-splitbrain-pushed-good-start
773 # Right, now we want to check that the maintainer tree and
774 # the dgit tree differ in exactly the ways we expect. We
775 # achieve this by trying to reconstruct the maintainer tree
776 # from the dgit tree.
778 # So, unpack it withut the patches applied
779 t-splitbrain-pushed-good--unpack --skip-patches
781 # dgit might have added a .gitignore patch, which we need to
783 t-splitbrain-rm-gitignore-patch
785 # Now the result should differ only in non-debian/ .gitignores
786 t-splitbrain-pushed-good--checkprep
787 git diff --cached --name-only $dep14tag >../changed
789 next if !m#^debian/# && m#(^|/)\.gitignore#;
793 # If we actually apply the gitignore patch by hand, it
795 if [ -f ../t-auto-gitignore ]; then
796 patch --backup-if-mismatch -p1 -u <../t-auto-gitignore
799 t-splitbrain-pushed-good-end-made-dep14
802 t-unapplied-pushed-good () {
803 t-splitbrain-pushed-good-start
804 t-splitbrain-pushed-good--unpack --skip-patches
805 t-splitbrain-pushed-good-end-made-dep14
808 t-dpm-pushed-good () {
809 t-splitbrain-pushed-good-start
810 t-splitbrain-pushed-good--unpack
811 t-splitbrain-rm-gitignore-patch
812 t-splitbrain-pushed-good-end-made-dep14
815 t-commit-build-push-expect-log () {
821 t-dgit push --new 2>&1 |tee $tmp/push.log
822 t-grep-mpat "$mpat" $tmp/push.log
829 use Dpkg::Control::Hash;
830 my $h = new Dpkg::Control::Hash allow_pgp=>1;
831 $h->parse(\*STDIN,"'"$file"'");
832 my $val = $h->{"'$field'"},"\n";
833 die "'"$file $field"'" unless defined $val;
839 export DGIT_TEST_DISTRO=''
841 t-git-config dgit-suite.unstable.distro test-dummy
851 "") '$var'="$tstunt" ;;
852 *) '$var'="$tstunt:$'$var'" ;;
858 t-tstunt--save-real () {
869 p="${p/:"$tmp/tstunt":/:}"
881 *) fail "did not find $f on PATH $PATH" ;;
884 local varname=${f//[^_0-9a-zA-Z]/_}
885 varname=DGIT_TEST_REAL_${varname^^}
888 : \${$varname:=\$real}
894 local tstunt=$tmp/tstunt
895 t-stunt-envvar PATH $tstunt
896 t-stunt-envvar PERLLIB $tstunt
899 t-tstunt--save-real $f
901 local d="$tstunt/${f%/*}"
903 ln -sf "$troot/tstunt/$f" "$d"/.
907 t-tstunt-parsechangelog () {
908 t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
911 t-tstunt-lintian () {
915 t-tstunt-debuild () {
920 local dsc=${p}_${v}.dsc
921 incoming_dsc=$tmp/incoming/$dsc
926 local val; val=`t-822-field $incoming_dsc Dgit`
929 die "Dgit $_ ?" unless m/^\w+\b/;
930 print $&,"\n" or die $!;
932 t-ref-same-val $incoming_dsc "$val"
939 debdiff ${p}_${v1}.dsc ${p}_${v2}.dsc || test $? = 1) \
943 t-gbp-unapplied-pq2qc () {
944 # does `gbp pq export'
945 # commits the resulting debian/patches on qc/BRANCH
946 # leaves us on qc/BRANCH (eg "qc/quilt-tip"))
947 # qc/BRANCH is not fast-forwarding
951 branch=`git symbolic-ref HEAD`
952 branch=${branch#refs/heads/}
955 */*) fail "unexpected branch $branch" ;;
958 git branch -f qc/$branch
959 git checkout qc/$branch
960 git add debian/patches
961 git commit -m 'Commit patch queue'
964 t-git-pseudo-merge () {
965 # like git merge -s ours
966 if [ ! "$git_pseuomerge_opts" ]; then
967 if git merge --help \
968 | grep -q allow-unrelated-histories; then
969 git_pseuomerge_opts='--allow-unrelated-histories'
971 git_pseuomerge_opts+=' -s ours'
973 git merge $git_pseuomerge_opts "$@"
976 t-gbp-example-prep-no-ff () {
977 t-tstunt-parsechangelog
978 t-archive example 1.0-1
986 git checkout -b patch-queue/quilt-tip-2 patch-queue/quilt-tip
989 echo '/* some comment */' >>src.c
991 git commit -m 'Add a comment to an upstream file'
993 t-gbp-unapplied-pq2qc
995 t-commit 'some updates' 1.0-2
998 t-gbp-example-prep () {
999 t-gbp-example-prep-no-ff
1001 t-git-pseudo-merge \
1002 -m 'Pseudo-merge to make descendant of archive' \
1003 remotes/dgit/dgit/sid
1006 t-make-badcommit () {
1008 git cat-file commit HEAD | \
1009 perl -pe 's/^committer /commiter /' | \
1010 git hash-object -w -t commit --stdin
1012 t-expect-fsck-fail $badcommit
1017 v=${2:-${majorv:-1}.$revision}
1018 dch --force-distribution -v$v --distribution ${3:-unstable} "$1"
1019 git add debian/changelog
1021 revision=$(( ${revision-0} + 1 ))
1025 local cmd="$1"; shift
1026 local suite=${1-unstable}
1027 $cmd -r -D "$suite" ''
1031 t-dch-r-rune t-dch-commit "$@"
1035 faketime @"${GIT_AUTHOR_DATE% *}" dch "$@"
1036 git commit -m "dch $*" debian/changelog
1040 git config --global "$@"
1044 t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext %S "
1045 t-git-config dgit-distro.test-dummy.git-check true
1046 t-git-config dgit-distro.test-dummy.git-create true
1047 t-git-config dgit-distro.test-dummy.dgit-tag-format new,old,maint
1048 cp $troot/gnupg/{dd.gpg,dm.gpg,dm.txt} $tmp/.
1049 cp $troot/suites $tmp/.
1050 cp $troot/suites $tmp/suites-master
1052 export t_check_pushed_master=t-check-pushed-master
1054 drs_dispatch=$tmp/distro=test-dummy
1057 if [ "x$DGIT_TEST_INTREE" != x ]; then
1058 ln -sf "$DGIT_TEST_INTREE" $drs_dispatch/dgit-live
1061 ln -sf $tmp/git $drs_dispatch/repos
1062 ln -sf $tmp/suites $tmp/suites-master $tmp/dm.txt $drs_dispatch/
1063 mkdir -p $drs_dispatch/keyrings
1064 ln -sf $tmp/dd.gpg $drs_dispatch/keyrings/debian-keyring.gpg
1065 ln -sf $tmp/dm.gpg $drs_dispatch/keyrings/debian-maintainers.gpg
1066 ln -sf /bin/true $drs_dispatch/policy-hook
1070 export tagpfx=archive/test-dummy
1071 t-git-config dgit-distro.test-dummy.dgit-tag-format new,maint
1074 export tagpfx=test-dummy
1075 t-git-config dgit-distro.test-dummy.dgit-tag-format old
1080 t-git-config dgit-distro.test-dummy.ssh "$troot/dsd-ssh"
1081 t-git-config dgit-distro.test-dummy.git-check ssh-cmd
1082 t-git-config dgit-distro.test-dummy.git-create true
1083 t-git-config dgit-distro.test-dummy.git-url \
1084 "ext::$troot/dsd-ssh X %S /dgit/test-dummy/repos"
1086 t-git-config dgit-distro.test-dummy.diverts.drs /drs
1087 t-git-config dgit-distro.test-dummy/drs.ssh "$troot/ssh"
1088 t-git-config dgit-distro.test-dummy/drs.git-url $tmp/git
1089 t-git-config dgit-distro.test-dummy/drs.git-check ssh-cmd
1090 t-git-config dgit-distro.test-dummy/drs.git-create ssh-cmd
1092 echo 'no-such-package* drs' >$drs_dispatch/diverts
1096 : '(((((((((((((((((((((((((((((((((((((((('
1097 ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@"
1098 : '))))))))))))))))))))))))))))))))))))))))'
1101 t-policy-nonexist () {
1102 ln -sf no-such-file-or-directory $drs_dispatch/policy-hook
1105 t-make-hook-link () {
1106 local hook=$1 # in infra/
1108 hook=${DGIT_INFRA_PFX}$hook
1111 *) hook=`type -P $hook` ;;
1113 ln -sf "$hook" $linkpath
1118 t-make-hook-link $policyhook $drs_dispatch/policy-hook
1123 t-policy dgit-repos-policy-debian
1126 t-policy-admin create-db
1129 t-policy-periodic () {
1130 : '(((((((((((((((((((((((((((((((((((((((('
1131 ${DGIT_REPOS_SERVER_TEST-dgit-repos-server} \
1132 test-dummy $drs_dispatch '' --cron
1133 : '))))))))))))))))))))))))))))))))))))))))'
1137 local restriction=$1
1138 (cd $root; t-restriction-$restriction >&2)
1142 : "Hopefully installed: $*"
1149 export DGIT_TEST_TESTNAME="$testname"
1150 export DGIT_TEST_TMPBASE="$tmpbase"
1158 t-chain-test "${t#*-}"
1161 t-git-config dgit.default.old-dsc-distro test-dummy
1163 for import in ${autoimport-gnupg}; do
1167 t-setup-import $import