From 63f6784e3caecf2a2b1e98167b0818d8c3797b45 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Tue, 14 Jan 2025 13:03:28 -0800 Subject: [PATCH] tests(build) fix failing tests on ubuntu 24.04 The new `ubuntu-latest` image (24.04) would cause OpenResty 1.21.4.1 to not find the Perl lib during compilation. OpenResty 1.27.1.1 can find the lib without problems. --- t/10-build/001-build_options.t | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/t/10-build/001-build_options.t b/t/10-build/001-build_options.t index ff0b44d65..93f3cb61c 100644 --- a/t/10-build/001-build_options.t +++ b/t/10-build/001-build_options.t @@ -136,16 +136,27 @@ ngx_stream_wasm_module === TEST 10: build with OpenResty ---- build: NGX_BUILD_OPENRESTY=1.21.4.1 make +--- build: NGX_BUILD_OPENRESTY=1.27.1.1 make --- grep_nginxV -openresty/1.21.4.1 (ngx_wasmx_module dev [debug +openresty/1.27.1.1 (ngx_wasmx_module dev [debug built with OpenSSL --with-debug -O0 -ggdb3 -gdwarf -=== TEST 11: build without IPC by default +=== TEST 11: build with OpenResty without debug +--- build: NGX_BUILD_OPENRESTY=1.27.1.1 NGX_BUILD_DEBUG=0 NGX_BUILD_CC_OPT= make +--- grep_nginxV +openresty/1.27.1.1 (ngx_wasmx_module dev +built with OpenSSL +--- no_grep_nginxV +--with-debug +-O0 -ggdb3 -gdwarf + + + +=== TEST 12: build without IPC by default --- build: make --- grep_nginxV ngx_wasmx_module dev [debug @@ -158,7 +169,7 @@ ngx_ipc_core_module -=== TEST 12: build with IPC (NGX_IPC=1) +=== TEST 13: build with IPC (NGX_IPC=1) --- build: make NGX_IPC=1 --- grep_nginxV ngx_wasmx_module dev [ipc @@ -170,7 +181,7 @@ ngx_ipc_core_module -=== TEST 13: build with IPC (NGX_IPC=YES) +=== TEST 14: build with IPC (NGX_IPC=YES) --- build: make NGX_IPC=YES --- grep_nginxV ngx_wasmx_module dev [ipc