From 1ca0d3282eb7fd0872b93f18e4923b3f44f2f179 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 6 Nov 2015 12:32:29 +0100 Subject: Merging upstream version 1.2. Signed-off-by: Daniel Baumann --- testsuite/check.sh | 15 ++++++++++++++- testsuite/test_sync.lz | Bin 0 -> 11658 bytes 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 testsuite/test_sync.lz (limited to 'testsuite') diff --git a/testsuite/check.sh b/testsuite/check.sh index 4d1377e..50bec2e 100755 --- a/testsuite/check.sh +++ b/testsuite/check.sh @@ -37,6 +37,19 @@ printf . cmp in copy || fail=1 printf . +"${LZIP}" -t "${testdir}"/test_sync.lz || fail=1 +printf . +"${LZIP}" -cd "${testdir}"/test_sync.lz > copy || fail=1 +cmp in copy || fail=1 +printf . + +"${LZIP}" -cf "${testdir}"/test_v1.lz > out 2>/dev/null +if [ $? != 1 ] ; then fail=1 ; printf - ; else printf . ; fi +"${LZIP}" -cF "${testdir}"/test_v1.lz > out || fail=1 +"${LZIP}" -cd out | "${LZIP}" -d > copy || fail=1 +cmp in copy || fail=1 +printf . + for i in s4Ki 0 1 2 3 4 5 6 7 8 9 ; do "${LZIP}" -k -$i in || fail=1 mv -f in.lz copy.lz || fail=1 @@ -69,7 +82,7 @@ for i in s4Ki 0 1 2 3 4 5 6 7 8 9 ; do done "${LZIP}" -$i < in > anyothername || fail=1 -"${LZIP}" -dq anyothername || fail=1 +"${LZIP}" -d anyothername || fail=1 cmp in anyothername.out || fail=1 printf . diff --git a/testsuite/test_sync.lz b/testsuite/test_sync.lz new file mode 100644 index 0000000..419fa97 Binary files /dev/null and b/testsuite/test_sync.lz differ -- cgit v1.2.3