X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2FMakefile.am;h=ebdce5b981bac79f2945c92fb13ac5abedc9cd4d;hb=80de5593c97eff61f31584362041b5b2432fbe48;hp=3b6ec31c22ed4247e478910fbfb627a3c356e86e;hpb=dc84183747ce1703eb99685b5dbde1f65a143c06;p=debian%2Fgzip diff --git a/tests/Makefile.am b/tests/Makefile.am index 3b6ec31..ebdce5b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,5 +1,5 @@ ## Process this file with automake to create Makefile.in -# Copyright 2010-2012 Free Software Foundation, Inc. +# Copyright 2010-2018 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -12,19 +12,28 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# along with this program. If not, see . TESTS = \ + gzip-env \ helin-segv \ help-version \ hufts \ + keep \ + list \ memcpy-abuse \ mixed \ null-suffix-clobber \ stdin \ + timestamp \ trailing-nul \ + unpack-invalid \ + unpack-valid \ + upper-suffix \ + z-suffix \ zdiff \ zgrep-f \ + zgrep-context \ zgrep-signal \ znew-k @@ -49,41 +58,44 @@ built_programs = \ zmore \ znew -TESTS_ENVIRONMENT = \ - tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \ - TMPDIR=$$tmp__; export TMPDIR; \ - shell_or_perl_() { \ - if grep '^\#!/usr/bin/perl' "$$1" > /dev/null; then \ - if $(PERL) -e 'use warnings' > /dev/null 2>&1; then \ - grep '^\#!/usr/bin/perl -T' "$$1" > /dev/null && T_=T || T_=; \ - $(PERL) -w$$T_ -I$(srcdir) -MCoreutils \ - -M"CuTmpdir qw($$f)" -- "$$1"; \ - else \ - echo 1>&2 "$$tst: configure did not find a usable version of Perl," \ - "so skipping this test"; \ - (exit 77); \ - fi; \ - else \ - $(SHELL) "$$1"; \ - fi; \ - }; \ - export \ - LC_ALL=C \ - VERSION=$(VERSION) \ - abs_top_builddir='$(abs_top_builddir)' \ - abs_top_srcdir='$(abs_top_srcdir)' \ - abs_srcdir='$(abs_srcdir)' \ - built_programs='$(built_programs)' \ - srcdir='$(srcdir)' \ - top_srcdir='$(top_srcdir)' \ - CC='$(CC)' \ - GZIP_TEST_NAME=`echo $$tst|sed 's,^\./,,;s,/,-,g'` \ - MAKE=$(MAKE) \ - PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \ - PACKAGE_VERSION=$(PACKAGE_VERSION) \ - PERL='$(PERL)' \ - SHELL='$(SHELL)' \ - PATH='$(abs_top_builddir)$(PATH_SEPARATOR)'"$$PATH" \ +TESTS_ENVIRONMENT = \ + tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \ + TMPDIR=$$tmp__; export TMPDIR; \ + \ + if test -n "$$BASH_VERSION" || (eval "export v=x") 2>/dev/null; then \ + export_with_values () { export "$$@"; }; \ + else \ + export_with_values () \ + { \ + sed_extract_var='s/=.*//'; \ + sed_quote_value="s/'/'\\\\''/g;s/=\\(.*\\)/='\\1'/";\ + for arg in "$$@"; do \ + var=`echo "$$arg" | sed "$$sed_extract_var"`; \ + arg=`echo "$$arg" | sed "$$sed_quote_value"`; \ + eval "$$arg"; \ + export "$$var"; \ + done; \ + }; \ + fi; \ + \ + export_with_values \ + LC_ALL=C \ + VERSION=$(VERSION) \ + abs_top_builddir='$(abs_top_builddir)' \ + abs_top_srcdir='$(abs_top_srcdir)' \ + abs_srcdir='$(abs_srcdir)' \ + built_programs='$(built_programs)' \ + srcdir='$(srcdir)' \ + top_srcdir='$(top_srcdir)' \ + CC='$(CC)' \ + GREP='$(GREP)' \ + GZIP_TEST_NAME=`echo $$tst|sed 's,^\./,,;s,/,-,g'` \ + MAKE=$(MAKE) \ + PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \ + PACKAGE_VERSION=$(PACKAGE_VERSION) \ + PERL='$(PERL)' \ + SHELL='$(SHELL)' \ + PATH='$(abs_top_builddir)$(PATH_SEPARATOR)'"$$PATH" \ ; 9>&2 VERBOSE = yes