From f1e434cce41e33122bf4fdab58d8a788b0669a7b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 8 Aug 2019 11:41:37 +0100 Subject: 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 --- tests/setup/http-git-check | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/setup/http-git-check diff --git a/tests/setup/http-git-check b/tests/setup/http-git-check new file mode 100755 index 0000000..0e3b7c2 --- /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 +' -- cgit v1.2.3