X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tests%2Fznew-k;h=71b34ec2948e5a90c03a7f261cbaefda9c65e828;hb=906b2f0626c92a1b460ac7d614de282163e21aa6;hp=d63ec26344f89503269accfb496cbbc320dd5712;hpb=be1f6c5563634e81f8ae59201bce12ccabe3fdab;p=debian%2Fgzip diff --git a/tests/znew-k b/tests/znew-k old mode 100644 new mode 100755 index d63ec26..71b34ec --- a/tests/znew-k +++ b/tests/znew-k @@ -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 @@ -17,26 +17,20 @@ # along with this program. If not, see . # 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