document mingw linker fix and close associated bug
[debian/gzip] / tests / Makefile.am
1 ## Process this file with automake to create Makefile.in
2 # Copyright 2010-2018 Free Software Foundation, Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
16
17 TESTS =                                 \
18   gzip-env                              \
19   helin-segv                            \
20   help-version                          \
21   hufts                                 \
22   keep                                  \
23   list                                  \
24   memcpy-abuse                          \
25   mixed                                 \
26   null-suffix-clobber                   \
27   reproducible                          \
28   stdin                                 \
29   timestamp                             \
30   trailing-nul                          \
31   unpack-invalid                        \
32   unpack-valid                          \
33   upper-suffix                          \
34   z-suffix                              \
35   zdiff                                 \
36   zgrep-f                               \
37   zgrep-context                         \
38   zgrep-signal                          \
39   znew-k
40
41 EXTRA_DIST =                            \
42   $(TESTS)                              \
43   init.cfg                              \
44   init.sh                               \
45   hufts-segv.gz
46
47 built_programs = \
48   gzip          \
49   gunzip        \
50   gzexe         \
51   zcat          \
52   zcmp          \
53   zdiff         \
54   zegrep        \
55   zfgrep        \
56   zforce        \
57   zgrep         \
58   zless         \
59   zmore         \
60   znew
61
62 TESTS_ENVIRONMENT =                                     \
63   tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.;         \
64   TMPDIR=$$tmp__; export TMPDIR;                        \
65                                                         \
66   if test -n "$$BASH_VERSION" || (eval "export v=x") 2>/dev/null; then \
67     export_with_values () { export "$$@"; };            \
68   else                                                  \
69     export_with_values ()                               \
70     {                                                   \
71       sed_extract_var='s/=.*//';                        \
72       sed_quote_value="s/'/'\\\\''/g;s/=\\(.*\\)/='\\1'/";\
73       for arg in "$$@"; do                              \
74         var=`echo "$$arg" | sed "$$sed_extract_var"`;   \
75         arg=`echo "$$arg" | sed "$$sed_quote_value"`;   \
76         eval "$$arg";                                   \
77         export "$$var";                                 \
78       done;                                             \
79     };                                                  \
80   fi;                                                   \
81                                                         \
82   export_with_values                                    \
83   LC_ALL=C                                              \
84   VERSION=$(VERSION)                                    \
85   abs_top_builddir='$(abs_top_builddir)'                \
86   abs_top_srcdir='$(abs_top_srcdir)'                    \
87   abs_srcdir='$(abs_srcdir)'                            \
88   built_programs='$(built_programs)'                    \
89   srcdir='$(srcdir)'                                    \
90   top_srcdir='$(top_srcdir)'                            \
91   CC='$(CC)'                                            \
92   GREP='$(GREP)'                                        \
93   GZIP_TEST_NAME=`echo $$tst|sed 's,^\./,,;s,/,-,g'`    \
94   MAKE=$(MAKE)                                          \
95   PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)'              \
96   PACKAGE_VERSION=$(PACKAGE_VERSION)                    \
97   PERL='$(PERL)'                                        \
98   SHELL='$(SHELL)'                                      \
99   PATH='$(abs_top_builddir)$(PATH_SEPARATOR)'"$$PATH"   \
100   ; 9>&2
101
102 VERBOSE = yes