From: Dan Fandrich Date: Sat, 8 Apr 2023 17:56:15 +0000 (-0700) Subject: runtests: move the UNIX sockets into $PIDDIR X-Git-Tag: curl-8_1_0~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89ede3953b8b64d8bf0d15d10989d003d2b30a12;p=thirdparty%2Fcurl.git runtests: move the UNIX sockets into $PIDDIR These were missed when the other server files were moved there. Follow-up to 70d2fca2 Ref: #10818 --- diff --git a/tests/FILEFORMAT.md b/tests/FILEFORMAT.md index 72ae5c18db..cf0ab99f4f 100644 --- a/tests/FILEFORMAT.md +++ b/tests/FILEFORMAT.md @@ -134,7 +134,7 @@ Available substitute variables include: - `%HTTPTLS6PORT` - IPv6 port number of the HTTP TLS server - `%HTTPTLSPORT` - Port number of the HTTP TLS server - `%HTTPUNIXPATH` - Path to the Unix socket of the HTTP server -- `%SOCKSUNIXPATH` - Absolute Path to the Unix socket of the SOCKS server +- `%SOCKSUNIXPATH` - Path to the Unix socket of the SOCKS server - `%IMAP6PORT` - IPv6 port number of the IMAP server - `%IMAPPORT` - Port number of the IMAP server - `%LOGDIR` - Log directory relative to %PWD diff --git a/tests/data/test1467 b/tests/data/test1467 index 1be4c2c769..4770504c7f 100644 --- a/tests/data/test1467 +++ b/tests/data/test1467 @@ -4,6 +4,7 @@ HTTP HTTP GET SOCKS5 +unix sockets @@ -41,7 +42,7 @@ socks5unix HTTP GET via SOCKS5 proxy via unix sockets ---socks5 localhost%SOCKSUNIXPATH http://%HOSTIP:%HTTPPORT/%TESTNUMBER +--socks5 localhost%PWD/%SOCKSUNIXPATH http://%HOSTIP:%HTTPPORT/%TESTNUMBER diff --git a/tests/data/test1468 b/tests/data/test1468 index 1ff6ada4db..207990e944 100644 --- a/tests/data/test1468 +++ b/tests/data/test1468 @@ -5,6 +5,7 @@ HTTP HTTP GET SOCKS5 SOCKS5h +unix sockets @@ -42,7 +43,7 @@ socks5unix HTTP GET with host name using SOCKS5h via unix sockets -http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://localhost%SOCKSUNIXPATH +http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://localhost%PWD/%SOCKSUNIXPATH diff --git a/tests/data/test1470 b/tests/data/test1470 index 7807a3dce8..bec54cfc04 100644 --- a/tests/data/test1470 +++ b/tests/data/test1470 @@ -6,6 +6,7 @@ HTTP HTTP GET SOCKS5 SOCKS5h +unix sockets @@ -44,7 +45,7 @@ socks5unix HTTPS GET with host name using SOCKS5h via unix sockets -https://this.is.a.host.name:%HTTPSPORT/%TESTNUMBER -k --proxy socks5h://localhost%SOCKSUNIXPATH +https://this.is.a.host.name:%HTTPSPORT/%TESTNUMBER -k --proxy socks5h://localhost%PWD/%SOCKSUNIXPATH diff --git a/tests/runtests.pl b/tests/runtests.pl index b4af9e25ee..8f926fa215 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -5980,8 +5980,8 @@ if ($gdbthis) { } } -$HTTPUNIXPATH = "http$$.sock"; # HTTP server Unix domain socket path -$SOCKSUNIXPATH = $pwd."/socks$$.sock"; # HTTP server Unix domain socket path, absolute path +$HTTPUNIXPATH = "$PIDDIR/http.sock"; # HTTP server Unix domain socket path +$SOCKSUNIXPATH = "$PIDDIR/socks.sock"; # SOCKS server Unix domain socket path ####################################################################### # clear and create logging directory: