| 1 |
# Tests Makefile.am |
| 2 |
# |
| 3 |
# Copyright (c) 2021-2024 Reuben Thomas <[email protected]> |
| 4 |
# |
| 5 |
# This file is part of libpaper. |
| 6 |
# |
| 7 |
# This program is free software: you can redistribute it and/or modify it |
| 8 |
# under the terms of the GNU Lesser General Public License as published by |
| 9 |
# the Free Software Foundation; either version 2.1 of the License, or (at |
| 10 |
# your option) any later version. |
| 11 |
# |
| 12 |
# This program is distributed in the hope that it will be useful, |
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
# GNU Lesser General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU Lesser General Public License |
| 18 |
# along with this program. If not, see |
| 19 |
# <https://www.gnu.org/licenses/lgpl-2.1.html>. |
| 20 |
|
| 21 |
TEST_EXTENSIONS = .sh |
| 22 |
SH_LOG_COMPILER = $(srcdir)/run-test |
| 23 |
|
| 24 |
if OS_WIN32 |
| 25 |
DIFF="diff --strip-trailing-cr" |
| 26 |
PATH_CONVERT="cygpath --mixed" |
| 27 |
else |
| 28 |
DIFF=diff |
| 29 |
PATH_CONVERT=echo |
| 30 |
endif |
| 31 |
|
| 32 |
EMPTY = |
| 33 |
|
| 34 |
TESTS = \ |
| 35 |
default-size-environment.sh \ |
| 36 |
default-size-user.sh \ |
| 37 |
default-size-lc_paper.sh \ |
| 38 |
default-size-system-papersize.sh \ |
| 39 |
default-size-system-paperspecs.sh \ |
| 40 |
default-size-user-paperspecs.sh \ |
| 41 |
default-size-no-default-paper.sh \ |
| 42 |
unit-pt.sh \ |
| 43 |
unit-pt-equals.sh \ |
| 44 |
unit-mm.sh \ |
| 45 |
unit-in.sh \ |
| 46 |
unit-invalid.sh \ |
| 47 |
all-sizes.sh \ |
| 48 |
zero-arguments.sh \ |
| 49 |
one-argument.sh \ |
| 50 |
two-arguments.sh \ |
| 51 |
paperspecs-invalid.sh \ |
| 52 |
no-home.sh \ |
| 53 |
paper-unknown.sh \ |
| 54 |
bad-width.sh \ |
| 55 |
bad-height.sh \ |
| 56 |
unknown-option.sh \ |
| 57 |
option-requires-argument.sh \ |
| 58 |
$(EMPTY) |
| 59 |
|
| 60 |
RESULTS = \ |
| 61 |
default-size-environment-expected.txt \ |
| 62 |
default-size-user-expected.txt \ |
| 63 |
default-size-lc_paper-expected.txt \ |
| 64 |
default-size-system-papersize-expected.txt \ |
| 65 |
default-size-system-paperspecs-expected.txt \ |
| 66 |
default-size-user-paperspecs-expected.txt \ |
| 67 |
default-size-no-default-paper-expected.txt \ |
| 68 |
unit-pt-expected.txt \ |
| 69 |
unit-pt-equals-expected.txt \ |
| 70 |
unit-mm-expected.txt \ |
| 71 |
unit-in-expected.txt \ |
| 72 |
unit-invalid-expected.txt \ |
| 73 |
all-sizes-expected.txt \ |
| 74 |
zero-arguments-expected.txt \ |
| 75 |
one-argument-expected.txt \ |
| 76 |
two-arguments-expected.txt \ |
| 77 |
no-home-expected.txt \ |
| 78 |
paper-unknown-expected.txt \ |
| 79 |
unknown-option-expected.txt \ |
| 80 |
option-requires-argument-expected.txt \ |
| 81 |
$(EMPTY) |
| 82 |
|
| 83 |
EXTRA_DIST = $(SH_LOG_COMPILER) $(TESTS) $(INPUTS) $(RESULTS) test-paperspecs |
| 84 |
|
| 85 |
AM_TESTS_ENVIRONMENT = \ |
| 86 |
export MAKE=$(MAKE); \ |
| 87 |
export LC_ALL=C; \ |
| 88 |
export HAVE_GLIBC=$(HAVE_GNU_GET_LIBC_VERSION); \ |
| 89 |
export prefix=$(prefix); \ |
| 90 |
export sysconfdir=$(sysconfdir); \ |
| 91 |
export bindir=$(bindir); \ |
| 92 |
export libdir=$(libdir); \ |
| 93 |
export abs_srcdir=$(abs_srcdir); \ |
| 94 |
export DIFF=$(DIFF); \ |
| 95 |
export PATH_CONVERT=$(PATH_CONVERT); \ |
| 96 |
export LSAN_OPTIONS=suppressions=$(abs_srcdir)/asan-suppressions.txt:fast_unwind_on_malloc=0:print_suppressions=0; |