]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: fix h3 server check and parallel instances
authorStefan Eissing <stefan@eissing.org>
Mon, 31 Jul 2023 08:56:00 +0000 (10:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 1 Aug 2023 14:11:48 +0000 (16:11 +0200)
- fix check for availability of nghttpx server
- add `tcp` frontend config for same port as quic, as
  without this, port 3000 is bound which clashes for parallel
  testing

Closes #11553

tests/http3-server.pl
tests/runtests.pl

index 7e5f243454b4cbf12f56101f531a79384468f537..bc9e98ad1108fbb4dc4c42989f38b8052bfb0c76 100755 (executable)
@@ -34,7 +34,7 @@ my $logdir = "log";
 my $pidfile = "$logdir/nghttpx.pid";
 my $logfile = "$logdir/http3.log";
 my $nghttpx = "nghttpx";
-my $listenport = 9015;
+my $listenport = 9017;
 my $connect = "127.0.0.1,8990";
 my $cert = "Server-localhost-sv";
 my $conf = "nghttpx.conf";
@@ -108,6 +108,7 @@ $certfile = abs_path($certfile);
 $keyfile = abs_path($keyfile);
 
 my $cmdline="$nghttpx --http2-proxy --backend=$connect ".
+    "--frontend=\"*,$listenport\" ".
     "--frontend=\"*,$listenport;quic\" ".
     "--log-level=INFO ".
     "--pid-file=$pidfile ".
index 050f40e787fd991ed3d1714b33d7ae4043f9648e..a08f7bc78b7c48a42e87b95c0c8324e0743eb436 100755 (executable)
@@ -314,7 +314,7 @@ if (!$ENV{"NGHTTPX"}) {
     $ENV{"NGHTTPX"} = checktestcmd("nghttpx");
 }
 if ($ENV{"NGHTTPX"}) {
-    my $nghttpx_version=join(' ', `"$ENV{'NGHTTPX'} -v 2>/dev/null"`);
+    my $nghttpx_version=join(' ', `"$ENV{'NGHTTPX'}" -v 2>/dev/null`);
     $nghttpx_h3 = $nghttpx_version =~ /nghttp3\//;
     chomp $nghttpx_h3;
 }