summaryrefslogtreecommitdiffstats
path: root/testsuite/check.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2025-02-05 17:26:46 +0000
committerDaniel Baumann <daniel@debian.org>2025-02-05 17:26:46 +0000
commit6ca47e75d2620b7491b10f4f0f02005a09c13a4c (patch)
tree71d0396980149a55bf094489b4e76195b24fd96b /testsuite/check.sh
parentUpdating to standards version 3.9.5. (diff)
downloadlzip-6ca47e75d2620b7491b10f4f0f02005a09c13a4c.tar.xz
lzip-6ca47e75d2620b7491b10f4f0f02005a09c13a4c.zip
Merging upstream version 1.16~pre1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to '')
-rwxr-xr-xtestsuite/check.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 8d6bb79..a8d0bf1 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -1,6 +1,7 @@
#! /bin/sh
# check script for Lzip - LZMA lossless data compressor
-# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+# Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2014
+# Antonio Diaz Diaz.
#
# This script is free software: you have unlimited permission
# to copy, distribute and modify it.
@@ -97,8 +98,16 @@ cmp in anyothername.out || fail=1
printf .
cat in in > in2 || framework_failure
-"${LZIP}" < in2 > out2 || fail=1
-"${LZIP}" -d < out2 > copy2 || fail=1
+"${LZIP}" -o copy2 < in2 || fail=1
+"${LZIP}" -t copy2.lz || fail=1
+printf .
+"${LZIP}" -cd copy2.lz > copy2 || fail=1
+cmp in2 copy2 || fail=1
+printf .
+
+printf "garbage" >> copy2.lz || framework_failure
+printf "to be overwritten" > copy2 || framework_failure
+"${LZIP}" -df copy2.lz || fail=1
cmp in2 copy2 || fail=1
printf .