diff --git a/scripts/explain_manifest/config.py b/scripts/explain_manifest/config.py index e161222dd594..ceeab15b376c 100644 --- a/scripts/explain_manifest/config.py +++ b/scripts/explain_manifest/config.py @@ -43,7 +43,9 @@ def transform(f: FileInfo): manifest="fixtures/amazonlinux-2-amd64.txt", use_rpath=True, tests={ - common_suites: {}, + common_suites: { + "skip_libsimdjson_ffi": True, + }, libc_libcpp_suites: { "libc_max_version": "2.26", # gcc 7.3.1 diff --git a/scripts/explain_manifest/suites.py b/scripts/explain_manifest/suites.py index 1723739db4c2..e17854c044f3 100644 --- a/scripts/explain_manifest/suites.py +++ b/scripts/explain_manifest/suites.py @@ -20,7 +20,7 @@ def read_requirements(path=None): lines = [re.findall("(.+)=([^# ]+)", d) for d in f.readlines()] return {l[0][0]: l[0][1].strip() for l in lines if l} -def common_suites(expect, libxcrypt_no_obsolete_api: bool = False): +def common_suites(expect, libxcrypt_no_obsolete_api: bool = False, skip_libsimdjson_ffi: bool = False): # file existence expect("/usr/local/kong/include/google/protobuf/**.proto", "includes Google protobuf headers").exists() @@ -82,9 +82,10 @@ def common_suites(expect, libxcrypt_no_obsolete_api: bool = False): .functions \ .contain("router_execute") - expect("/usr/local/openresty/site/lualib/libsimdjson_ffi.so", "simdjson should have ffi module compiled") \ - .functions \ - .contain("simdjson_ffi_state_new") + if not skip_libsimdjson_ffi: + expect("/usr/local/openresty/site/lualib/libsimdjson_ffi.so", "simdjson should have ffi module compiled") \ + .functions \ + .contain("simdjson_ffi_state_new") if libxcrypt_no_obsolete_api: expect("/usr/local/openresty/nginx/sbin/nginx", "nginx linked with libxcrypt.so.2") \