maint: prefer HTTPS to HTTP, FTP in URLs
[debian/gzip] / tests / null-suffix-clobber
index e5b52a1a147bb11cd97a6204275555d0e3ccec5a..e5d108a84876c9ef9cce3923aead1df7804a0729 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Before gzip-1.5, gzip -d -S '' k.gz would delete F.gz and not create "F"
 
-# Copyright (C) 2010 Free Software Foundation, Inc.
+# Copyright (C) 2010-2017 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
 # 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 <http://www.gnu.org/licenses/>.
+# along with this program.  If not, see <https://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"
-
-printf anything | gzip > F.gz || framework_failure
-echo y > yes || framework_failure
-echo "gzip: invalid suffix ''" > expected-err || framework_failure
+printf anything | gzip > F.gz || framework_failure_
+echo y > yes || framework_failure_
+echo "gzip: invalid suffix ''" > expected-err || framework_failure_
 
 fail=0
 
 gzip ---presume-input-tty -d -S '' F.gz < yes > out 2>err && fail=1
 
-compare out /dev/null || fail=1
-compare err expected-err || fail=1
+compare /dev/null out || fail=1
+compare expected-err err || fail=1
 
 test -f F.gz || fail=1