From 9761fd14b899e8dd9a7f7d5fa10f21edc7f2679d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 7 Nov 2015 11:02:58 +0100 Subject: Merging upstream version 1.16~pre1. Signed-off-by: Daniel Baumann --- testsuite/check.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'testsuite') 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 . -- cgit v1.2.3