From e16fc2ec250154af0e04dee4a6761f919a0643a2 Mon Sep 17 00:00:00 2001 From: Arthur Chan Date: Tue, 30 Dec 2025 08:21:08 +0000 Subject: [PATCH] libjpeg-turbo: Add run_tests.sh Signed-off-by: Arthur Chan --- projects/libjpeg-turbo/Dockerfile | 2 +- projects/libjpeg-turbo/run_tests.sh | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 projects/libjpeg-turbo/run_tests.sh diff --git a/projects/libjpeg-turbo/Dockerfile b/projects/libjpeg-turbo/Dockerfile index 7ddd36554df9..af2a1faf4ea6 100644 --- a/projects/libjpeg-turbo/Dockerfile +++ b/projects/libjpeg-turbo/Dockerfile @@ -33,4 +33,4 @@ RUN cat fuzz/branches.txt | while read branch; do \ done RUN rm -rf seed-corpora -COPY build.sh $SRC/ +COPY run_tests.sh build.sh $SRC/ diff --git a/projects/libjpeg-turbo/run_tests.sh b/projects/libjpeg-turbo/run_tests.sh new file mode 100644 index 000000000000..4cb74eb137b1 --- /dev/null +++ b/projects/libjpeg-turbo/run_tests.sh @@ -0,0 +1,22 @@ +#!/bin/bash -eu +# +# Copyright 2025 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. +# +################################################################################ + +# Run unit testing for all branches, exit early if any of them failed +cat fuzz/branches.txt | while read branch; do + ctest --test-dir libjpeg-turbo.$branch -j$(nproc) || exit $? +done