1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
#!/usr/bin/env bash
#
# Copyright (c) 2011, 2012, Simon Howard
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided
# that the above copyright notice and this permission notice appear
# in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
# AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
#
# Test script that tests the extract functionality.
# This file tests archives generated by various Windows-based tools.
#
. test_extract.sh
test_archive explzh_723/h0_lh0.lzh "gpl-2.gz"
test_archive explzh_723/h0_lh5.lzh "gpl-2"
test_archive explzh_723/h0_lh6.lzh "gpl-2"
test_archive explzh_723/h0_lh7.lzh "gpl-2"
test_archive explzh_723/h0_subdir.lzh "subdir/subdir2/hello.txt"
test_archive explzh_723/h1_lh0.lzh "gpl-2.gz"
test_archive explzh_723/h1_lh5.lzh "gpl-2"
test_archive explzh_723/h1_lh6.lzh "gpl-2"
test_archive explzh_723/h1_lh7.lzh "gpl-2"
test_archive explzh_723/h1_subdir.lzh "subdir/subdir2/hello.txt"
test_archive explzh_723/h2_lh0.lzh "gpl-2.gz"
test_archive explzh_723/h2_lh5.lzh "gpl-2"
test_archive explzh_723/h2_lh6.lzh "gpl-2"
test_archive explzh_723/h2_lh7.lzh "gpl-2"
test_archive explzh_723/h2_subdir.lzh "subdir/subdir2/hello.txt"
test_archive explzh_723/declha_sfx_ansi.exe "gpl-2"
test_archive explzh_723/declha_sfx_unicode.exe "gpl-2"
# Weird ordering of directories in LHmelt-generated archives means that the
# subdirectory tests currently fail, because the timestamp is not set right:
test_archive lhmelt_16536/h0_lh0.lzh "gpl-2.gz"
test_archive lhmelt_16536/h0_lh1.lzh "gpl-2"
test_archive lhmelt_16536/h0_lh5.lzh "gpl-2"
test_archive lhmelt_16536/h0_lh6.lzh "gpl-2"
test_archive lhmelt_16536/h0_lh7.lzh "gpl-2"
#test_archive lhmelt_16536/h0_subdir.lzh "subdir/subdir2/hello.txt"
test_archive lhmelt_16536/h1_lh0.lzh "gpl-2.gz"
test_archive lhmelt_16536/h1_lh1.lzh "gpl-2"
test_archive lhmelt_16536/h1_lh5.lzh "gpl-2"
#test_archive lhmelt_16536/h1_subdir.lzh "subdir/subdir2/hello.txt"
test_archive lhmelt_16536/h2_lh0.lzh "gpl-2.gz"
test_archive lhmelt_16536/h2_lh1.lzh "gpl-2"
test_archive lhmelt_16536/h2_lh5.lzh "gpl-2"
#test_archive lhmelt_16536/h2_subdir.lzh "subdir/subdir2/hello.txt"
test_archive lhmelt_16536/sfx_winsfx_213.exe "gpl-2"
test_archive lhmelt_16536/sfx_winsfx32_213.exe "gpl-2"
test_archive lhmelt_16536/sfx_winsfx32m_250.exe "gpl-2"
test_archive lhmelt_16536/sfx_winsfxm_250.exe "gpl-2"
test_archive tascal_lha_051h/abspath.lzh "Mounted Volume/subdir/subdir2/hello.txt"
test_archive tascal_lha_051h/lh0.lzh "Mounted Volume/gpl-2.gz"
test_archive tascal_lha_051h/lh5.lzh "Mounted Volume/gpl-2"
test_archive unlha32/h2_lhx.lzh "gpl-2"
test_archive unlha32/lhx_long.lzh "long.txt"
|