diff --git a/projects/c-blosc/Dockerfile b/projects/c-blosc/Dockerfile index 772a7e0bbb68..e75ca4d5fcc3 100644 --- a/projects/c-blosc/Dockerfile +++ b/projects/c-blosc/Dockerfile @@ -18,4 +18,4 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update && apt-get install -y cmake make RUN git clone --depth 1 https://github.com/Blosc/c-blosc.git c-blosc WORKDIR c-blosc -COPY build.sh $SRC/ \ No newline at end of file +COPY run_tests.sh build.sh $SRC/ diff --git a/projects/c-blosc/build.sh b/projects/c-blosc/build.sh index 3edf879e419d..aebca5185404 100755 --- a/projects/c-blosc/build.sh +++ b/projects/c-blosc/build.sh @@ -17,8 +17,8 @@ # Build project cmake . -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DBUILD_FUZZERS=ON -DBUILD_TESTS=OFF -DBUILD_BENCHMARKS=OFF \ - -DBUILD_STATIC=ON -DBUILD_SHARED=OFF + -DBUILD_FUZZERS=ON -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=OFF \ + -DBUILD_STATIC=ON -DBUILD_SHARED=ON make clean make -j$(nproc) diff --git a/projects/c-blosc/run_tests.sh b/projects/c-blosc/run_tests.sh new file mode 100644 index 000000000000..22e8e855790a --- /dev/null +++ b/projects/c-blosc/run_tests.sh @@ -0,0 +1,17 @@ +#!/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. +################################################################################ + +ctest --output-on-failure -E "test_api|test_forksafe"