diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-02-24 22:54:01 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 22:54:01 -0800 |
| commit | 6f581b6d6d17a0956f77d2f245a47ae9a2e76ae6 (patch) | |
| tree | f4cf70f974591566b947c31f108f11a65b560750 /t/lib-httpd.sh | |
| parent | Merge branch 'ma/fetch-parallel-use-online-cpus' (diff) | |
| parent | add basic http proxy tests (diff) | |
| download | git-6f581b6d6d17a0956f77d2f245a47ae9a2e76ae6.tar.gz git-6f581b6d6d17a0956f77d2f245a47ae9a2e76ae6.zip | |
Merge branch 'jk/http-proxy-tests'
Test updates.
* jk/http-proxy-tests:
add basic http proxy tests
Diffstat (limited to 't/lib-httpd.sh')
| -rw-r--r-- | t/lib-httpd.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh index 5d2d56c445..059fd74adb 100644 --- a/t/lib-httpd.sh +++ b/t/lib-httpd.sh @@ -25,6 +25,7 @@ # LIB_HTTPD_DAV enable DAV # LIB_HTTPD_SVN enable SVN at given location (e.g. "svn") # LIB_HTTPD_SSL enable SSL +# LIB_HTTPD_PROXY enable proxy # # Copyright (c) 2008 Clemens Buchacher <drizzd@aon.at> # @@ -133,6 +134,7 @@ install_script () { prepare_httpd() { mkdir -p "$HTTPD_DOCUMENT_ROOT_PATH" cp "$TEST_PATH"/passwd "$HTTPD_ROOT_PATH" + cp "$TEST_PATH"/proxy-passwd "$HTTPD_ROOT_PATH" install_script incomplete-length-upload-pack-v2-http.sh install_script incomplete-body-upload-pack-v2-http.sh install_script error-no-report.sh @@ -176,6 +178,11 @@ prepare_httpd() { export LIB_HTTPD_SVN LIB_HTTPD_SVNPATH fi fi + + if test -n "$LIB_HTTPD_PROXY" + then + HTTPD_PARA="$HTTPD_PARA -DPROXY" + fi } enable_http2 () { |
