Codebase list libsdl2-ttf / 0e2be20
Add an autopkgtest smoke-test, thanks to Simon McVittie for the patch. Closes: #941024 Felix Geyer 4 years ago
4 changed file(s) with 57 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 libsdl2-ttf (2.0.15+dfsg1-2) UNRELEASED; urgency=medium
1
2 * Add an autopkgtest smoke-test, thanks to Simon McVittie for the patch.
3 (Closes: #941024)
4
5 -- Felix Geyer <fgeyer@debian.org> Mon, 09 Dec 2019 18:26:58 +0100
6
07 libsdl2-ttf (2.0.15+dfsg1-1) unstable; urgency=medium
18
29 * Team upload.
1010
1111 Files: debian/*
1212 Copyright: 2012-2013, Manuel A. Fernandez Montecelo <mafm@debian.org>
13 License: zlib/libpng
14
15
16 Files: debian/tests/*
17 Copyright: 2019 Collabora Ltd.
1318 License: zlib/libpng
1419
1520
0 Tests: libsdl2-ttf-dev
1 Restrictions: allow-stderr, superficial
2 Depends:
3 build-essential,
4 file,
5 fonts-cantarell,
6 libsdl2-ttf-dev,
7 xauth,
8 xvfb,
0 #!/bin/sh
1 # Copyright 2019 Collabora Ltd.
2 # SPDX-License-Identifier: Zlib
3 # (see "zlib/libpng" in debian/copyright)
4
5 set -eux
6
7 if [ -n "${AUTOPKGTEST_ARTIFACTS-}" ]; then
8 WORKDIR="$AUTOPKGTEST_ARTIFACTS"
9 else
10 WORKDIR="$(mktemp -d)"
11 trap 'cd /; rm -fr "$WORKDIR"' 0 INT QUIT ABRT PIPE TERM
12 fi
13
14 cp showfont.c "$WORKDIR"
15
16 cd "$WORKDIR"
17
18 # Deliberately word-splitting pkg-config's output:
19 # shellcheck disable=SC2046
20 gcc -oshowfont showfont.c $(pkg-config --cflags --libs SDL2_ttf)
21
22 set -- ./showfont
23
24 if [ -z "${TEST_INTERACTIVE-}" ]; then
25 echo "(export TEST_INTERACTIVE=1 for an interactive test)"
26 set -- xvfb-run -a "$@" -dump
27 fi
28
29 set -- "$@" /usr/share/fonts/opentype/cantarell/Cantarell-Regular.otf
30
31 "$@"
32
33 if [ -z "${TEST_INTERACTIVE-}" ]; then
34 file glyph-100.bmp
35 fi