diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-14 20:33:05 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-14 20:33:05 +0300 |
commit | 2d2201bc6315deda4d43625aa510972467bd51d4 (patch) | |
tree | 04b1a96fb2d9595ff39897b1c8eac2930ab54b1e /tests/test_files.sh | |
parent | Tests: Add .lzma test files. (diff) | |
download | xz-2d2201bc6315deda4d43625aa510972467bd51d4.tar.xz |
Tests: Add the .lzma files to test_files.sh.
Diffstat (limited to 'tests/test_files.sh')
-rwxr-xr-x | tests/test_files.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_files.sh b/tests/test_files.sh index 0f8a64d5..dc507912 100755 --- a/tests/test_files.sh +++ b/tests/test_files.sh @@ -53,5 +53,25 @@ do fi done +for I in "$srcdir"/files/good-*.lzma +do + if test -z "$XZ" || "$XZ" -dc "$I" > /dev/null; then + : + else + echo "Good file failed: $I" + (exit 1) + exit 1 + fi +done + +for I in "$srcdir"/files/bad-*.lzma +do + if test -n "$XZ" && "$XZ" -dc "$I" > /dev/null 2>&1; then + echo "Bad file succeeded: $I" + (exit 1) + exit 1 + fi +done + (exit 0) exit 0 |