Skip to content

Commit ff77244

Browse files
authored
spdlog: add run_tests.sh (google#13598)
`infra/experimental/chronos/check_tests.sh spdlog c` ``` Test project /src/spdlog 13:06:09 [23/1817] Start 1: spdlog-utests 1/1 Test #1: spdlog-utests .................... Passed 5.55 sec 100% tests passed, 0 tests failed out of 1 Total Test time (real) = 5.55 sec ``` Signed-off-by: Adam Korczynski <adam@adalogics.com>
1 parent 9efd947 commit ff77244

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

projects/spdlog/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ RUN apt-get update && apt-get install --yes cmake
2020
RUN git clone --depth 1 https://github.com/gabime/spdlog.git
2121
RUN zip spdlog_fuzzer_seed_corpus.zip spdlog/example/*
2222
WORKDIR spdlog
23-
COPY build.sh spdlog_fuzzer.dict $SRC/
23+
COPY build.sh run_tests.sh spdlog_fuzzer.dict $SRC/
2424
COPY fuzz/* $SRC/

projects/spdlog/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
################################################################################
1717

1818
# build project
19-
cmake . && make -j$(nproc)
19+
cmake -DSPDLOG_BUILD_TESTS=ON . && make -j$(nproc)
2020

2121
# build fuzzers
2222
for f in $(find $SRC -name '*_fuzzer.cc'); do

projects/spdlog/run_tests.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash -eu
2+
# Copyright 2025 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+
ctest -j 4 --output-on-failure

0 commit comments

Comments
 (0)