1# Copyright (C) 2001-2021 Lutz Mueller <lutz@users.sourceforge.net>, et. al. 2# SPDX-License-Identifier: LGPL-2.0-or-later 3 4SUBDIRS = nls 5 6# By default, a few definitions like bindir, srcdir are already set. 7AM_TESTS_ENVIRONMENT = 8 9# Run all tests without i18n and l10n for proper comparisons 10AM_TESTS_ENVIRONMENT += LC_ALL='C'; export LC_ALL; 11 12# Some AC_SUBST variables needed in test case scripts 13AM_TESTS_ENVIRONMENT += DIFF='$(DIFF)'; export DIFF; 14AM_TESTS_ENVIRONMENT += DIFF_U='$(DIFF_U)'; export DIFF_U; 15AM_TESTS_ENVIRONMENT += EXEEXT='$(EXEEXT)'; export EXEEXT; 16AM_TESTS_ENVIRONMENT += FAILMALLOC_PATH='$(FAILMALLOC_PATH)'; export FAILMALLOC_PATH; 17 18# Notes about tests: 19# - Add "small" tests and stuff here. 20# - Add "big" tests and stuff to explicitly test for (fixed) bugs 21# to libexif-testsuite: 22# * We don't want to force people to download dozens of big test images 23# just for one small library. The ones included here are carefully chosen 24# as a basic self-contained regression test set. 25# * Proper testing is done with the "exif" program in libexif-testsuite. 26# And this is just the lib - we don't have the program available 27# here yet. 28 29TESTS = test-mem test-value test-integers test-parse test-parse-from-data test-tagtable test-sorted \ 30 test-fuzzer test-null test-gps parse-regression.sh swap-byte-order.sh \ 31 extract-parse.sh check-mnote.sh 32 33TESTS += check-failmalloc.sh 34 35check_PROGRAMS = test-mem test-mnote test-value test-integers test-parse test-parse-from-data \ 36 test-tagtable test-sorted test-fuzzer test-extract test-null test-gps 37 38LDADD = $(top_builddir)/libexif/libexif.la $(LTLIBINTL) 39 40EXTRA_DIST = \ 41 test-fuzzer-persistent.c \ 42 parse-regression.sh \ 43 swap-byte-order.sh \ 44 extract-parse.sh \ 45 check-mnote.sh \ 46 check-failmalloc.sh \ 47 testdata/canon_makernote_variant_1.jpg \ 48 testdata/canon_makernote_variant_1.jpg.parsed \ 49 testdata/fuji_makernote_variant_1.jpg \ 50 testdata/fuji_makernote_variant_1.jpg.parsed \ 51 testdata/olympus_makernote_variant_2.jpg \ 52 testdata/olympus_makernote_variant_2.jpg.parsed \ 53 testdata/olympus_makernote_variant_3.jpg \ 54 testdata/olympus_makernote_variant_3.jpg.parsed \ 55 testdata/olympus_makernote_variant_4.jpg \ 56 testdata/olympus_makernote_variant_4.jpg.parsed \ 57 testdata/olympus_makernote_variant_5.jpg \ 58 testdata/olympus_makernote_variant_5.jpg.parsed \ 59 testdata/pentax_makernote_variant_2.jpg \ 60 testdata/pentax_makernote_variant_2.jpg.parsed \ 61 testdata/pentax_makernote_variant_3.jpg \ 62 testdata/pentax_makernote_variant_3.jpg.parsed \ 63 testdata/pentax_makernote_variant_4.jpg \ 64 testdata/pentax_makernote_variant_4.jpg.parsed 65 66EXTRA_DIST += inc-comparetool.sh 67