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