Skip to content

Commit fe7e406

Browse files
utf8proc: add run_tests.sh (#13616)
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 utf8proc c++ ... ... Running tests... Test project /src/utf8proc/build Start 1: utf8proc.testcase 1/10 Test #1: utf8proc.testcase ................ Passed 0.07 sec Start 2: utf8proc.testcustom 2/10 Test #2: utf8proc.testcustom .............. Passed 0.01 sec Start 3: utf8proc.testiterate 3/10 Test #3: utf8proc.testiterate ............. Passed 0.01 sec Start 4: utf8proc.testmisc 4/10 Test #4: utf8proc.testmisc ................ Passed 0.01 sec Start 5: utf8proc.testprintproperty 5/10 Test #5: utf8proc.testprintproperty ....... Passed 0.00 sec Start 6: utf8proc.testvalid 6/10 Test #6: utf8proc.testvalid ............... Passed 0.01 sec Start 7: utf8proc.testmaxdecomposition 7/10 Test #7: utf8proc.testmaxdecomposition .... Passed 0.03 sec Start 8: utf8proc.testcharwidth 8/10 Test #8: utf8proc.testcharwidth ........... Passed 0.09 sec Start 9: utf8proc.testgraphemetest 9/10 Test #9: utf8proc.testgraphemetest ........ Passed 0.01 sec Start 10: utf8proc.testnormtest 10/10 Test #10: utf8proc.testnormtest ............ Passed 0.35 sec 100% tests passed, 0 tests failed out of 10 Total Test time (real) = 0.58 sec ``` Signed-off-by: David Korczynski <david@adalogics.com>
1 parent 06e5575 commit fe7e406

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

projects/utf8proc/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ RUN wget -O $SRC/utf8proc/test/NormalizationTest.txt https://www.unicode.org/Pub
2525
RUN wget -O $SRC/utf8proc/test/GraphemeBreakTest.txt https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakTest.txt
2626

2727
WORKDIR $SRC/utf8proc/
28-
COPY build.sh $SRC/
28+
COPY *.sh $SRC/

projects/utf8proc/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)