New upstream version 1.8
[debian/gzip] / tests / keep
index b2bbcd326a63e6acad5e1d3e38f11cef1eb9075c..105d43e643d015655f7a779d43b942a189a80b45 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Exercise the --keep option.
 
-# Copyright (C) 2013 Free Software Foundation, Inc.
+# Copyright (C) 2013-2016 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
@@ -41,4 +41,11 @@ for k in --keep ''; do
   rm -f in.gz || fail=1
 done
 
+cp orig in || framework_failure_
+log=$(gzip -kv in 2>&1) || fail=1
+case $log in
+  *'created in.gz'*) ;;
+  *) fail=1;;
+esac
+
 Exit $fail