CMake: Keep existing options in LIBS when adding -lrt
[xz/debian.git] / tests / Makefile.am
blobd85328dddaaef4474d680bb3f0f9d79a085cec3f
1 ## SPDX-License-Identifier: 0BSD
2 ## Author: Lasse Collin
4 EXTRA_DIST = \
5         files \
6         ossfuzz \
7         tests.cmake \
8         tuktest.h \
9         tests.h \
10         test_files.sh \
11         test_compress.sh \
12         test_compress_generated_abc \
13         test_compress_generated_random \
14         test_compress_generated_text \
15         test_scripts.sh \
16         test_suffix.sh \
17         xzgrep_expected_output
19 AM_CPPFLAGS = \
20         -I$(top_srcdir)/src/common \
21         -I$(top_srcdir)/src/liblzma/api \
22         -I$(top_srcdir)/src/liblzma
24 LDADD = $(top_builddir)/src/liblzma/liblzma.la
26 LDADD += $(LTLIBINTL)
28 check_PROGRAMS = \
29         create_compress_files \
30         test_check \
31         test_hardware \
32         test_stream_flags \
33         test_filter_flags \
34         test_filter_str \
35         test_block_header \
36         test_index \
37         test_index_hash \
38         test_bcj_exact_size \
39         test_memlimit \
40         test_lzip_decoder \
41         test_vli
43 TESTS = \
44         test_check \
45         test_hardware \
46         test_stream_flags \
47         test_filter_flags \
48         test_filter_str \
49         test_block_header \
50         test_index \
51         test_index_hash \
52         test_bcj_exact_size \
53         test_memlimit \
54         test_lzip_decoder \
55         test_vli \
56         test_files.sh \
57         test_suffix.sh \
58         test_compress_generated_abc \
59         test_compress_generated_random \
60         test_compress_generated_text
62 if COND_MICROLZMA
63 check_PROGRAMS += test_microlzma
64 TESTS += test_microlzma
65 endif
67 if COND_SCRIPTS
68 TESTS += test_scripts.sh
69 endif
71 clean-local:
72         -rm -f compress_generated_* \
73                 xzgrep_test_output xzgrep_test_1.xz xzgrep_test_2.xz