From e42f3ccb4157d214993f7b68125ee3d6d6a6dde5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Sep 2019 21:00:11 +0100 Subject: test suite: clone-skew: Test for accessing mirror via http This test is misnamed right now, but really we are going to make it do something interesting. Right now it just sets everything up to access the mirror via http rather than file://. Signed-off-by: Ian Jackson --- tests/tests/clone-skew | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 tests/tests/clone-skew (limited to 'tests/tests') diff --git a/tests/tests/clone-skew b/tests/tests/clone-skew new file mode 100755 index 0000000..cedcf1f --- /dev/null +++ b/tests/tests/clone-skew @@ -0,0 +1,23 @@ +#!/bin/bash +set -e +. tests/lib + +t-dependencies libhttp-server-simple-static-perl + +$troot/http-static-server >$tmp/must-clean/mirror.port $tmp/mirror +read <$tmp/must-clean/mirror.port mirror_port + +t-git-config --global dgit-distro.test-dummy.mirror \ + http://127.0.0.1:$mirror_port/ + +t_archive_ln_s=cp + +t-archive example 1.0-1 +t-git-none + +t-dgit clone $p + +cd $p +t-cloned-fetched-good + +t-ok -- cgit v1.2.3