From 77afabb90a5f3c4a4734bdbbc01051428464a7e8 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 12 Feb 2026 14:44:33 +1100 Subject: [PATCH 1/2] Make rebuilding work for njs. --- projects/njs/build.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/njs/build.sh b/projects/njs/build.sh index 65a1dc310706..bb5ea70ef39a 100755 --- a/projects/njs/build.sh +++ b/projects/njs/build.sh @@ -31,8 +31,6 @@ sed -i "s/\$libS\$libR \(-lpcre2-8$\)/\$libS\$libR -Wl,-Bstatic \1 -Wl,-Bdynamic popd # build project -rm -rf build - ./configure make njs_fuzzer From 02bb41da68d3875efe9fe52587a01bb8e49cf5a2 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 12 Feb 2026 03:58:47 +0000 Subject: [PATCH 2/2] add tests --- projects/njs/Dockerfile | 2 +- projects/njs/run_tests.sh | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 projects/njs/run_tests.sh diff --git a/projects/njs/Dockerfile b/projects/njs/Dockerfile index 00d975b7ebe6..2bd8b6bde097 100644 --- a/projects/njs/Dockerfile +++ b/projects/njs/Dockerfile @@ -21,4 +21,4 @@ RUN hg clone http://hg.nginx.org/njs RUN git clone --branch pcre2-10.39 https://github.com/PhilipHazel/pcre2 pcre2 WORKDIR njs -COPY build.sh $SRC/ +COPY build.sh run_tests.sh $SRC/ diff --git a/projects/njs/run_tests.sh b/projects/njs/run_tests.sh new file mode 100755 index 000000000000..23d507cbb8ab --- /dev/null +++ b/projects/njs/run_tests.sh @@ -0,0 +1,19 @@ +#!/bin/bash -eu +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +make unit_test +