blob: 7dffa866db48e4609afe95e652ecc82627ff5c2b [file] [log] [blame]
AUTOMAKE_OPTIONS= parallel-tests
noinst_SCRIPTS= runtest
noinst_PROGRAMS= \
add_from_filep \
fopen_unchanged \
fread \
hole \
modify \
tryopen
modify_SOURCES= \
modify.c \
source_hole.c
hole_SOURCES= \
hole.c \
source_hole.c
EXTRA_DIST= \
CMakeLists.txt \
NiHTest.pm \
runtest.in \
${TESTS} \
bigstored.zh \
bigzero-zip.zip \
bogus.zip \
broken.zip \
cm-default.zip \
encrypt.zip \
encrypt_plus_extra.zip \
encrypt_plus_extra_modified_c.zip \
encrypt_plus_extra_modified_l.zip \
filename_duplicate.zip \
filename_empty.zip \
fileorder.zip \
firstsecond.zip \
firstsecond-split-deflated.zip \
firstsecond-split-stored.zip \
foo-stored.zip \
incons-archive-comment-longer.zip \
incons-archive-comment-shorter.zip \
incons-cdoffset.zip \
incons-central-compression-method.zip \
incons-central-compsize-larger-toolarge.zip \
incons-central-compsize-larger.zip \
incons-central-compsize-smaller.zip \
incons-central-crc.zip \
incons-central-date.zip \
incons-central-file-comment-longer.zip \
incons-central-file-comment-shorter.zip \
incons-central-magic-bad.zip \
incons-central-magic-bad2.zip \
incons-central-size-larger.zip \
incons-data.zip \
incons-ef-central-size-wrong.zip \
incons-ef-local-id-size.zip \
incons-ef-local-id.zip \
incons-ef-local-incomplete1.zip \
incons-ef-local-incomplete2.zip \
incons-ef-local-incomplete3.zip \
incons-ef-local-incomplete4.zip \
incons-ef-local-size.zip \
incons-eocd-magic-bad.zip \
incons-file-count-high.zip \
incons-file-count-low.zip \
incons-file-count-overflow.zip \
incons-local-compression-method.zip \
incons-local-compsize-larger.zip \
incons-local-compsize-smaller.zip \
incons-local-crc.zip \
incons-local-filename-long.zip \
incons-local-filename-missing.zip \
incons-local-filename-short.zip \
incons-local-filename.zip \
incons-local-magic-bad.zip \
incons-local-size-larger.zip \
large-uncompressable \
manyfiles-zip.zip \
rename_ok.zip \
streamed.zip \
streamed-zip64.zip \
test.zip \
test2.zip \
test-cp437.zip \
test-cp437-comment-utf-8.zip \
test-cp437-fc.zip \
test-cp437-fc-utf-8-filename.zip \
test-utf8.zip \
test-utf8-unmarked.zip \
testbuffer.zip \
testdir.zip \
testchanged.zip \
testchangedlocal.zip \
testcomment.zip \
testcomment13.zip \
testcommentremoved.zip \
testdeflated.zip \
testempty.zip \
testextrabytes.zip \
testfile.txt \
testfile.zip \
testfile-cp437.zip \
testfile-plus-extra.zip \
testfile-UTF8.zip \
testfile2014.zip \
testnottorrent.zip \
teststdin.zip \
teststored.zip \
testtorrent.tzip \
utf-8-standardization-input.zip \
utf-8-standardization-output.zip \
zip64.zip
TESTS_ENVIRONMENT= ZIPCMP=${top_builddir}/src/zipcmp
# ${srcdir}/runtest
#LOG_COMPILER= ${srcdir}/runtest
TEST_EXTENSIONS= .test
TEST_LOG_COMPILER= ${builddir}/runtest
#AM_TEST_LOG_FLAGS = -s
TESTS= \
add_dir.test \
add_from_buffer.test \
add_from_file.test \
add_from_file_duplicate.test \
add_from_file_twice_duplicate.test \
add_from_filep.test \
add_from_stdin.test \
add_from_zip_closed.test \
add_from_zip_deflated.test \
add_from_zip_partial_deflated.test \
add_from_zip_partial_stored.test \
add_from_zip_stored.test \
add_stored.test \
add_stored_in_memory.test \
delete_add_same.test \
delete_invalid.test \
delete_last.test \
delete_multiple_last.test \
delete_multiple_partial.test \
delete_renamed_rename.test \
encrypt.test \
extra_add.test \
extra_add_multiple.test \
extra_count.test \
extra_count_by_id.test \
extra_count_ignore_zip64.test \
extra_delete.test \
extra_delete_by_id.test \
extra_get.test \
extra_get_by_id.test \
extra_set.test \
extra_set_modify_c.test \
extra_set_modify_l.test \
file_comment_encmismatch.test \
fopen_unchanged.test \
fread.test \
get_comment.test \
name_locate.test \
open_cons_extrabytes.test \
open_empty.test \
open_empty_2.test \
open_extrabytes.test \
open_file_count.test \
open_filename_duplicate.test \
open_filename_duplicate_consistency.test \
open_filename_duplicate_empty.test \
open_filename_duplicate_empty_consistency.test \
open_filename_empty.test \
open_incons.test \
open_many_ok.test \
open_new_but_exists.test \
open_new_ok.test \
open_nonarchive.test \
open_nosuchfile.test \
open_ok.test \
open_too_short.test \
open_truncate.test \
open_zip64_ok.test \
rename_ascii.test \
rename_cp437.test \
rename_deleted.test \
rename_fail.test \
rename_ok.test \
rename_utf8.test \
rename_utf8_encmismatch.test \
set_comment_all.test \
set_comment_localonly.test \
set_comment_removeglobal.test \
set_comment_revert.test \
set_compression_deflate_to_deflate.test \
set_compression_deflate_to_store.test \
set_compression_store_to_deflate.test \
set_compression_store_to_store.test \
set_compression_unknown.test \
stat_index_cp437_guess.test \
stat_index_cp437_raw.test \
stat_index_cp437_strict.test \
stat_index_fileorder.test \
stat_index_streamed.test \
stat_index_streamed_zip64.test \
stat_index_utf8_guess.test \
stat_index_utf8_raw.test \
stat_index_utf8_strict.test \
stat_index_utf8_unmarked_strict.test \
stat_index_zip64.test \
torrent-already.test \
torrent-new.test \
utf-8-standardization.test \
zip64_creation.test \
zip64_stored_creation.test
XFAIL_TESTS= \
open_filename_duplicate_consistency.test \
open_filename_duplicate_empty_consistency.test \
torrent-new.test
AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib -I${top_srcdir}/src
LDADD=${top_builddir}/lib/libzip.la
check-am: bigzero.zip manyfiles.zip runtest
bigzero.zip: bigzero-zip.zip
${builddir}/modify ${srcdir}/bigzero-zip.zip cat 0 > ${builddir}/bigzero.zip
manyfiles.zip: manyfiles-zip.zip
${builddir}/modify ${srcdir}/manyfiles-zip.zip cat 0 > ${builddir}/manyfiles.zip
runtest: runtest.in
sed -e 's!@[s]rcdir@!${srcdir}!g' -e 's!@[a]bs_srcdir@!${abs_srcdir}!g' ${srcdir}/runtest.in > runtest
chmod +x runtest
cleanup:
rm -rf ${builddir}/sandbox-*.d[0-9]*/
CLEANFILES=bigzero.zip manyfiles.zip runtest