summaryrefslogtreecommitdiff
path: root/tests/tests/dsd-clone-drs
blob: aa162bb09d33e9febcda1a5b0d8d0f0630d74d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e
. tests/lib

if [ "x$DGIT_TEST_INTREE" = x ]; then
	echo >&2 'running installed package version, cannot test self-clone'
	exit 0
fi

if ! test -d $root/.git; then
	echo >&2 'not running out of git clone, cannot test self-clone'
	exit 0
fi

t-dsd

cd $tmp
t-dgit clone-dgit-repos-server drs-cloned

cd drs-cloned
ls -al infra/dgit-repos-server

echo ok.