exit 1
}
+t-untar () {
+ local tarfile=$1.tar
+ local edittree=$1.edit
+ if test -d "$edittree"; then
+ cp -al "$edittree"/* .
+ else
+ tar xf "$tarfile"
+ fi
+}
+
t-worktree () {
rm -rf $p
- tar xf $troot/worktrees/${p}_$1.tar
+ t-untar $troot/worktrees/${p}_$1
}
t-git () {
p=$1
v=$2
mkdir -p $tmp/git
- (set -e; cd $tmp/git; tar xf $troot/git-srcs/${p}_$v.git.tar)
+ local gs=$troot/git-srcs/${p}_$v.git
+ (set -e; cd $tmp/git; t-untar $gs)
}
t-git-none () {
{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{'
${DGIT_TEST-dgit} --dget:-u --dput:--config=$tmp/dput.cf \
- -dtest-dummy $DGIT_TEST_OPTS -D -k39B13D8A "$@"
+ -dtest-dummy $DGIT_TEST_OPTS ${DGIT_TEST_DEBUG--D} \
+ -k39B13D8A "$@"
: '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
'
}
t-drs () {
export DGIT_TEST_TROOT=$troot
export DGIT_TEST_TMP=$tmp
- t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext "
- t-git-config dgit-distro.test-dummy.git-check true
- t-git-config dgit-distro.test-dummy.git-create true
+ t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext %S "
+ t-git-config dgit-distro.test-dummy.git-check true
+ t-git-config dgit-distro.test-dummy.git-create true
+ cp $root/tests/gnupg/{dd.gpg,dm.gpg,dm.txt} $tmp/.
+ cp $root/tests/suites $tmp/.
}
t-drs-test () {
export ADTTMP=$tmp
exec "${0///drs-//}" "$@"
}
-