Skip to content

Commit 669a8b6

Browse files
freetype2: add run_tests.sh (#13639)
Signed-off-by: David Korczynski <david@adalogics.com>
1 parent 573d657 commit 669a8b6

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

projects/freetype2/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN apt-get update && \
2525
make \
2626
ninja-build
2727

28+
# For run_tests.sh
29+
RUN python3 -m pip install meson ninja requests
2830

2931
# Get some files for the seed corpus
3032
ADD https://github.com/adobe-fonts/adobe-variable-font-prototype/releases/download/1.001/AdobeVFPrototype.otf $SRC/font-corpus/
@@ -33,4 +35,4 @@ RUN git clone https://github.com/unicode-org/text-rendering-tests.git && cp text
3335
RUN git clone --depth 1 https://github.com/freetype/freetype2-testing.git
3436
WORKDIR freetype2-testing
3537

36-
COPY build.sh $SRC/
38+
COPY *.sh $SRC/

projects/freetype2/run_tests.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
cd external/freetype2/
19+
python3 tests/scripts/download-test-fonts.py
20+
21+
# The tests build with meson so we are forced to rebuild with meson here.
22+
# The harnesses are build with Makefiles.
23+
meson setup out -Dtests=enabled
24+
meson compile -C out
25+
meson test -C out

0 commit comments

Comments
 (0)