+ : '))))))))))))))))))))))))))))))))))))))))'
+}
+
+t-tagupl-settings () {
+ export DGIT_DRS_EMAIL_NOREPLY=noreply@example.org
+ export DGIT_DRS_SENDMAIL=$troot/tstunt/sendmail
+ export DGIT_DRS_DGIT=$troot/tstunt/dgit
+ t-chain-test-somehow
+
+ mkdir ../pretend-salsa
+ (set -e; cd ../pretend-salsa; git init --bare)
+ git remote add salsa $tmp/pretend-salsa
+ # git branch --set-upstream-to complains, so
+ git config branch.master.remote salsa
+ git config branch.master.merge refs/heads/master
+}
+
+t-tagupl-run-drs () {
+ local source=$1
+ cd ..
+ cd tagupl
+
+ DGIT_DRS_ANY_URL=1 \
+ DGIT_DRS_MODE="tag2upload $source $tagname" \
+ $troot/drs-git-ext
+
+ cd $tmp/$p
+}
+
+t-tagupl-test () {
+ ${DGIT_DEBPUSH_TEST-git debpush} \
+ --distro=test-dummy -u Senatus "$@"
+
+ mkdir ../tagupl
+ t-tagupl-run-drs $tmp/pretend-salsa
+
+ cd ../pretend-salsa
+ t-refs-same refs/heads/master
+ cd ../$p
+
+ t-dgit fetch
+}
+
+t-buildproductsdir-config () {
+ bpd=$tmp/bpd
+ t-git-config dgit.default.build-products-dir $bpd
+ mkdir -p $bpd
+ cat <<END >>$tmp/.gbp.conf
+[buildpackage]
+export-dir = $bpd
+END