Skip to content

Commit e144c61

Browse files
authored
fio: add run_tests.sh (#13599)
Adds run_tests.sh to the fio project. run_tests.sh is used as part of Chronos with cached builds: https://github.com/google/oss-fuzz/tree/master/infra/experimental/chronos#check-tests `infra/experimental/chronos/check_tests.sh fio c` ``` ... Run Summary: Type Total Ran Passed Failed Inactive suites 7 7 n/a 0 0 tests 16 16 16 0 0 asserts 63 63 63 0 n/a Elapsed time = 0.000 seconds ``` Signed-off-by: Adam Korczynski <adam@adalogics.com>
1 parent ff77244 commit e144c61

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

projects/fio/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
################################################################################
1616

1717
FROM gcr.io/oss-fuzz-base/base-builder
18-
RUN apt-get update && apt-get install -y make
18+
RUN apt-get update && apt-get install -y make libcunit1 libcunit1-dev
1919
RUN git clone --depth 1 https://github.com/axboe/fio.git fio
2020
WORKDIR $SRC/fio
21-
COPY build.sh $SRC/
21+
COPY build.sh run_tests.sh $SRC/

projects/fio/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
export LDFLAGS="$CXXFLAGS"
2020
./configure
2121
make -j$(nproc)
22+
make unittests/unittest
2223
cp t/fuzz/fuzz_parseini $OUT/
2324

2425
# builds corpus

projects/fio/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+
export ASAN_OPTIONS="detect_leaks=0"
18+
./unittests/unittest

0 commit comments

Comments
 (0)