gzip: fix some Y2038 etc. bugs
[debian/gzip] / tests / Makefile.am
1 ## Process this file with automake to create Makefile.in
2 # Copyright 2010-2016 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 <http://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   stdin                                 \
28   timestamp                             \
29   trailing-nul                          \
30   unpack-invalid                        \
31   z-suffix                              \
32   zdiff                                 \
33   zgrep-f                               \
34   zgrep-context                         \
35   zgrep-signal                          \
36   znew-k
37
38 EXTRA_DIST =                            \
39   $(TESTS)                              \
40   init.cfg                              \
41   init.sh                               \
42   hufts-segv.gz
43
44 built_programs = \
45   gzip          \
46   gunzip        \
47   gzexe         \
48   zcat          \
49   zcmp          \
50   zdiff         \
51   zegrep        \
52   zfgrep        \
53   zforce        \
54   zgrep         \
55   zless         \
56   zmore         \
57   znew
58
59 TESTS_ENVIRONMENT =                                     \
60   tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.;         \
61   TMPDIR=$$tmp__; export TMPDIR;                        \
62                                                         \
63   if test -n "$$BASH_VERSION" || (eval "export v=x") 2>/dev/null; then \
64     export_with_values () { export "$$@"; };            \
65   else                                                  \
66     export_with_values ()                               \
67     {                                                   \
68       sed_extract_var='s/=.*//';                        \
69       sed_quote_value="s/'/'\\\\''/g;s/=\\(.*\\)/='\\1'/";\
70       for arg in "$$@"; do                              \
71         var=`echo "$$arg" | sed "$$sed_extract_var"`;   \
72         arg=`echo "$$arg" | sed "$$sed_quote_value"`;   \
73         eval "$$arg";                                   \
74         export "$$var";                                 \
75       done;                                             \
76     };                                                  \
77   fi;                                                   \
78                                                         \
79   export_with_values                                    \
80   LC_ALL=C                                              \
81   VERSION=$(VERSION)                                    \
82   abs_top_builddir='$(abs_top_builddir)'                \
83   abs_top_srcdir='$(abs_top_srcdir)'                    \
84   abs_srcdir='$(abs_srcdir)'                            \
85   built_programs='$(built_programs)'                    \
86   srcdir='$(srcdir)'                                    \
87   top_srcdir='$(top_srcdir)'                            \
88   CC='$(CC)'                                            \
89   GREP='$(GREP)'                                        \
90   GZIP_TEST_NAME=`echo $$tst|sed 's,^\./,,;s,/,-,g'`    \
91   MAKE=$(MAKE)                                          \
92   PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)'              \
93   PACKAGE_VERSION=$(PACKAGE_VERSION)                    \
94   PERL='$(PERL)'                                        \
95   SHELL='$(SHELL)'                                      \
96   PATH='$(abs_top_builddir)$(PATH_SEPARATOR)'"$$PATH"   \
97   ; 9>&2
98
99 VERBOSE = yes