Skip to content

Commit efcf6c5

Browse files
authored
Make rebuilding work for njs. (#14940)
1 parent 9638e6d commit efcf6c5

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

projects/njs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ RUN hg clone http://hg.nginx.org/njs
2121
RUN git clone --branch pcre2-10.39 https://github.com/PhilipHazel/pcre2 pcre2
2222

2323
WORKDIR njs
24-
COPY build.sh $SRC/
24+
COPY build.sh run_tests.sh $SRC/

projects/njs/build.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ sed -i "s/\$libS\$libR \(-lpcre2-8$\)/\$libS\$libR -Wl,-Bstatic \1 -Wl,-Bdynamic
3131
popd
3232

3333
# build project
34-
rm -rf build
35-
3634
./configure
3735
make njs_fuzzer
3836

projects/njs/run_tests.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -eu
2+
# Copyright 2026 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
make unit_test
19+

0 commit comments

Comments
 (0)