maint: prefer HTTPS to HTTP, FTP in URLs
[debian/gzip] / tests / zdiff
index 7ed2f346692ffe3d47bf7886c97a1caf29a88a6c..8f2518a191bd6ae8e4a5a42f4107a0ad604cce1a 100755 (executable)
 # 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.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ..
 
 echo a > a || framework_failure_
 echo b > b || framework_failure_
-gzip a b || framework_failure_
 
 cat <<EOF > exp
 1c1
@@ -31,7 +30,10 @@ cat <<EOF > exp
 > b
 EOF
 
+diff a b | diff exp - || skip_ "diff output format is incompatible with POSIX"
+
 fail=0
+gzip a b || fail=1
 returns_ 1 zdiff a.gz b.gz > out 2>&1 || fail=1
 
 compare exp out || fail=1