maint: update .gitignore files
[debian/gzip] / tests / znew-k
old mode 100644 (file)
new mode 100755 (executable)
index d63ec26..71b34ec
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Check that znew -K works without compress(1).
 
-# Copyright (C) 2010 Free Software Foundation, Inc.
+# Copyright (C) 2010-2014 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
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # limit so don't run it by default.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  gzip --version
-fi
+. "${srcdir=.}/init.sh"; path_prepend_ ..
 
-: ${srcdir=.}
-. "$srcdir/tests/init.sh"; path_prepend_ "`pwd`"
-
-cat <<'EOF' >compress || framework_failure
+cat <<'EOF' >compress || framework_failure_
 #!/bin/sh
 echo >&2 'compress has been invoked'
 exit 1
 EOF
-chmod +x compress || framework_failure
+chmod +x compress || framework_failure_
 
 # Note that the basename must have a length of 6 or greater.
 # Otherwise, "test -f $name" below would fail.
 name=123456.Z
 
-printf '%1012977s' ' ' | gzip -c > $name || framework_failure
+printf '%1012977s' ' ' | gzip -c > $name || framework_failure_
 
 fail=0