Skip to content

Commit df01e30

Browse files
authored
tinyobjloader: add run_tests.sh (#13609)
Adds run_tests.sh to the tinyobjloader 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 tinyobjloader c` ``` ... SUCCESS: All unit tests have passed. ``` Signed-off-by: Adam Korczynski <adam@adalogics.com>
1 parent 15749e0 commit df01e30

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

projects/tinyobjloader/Dockerfile

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

1717
FROM gcr.io/oss-fuzz-base/base-builder
1818
RUN git clone --depth 1 https://github.com/tinyobjloader/tinyobjloader
19-
COPY build.sh $SRC
19+
COPY build.sh run_tests.sh $SRC
2020
WORKDIR $SRC/tinyobjloader

projects/tinyobjloader/build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#
1616
################################################################################
1717

18-
1918
# build project
2019
mkdir build && cd build
2120
cmake .. -DBUILD_SHARED_LIBS=OFF
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
cd $SRC/tinyobjloader/tests && make check

0 commit comments

Comments
 (0)