#!/bin/bash set -e . tests/lib t-dependencies DEBORIG git-debpush t-debpolicy t-archive-none example t-git-none t-worktree 1.0 v=1.0-1 cd $p git checkout --orphan upstream quilt-tip-2 git rm -rf debian git commit -m 'pseudo-upstream' git tag upstream/1.0 git checkout -B master quilt-tip-2 upstream=$(git rev-parse upstream/1.0~0) tagname=test-dummy/$v ${DGIT_DEBPUSH_TEST-git debpush} \ --distro=test-dummy --quilt=gbp --no-push -u Senatus # xxx test pushing cd .. mkdir tagupl cd tagupl 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 DGIT_DRS_ANY_URL=1 \ DGIT_DRS_MODE="tag2upload $tmp/$p $tagname" \ $troot/drs-git-ext # todo: test each miss/rejection cd $tmp/$p t-dgit fetch t-pushed-good master t-ok