From: Ian Jackson Date: Thu, 8 Aug 2019 10:41:37 +0000 (+0100) Subject: test suite: http-git-check: New provision X-Git-Tag: archive/debian/9.7~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f1e434cce41e33122bf4fdab58d8a788b0669a7b;p=dgit.git test suite: http-git-check: New provision Importing this makes us use a local http server for the git check. It's a setup so that it can imply the http-git-check dependency. Right now nothing imports this so no functional change. Signed-off-by: Ian Jackson --- diff --git a/tests/setup/http-git-check b/tests/setup/http-git-check new file mode 100755 index 00000000..0e3b7c25 --- /dev/null +++ b/tests/setup/http-git-check @@ -0,0 +1,15 @@ +#!/bin/bash +set -e +. tests/lib + +t-dependencies libhttp-server-simple-static-perl + +t-setup-done '' --files-from=/dev/null ' + $troot/http-static-server >$tmp/must-clean/git-check.port $tmp/git + read <$tmp/must-clean/git-check.port git_check_port + + t-git-config --global dgit-distro.test-dummy.git-check url + t-git-config --global dgit-distro.test-dummy.git-check-suffix .git/HEAD + t-git-config --global dgit-distro.test-dummy.git-check-url \ + http://127.0.0.1:$git_check_port +'