summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2025-01-14 10:07:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2025-01-14 10:07:23 +0000
commit6dfefd5ef7a4101ac9baa6add4ef6d3b3f7a22ec (patch)
tree74a10d66b5b6db789df8ff720f7bb4e425d29194 /testsuite
parentAdding upstream version 1.25~rc1. (diff)
downloadlziprecover-upstream.tar.xz
lziprecover-upstream.zip
Adding upstream version 1.25.upstream/1.25upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/check.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/testsuite/check.sh b/testsuite/check.sh
index 30b2edb..a4eb8aa 100755
--- a/testsuite/check.sh
+++ b/testsuite/check.sh
@@ -1,6 +1,6 @@
#! /bin/sh
# check script for Lziprecover - Data recovery tool for the lzip format
-# Copyright (C) 2009-2024 Antonio Diaz Diaz.
+# Copyright (C) 2009-2025 Antonio Diaz Diaz.
#
# This script is free software: you have unlimited permission
# to copy, distribute, and modify it.
@@ -719,12 +719,28 @@ cmp fec/test.txt.lz.fec fecfile.fec || test_failed $LINENO
"${LZIPRECOVER}" -Ft "${in_lz}" --fec-file=fec/ || test_failed $LINENO
rm -rf fec || framework_failure
mkdir a
+mkdir a/bfec
+mkdir a/b-fec
+mkdir a/b.fec
+mkdir a/b_fec
cp fox6.lz "${in_lz}" a || framework_failure
+cp "${fox_lz}" a/bfec || framework_failure
+cp "${fox_lz}" a/b-fec || framework_failure
+cp "${fox_lz}" a/b.fec || framework_failure
+cp "${fox_lz}" a/b_fec || framework_failure
"${LZIPRECOVER}" -r -Fc a/ -o fec/ || test_failed $LINENO
[ -e fec/fox6.lz.fec ] || test_failed $LINENO
+[ -e fec/bfec/fox.lz.fec ] || test_failed $LINENO
+[ ! -e fec/b-fec ] || test_failed $LINENO
+[ ! -e fec/b.fec ] || test_failed $LINENO
+[ ! -e fec/b_fec ] || test_failed $LINENO
cmp fec/test.txt.lz.fec fecfile.fec || test_failed $LINENO
"${LZIPRECOVER}" -r -Fc a -o fec/ || test_failed $LINENO
[ -e fec/a/fox6.lz.fec ] || test_failed $LINENO
+[ -e fec/a/bfec/fox.lz.fec ] || test_failed $LINENO
+[ ! -e fec/a/b-fec ] || test_failed $LINENO
+[ ! -e fec/a/b.fec ] || test_failed $LINENO
+[ ! -e fec/a/b_fec ] || test_failed $LINENO
cmp fec/a/test.txt.lz.fec fecfile.fec || test_failed $LINENO
rm -rf a fec fecfile.fec || framework_failure