hs-test: add nginx+quic test
Type: test Change-Id: I15e4f2fb84cb4f34b6fea95978db000854a63e78 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
This commit is contained in:
committed by
Florin Coras
parent
fe965a3a17
commit
31eaea9eef
4
extras/hs-test/script/build_boringssl.sh
Executable file
4
extras/hs-test/script/build_boringssl.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
cd boringssl
|
||||
cmake -GNinja -B build
|
||||
ninja -C build
|
||||
36
extras/hs-test/script/build_curl.sh
Executable file
36
extras/hs-test/script/build_curl.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
dir1=/tmp/dir1
|
||||
dir2=/tmp/dir2
|
||||
dir3=/tmp/dir3
|
||||
|
||||
git clone --depth 1 -b openssl-3.0.9+quic https://github.com/quictls/openssl
|
||||
cd openssl
|
||||
echo "install path ${dir1}"
|
||||
./config enable-tls1_3 --prefix=${dir1}
|
||||
make
|
||||
make install
|
||||
|
||||
cd ..
|
||||
git clone -b v0.12.0 https://github.com/ngtcp2/nghttp3
|
||||
cd nghttp3
|
||||
autoreconf -fi
|
||||
./configure --prefix=${dir2} --enable-lib-only
|
||||
make
|
||||
make install
|
||||
|
||||
cd ..
|
||||
git clone -b v0.16.0 https://github.com/ngtcp2/ngtcp2
|
||||
cd ngtcp2
|
||||
autoreconf -fi
|
||||
./configure PKG_CONFIG_PATH=${dir1}/lib64/pkgconfig:${dir2}/lib/pkgconfig LDFLAGS="-Wl,-rpath,${dir1}/lib64" --prefix=${dir3} --enable-lib-only
|
||||
make
|
||||
make install
|
||||
|
||||
cd ..
|
||||
git clone https://github.com/curl/curl
|
||||
cd curl
|
||||
autoreconf -fi
|
||||
LDFLAGS="-Wl,-rpath,${dir1}/lib64" ./configure --with-openssl=${dir1} --with-nghttp3=${dir2} --with-ngtcp2=${dir3}
|
||||
make
|
||||
make install
|
||||
@@ -62,6 +62,11 @@ docker_build () {
|
||||
docker_build hs-test/vpp vpp
|
||||
docker_build hs-test/nginx-ldp nginx
|
||||
docker_build hs-test/nginx-server nginx-server
|
||||
docker_build hs-test/build build
|
||||
if [ "$HST_EXTENDED_TESTS" = true ] ; then
|
||||
docker_build hs-test/nginx-http3 nginx-http3
|
||||
docker_build hs-test/curl curl
|
||||
fi
|
||||
|
||||
# cleanup detached images
|
||||
images=$(docker images --filter "dangling=true" -q --no-trunc)
|
||||
5
extras/hs-test/script/build_nginx.sh
Executable file
5
extras/hs-test/script/build_nginx.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
cd nginx
|
||||
./auto/configure --with-debug --with-http_v3_module --with-cc-opt="-I../boringssl/include" --with-ld-opt="-L../boringssl/build/ssl -L../boringssl/build/crypto" --without-http_rewrite_module --without-http_gzip_module
|
||||
make
|
||||
make install
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
LD_PRELOAD=$LDP nginx $@ 2>&1 > /proc/1/fd/1
|
||||
LD_PRELOAD=$LDP $@ 2>&1 > /proc/1/fd/1
|
||||
|
||||
Reference in New Issue
Block a user