Skip to content

Commit 06e5575

Browse files
h3: add run_tests.sh (#13615)
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 h3 c++ 277/283 Test #277: testCliUncompactCellsStdin3_test139 .............. Passed 0.01 sec Start 278: testCliUncompactCellsArg1_test139 278/283 Test #278: testCliUncompactCellsArg1_test139 ................ Passed 0.01 sec Start 279: testCliUncompactCellsArg2_test139 279/283 Test #279: testCliUncompactCellsArg2_test139 ................ Passed 0.01 sec Start 280: testCliUncompactCellsArg3_test139 280/283 Test #280: testCliUncompactCellsArg3_test139 ................ Passed 0.01 sec Start 281: testCliVertexToLatLng_test139 281/283 Test #281: testCliVertexToLatLng_test139 .................... Passed 0.01 sec Start 282: testCliNotVertexToLatLng_test139 282/283 Test #282: testCliNotVertexToLatLng_test139 ................. Passed 0.01 sec Start 283: testH3Memory_test140 283/283 Test #283: testH3Memory_test140 ............................. Passed 0.01 sec 100% tests passed, 0 tests failed out of 283 ``` Signed-off-by: David Korczynski <david@adalogics.com>
1 parent 1819beb commit 06e5575

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

projects/h3/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ RUN apt-get update && apt-get install -y make autoconf automake libtool \
1919
pkg-config
2020
RUN git clone --depth 1 https://github.com/uber/h3
2121
WORKDIR h3
22-
COPY build.sh $SRC/
22+
COPY *.sh $SRC/

projects/h3/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
mkdir build
1919
cd build
20-
cmake ..
21-
make -j$(nproc) h3
20+
cmake -DBUILD_TESTING=ON ..
21+
make -j$(nproc) all
2222

2323
H3_BASE=/src/h3/
2424

projects/h3/run_tests.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash -eux
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+
cd build
19+
make test

0 commit comments

Comments
 (0)