summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:02:58 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 10:02:58 +0000
commit9761fd14b899e8dd9a7f7d5fa10f21edc7f2679d (patch)
tree364cb7aab4247b6894ef58c85317737945e21a0c /testsuite
parentAdding debian version 1.15-1. (diff)
downloadlzip-9761fd14b899e8dd9a7f7d5fa10f21edc7f2679d.tar.xz
lzip-9761fd14b899e8dd9a7f7d5fa10f21edc7f2679d.zip
Merging upstream version 1.16~pre1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'testsuite')
-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 .