diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/zziplib/test')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.am | 263 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.in | 737 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/README | 47 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/test.zip | bin | 1293 -> 0 bytes | |||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/test1.zip | bin | 1183 -> 0 bytes | |||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/zzipself.c | 87 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/zziplib/test/zzipsetstub.c | 61 |
7 files changed, 0 insertions, 1195 deletions
diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.am b/Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.am deleted file mode 100644 index 38195247bfc..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.am +++ /dev/null @@ -1,263 +0,0 @@ -AUTOMAKE_OPTIONS = 1.4 foreign -AUTOTOOL_VERSION=autoconf-2.52 automake-1.5 libtool-1.4.2 -DEFAULT_INCLUDES = # nothing - no default of -I. -I$(srcdir) -DEFS = @DEFS@ -I$(top_builddir) -I$(top_srcdir) # also for automake 1.4 - -EXTRA_DIST = test.zip test1.zip -DISTCLEANFILES = test*.dat test2.zip test3.zip - -zzcat = ../bins/zzcat$(EXEEXT) -zzdir = ../bins/zzdir$(EXEEXT) -zziptest = ../bins/zziptest$(EXEEXT) -zzxorcat = ../bins/zzxorcat$(EXEEXT) -zzxordir = ../bins/zzxordir$(EXEEXT) -zzxorcopy = ../bins/zzxorcopy$(EXEEXT) - -$(zzcat) $(zzdir) $(zziptest) $(zzxorcat) $(zzxordir) $(xorcopy) : \ - @top_srcdir@/bins/*.c @top_srcdir@/zzip/*.c - (cd ../bins && $(MAKE)) - -# ------------------------------------------------------------------- -NULL=/dev/null -README = $(top_srcdir)/README -testdatadir = $(top_srcdir)/testdata.d - -testzip testzips : test.zip test1.zip test2.zip test3.zip - -test.zip tmp/../test.zip : $(README) - - test -d tmp || mkdir tmp - - $(MAKE) test0.zip && mv test0.zip $@ - test -s $@ || cp $(srcdir)/test.zip $@ -test0.zip : $(README) - test -f README || ln -s $(README) . - - $(MKZIP) test_.zip README - @ if test -s test_.zip ;then echo mv test_.zip $@ ; mv test_.zip $@ ;fi - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test1.zip : - @ echo $(MKZIP) $@ ... "(10 files)" \ - ; mkdir test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 \ - ; do echo "file-$i" >test.tmp/file.$$i ; done \ - ; echo " a plain text file here" >test.tmp/README \ - ; (cd test.tmp && $(MKZIP) ../$@ file.* >$(NULL)) \ - ; rm -rf test.tmp - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test2.zip : # will not be shipped in source tarball - @ echo $(MKZIP) $@ ... "(100 files)" \ - ; mkdir test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 \ - ; do echo "file-$i" >test.tmp/file.$$j$$i ; done done \ - ; (cd test.tmp && $(MKZIP) ../$@ file.* >$(NULL)) \ - ; rm -rf test.tmp - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test3.zip : # will not be shipped in source tarball - @ echo $(MKZIP) $@ ... "(1000 files)" \ - ; mkdir test.tmp ; for h in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 \ - ; do echo "file-$i" >test.tmp/file.$$h$$j$$i ; done done done \ - ; (cd test.tmp && $(MKZIP) ../$@ file.* >$(NULL)) \ - ; rm -rf test.tmp - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test.dat : test.zip - $(zzxorcopy) $? $@ -test1.dat : test1.zip - $(zzxorcopy) $? $@ -test2.dat : test2.zip - $(zzxorcopy) $? $@ -test3.dat : test3.zip - $(zzxorcopy) $? $@ - -# ------------------------------------------------------------------- - -stdtests = @ZIPTESTS@ check-test0 check-test1 check-zzdir check-zzcat -xortests = @ZIPTESTS@ check-zzxor check-zzxordir check-zzxorcat -sfxtests = @ZIPTESTS@ check-sfx - -check-local: check-readme $(stdtests) $(xortests) $(sfxtests) - -check-readme : $(zzcat) test.zip - @ test -f test.zip || $(MAKE) tmp/../test.zip - test -s test.zip - @ echo :$@: checking $(zzcat) test/README - @ $(zzcat) test/README >test.out - @ if diff test.out $(README) >$(NULL) \ - ; then rm test.out ; echo check OK ; true \ - ; else rm test.out ; echo check FAIL ; false ; fi - -check-zzxor : $(zzxorcat) test.dat - @ echo :$@: checking $(zzxorcat) test.dat/README - @ $(zzxorcat) test.dat/README >test.out - @ if diff test.out $(README) >$(NULL) \ - ; then rm test.out ; echo check OK ; true \ - ; else rm test.out ; echo check FAIL ; false ; fi - -test: test0 test1 test2 test3 -test0: $(zziptest) - $(zziptest) test.zip -test1: $(zziptest) - $(zziptest) test1.zip -test2: $(zzcat) - $(zzcat) test/README -test3: $(zzdir) - $(zzdir) test1.zip - -check-test0 : $(zziptest) - @ echo :$@: quick selftest - $(zziptest) test.zip >test.out - rm test.out -check-test1 : $(zziptest) - @ test -f test1.zip || ln -s $(srcdir)/test1.zip test1.zip - @ echo :$@: longer selftest "(about ten seconds)" - $(zziptest) test1.zip >test.out - rm test.out - -check-zzdir : test1.zip test2.zip test3.zip $(zzdir) - @ echo :$@: zip directory access - ./$(zzdir) test1 > test.out - @ X="$(zzdir) test1 "\ - ; if grep file.1 test.out >$(NULL) ; then : \ - ; if grep file.9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzdir) test2 > test.out - @ X="$(zzdir) test2 "\ - ; if grep file.11 test.out >$(NULL) ; then : \ - ; if grep file.99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzdir) test3 > test.out - @ X="$(zzdir) test3 "\ - ; if grep file.111 test.out >$(NULL) ; then : \ - ; if grep file.999 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - @ X="$(zzdir) test000" ; echo ./$$X "(negative test)" \ - ; if ./$(zzdir) test000 >test.out ; then : \ - ; echo ..$$X.. FAIL ; false ; else echo ..$$X.. OK ; true ; fi - rm test.out - -check-zzcat : test1.zip test2.zip test3.zip $(zzcat) - @ echo ___ $@ ___ - ./$(zzcat) test1/file.1 test1/file.9 > test.out - @ X="$(zzcat) test1/file.1 test1/file.9 "\ - ; if grep file-1 test.out >$(NULL) ; then : \ - ; if grep file-9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzcat) test2/file.11 test2/file.99 > test.out - @ X="$(zzcat) test2/file.10 test2/file.99 "\ - ; if grep file-10 test.out >$(NULL) ; then : \ - ; if grep file-99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzcat) test3/file.111 test3/file.999 > test.out - @ X="$(zzcat) test3/file.111 test3/file.999 "\ - ; if grep file-100 test.out >$(NULL) ; then : \ - ; if grep file-999 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - @ X="$(zzcat) test1/file.999" ; echo ./$$X "(negative test)" \ - ; if ./$(zzdir) test1/file.999 >test.out ; then : \ - ; echo ..$$X.. FAIL ; false ; else echo ..$$X.. OK ; true ; fi - rm test.out - -check-zzxordir : test1.dat test2.dat $(zzxordir) - @ echo ___ $@ ___ - ./$(zzxordir) test1 > test.out - @ X="$(zzxordir) test1 "\ - ; if grep file.1 test.out >$(NULL) ; then : \ - ; if grep file.9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzxordir) test2.dat > test.out - @ X="$(zzxordir) test2.dat "\ - ; if grep file.11 test.out >$(NULL) ; then : \ - ; if grep file.99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - rm test.out - -check-zzxorcat : test1.dat test2.dat $(zzxorcat) - @ echo ___ $@ ___ - ./$(zzxorcat) test1/file.1 test1/file.9 > test.out - @ X="$(zzxorcat) test1/file.1 test1/file.9 "\ - ; if grep file-1 test.out >$(NULL) ; then : \ - ; if grep file-9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzxorcat) test2.dat/file.11 test2/file.99 > test.out - @ X="$(zzxorcat) test2.dat/file.10 test2/file.99 "\ - ; if grep file-10 test.out >$(NULL) ; then : \ - ; if grep file-99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - rm test.out - -# ------------------------------------------------------------------- -ECHON = echo -n -BRUTE = 0 # default is less than a thousand tests -brute : # which is still a brute force selftest - @ echo $(MKZIP) $@: \ - ; for u in 1 2 3 4 5 6 8 9 ; do for v in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for w in 1 2 3 4 5 6 8 9 ; do for x in $(BRUTE) ; do : \ - ; $(ECHON) $$u$$v$$w$$x: \ - ; rm -rf test.tmp ; mkdir test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for m in 1 2 3 4 5 6 8 9 ; do for n in $(BRUTE) ; do : \ - ; echo "file-$$i$$j$$m$$n" >test.tmp/file$$i$$j$$m$$n.txt \ - ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test -f test.tmp/file$$i$$j$$m$$n.txt || exit 2 \ - ; (cd test.tmp && $(MKZIP) ../test$$u$$v$$w$$x.zip file*.* >$(NULL)) \ - ; rm -rf test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for m in 1 2 3 4 5 6 8 9 ; do for n in $(BRUTE) ; do : \ - ; ./$(zzcat) test$$u$$v$$w$$x/file$$i$$j$$m$$n.txt >test.out \ - ; if grep file-$$i$$j$$m$$n test.out >$(NULL) ; then rm test.out \ - ; else echo ERROR file-$$i$$j$$m$$n diff in test$$u$$v$$w$$x \ - ; exit 1 ; fi \ - ; ./$(zzdir) test$$u$$v$$w$$x >test.out \ - ; if grep file$$i$$j$$m$$n.txt test.out >$(NULL) ; then rm test.out \ - ; else echo ERROR file$$i$$j$$m$$n.txt not in test$$u$$v$$w$$x \ - ; exit 1 ; fi \ - ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; rm test$$u$$v$$w$$x.zip \ - ; done ; done ; done ; done ; true - -# ------------------------------------------------------------------- - -noinst_PROGRAMS = zzipself zzipsetstub - -zzipself_LDFLAGS = @ZZIPLIB_LDFLAGS@ -zzipself_LDADD = ../zzip/libzzip.la @RESOLVES@ -lz - -../zzip/libzzip.la : @top_srcdir@/zzip/*.c - (cd ../zzip && $(MAKE) `basename $@`) - -zzshowme$(EXEEXT) : zzipself$(EXEEXT) zzipsetstub$(EXEEXT) - $(MKZIP) -0 -j $@ .libs/zzipself$(EXEEXT) - $(MKZIP) -9 -j $@ $(README) - - test -s $@ || cp test2.zip $@ - test ! -f $@.zip || mv $@.zip $@ - ./zzipsetstub $@ .libs/zzipself$(EXEEXT) - - chmod +x $@ - -check-sfx : zzshowme$(EXEEXT) - echo :$@: "./zzshowme readme >readme.out 2>readme.err" - export LD_LIBRARY_PATH="../zzip/.libs:$$LD_LIBRARY_PATH" \ - ; ./zzshowme readme >readme.out 2>readme.err ; true - @ echo 'diff readme.out $(README) || grep "libzzip-" readme.err' \ - ; if test -s readme.out ; then diff readme.out $(README) \ - ; else grep "libzzip-" readme.err || echo "readme.out is empty!" ; fi - rm readme.out readme.err diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.in b/Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.in deleted file mode 100644 index 996f9dfbbd4..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/Makefile.in +++ /dev/null @@ -1,737 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -target_triplet = @target@ -noinst_PROGRAMS = zzipself$(EXEEXT) zzipsetstub$(EXEEXT) -subdir = test -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/ac_compile_check_sizeof.m4 \ - $(top_srcdir)/m4/ac_set_default_paths_system.m4 \ - $(top_srcdir)/m4/ac_sys_largefile_sensitive.m4 \ - $(top_srcdir)/m4/acx_restrict.m4 \ - $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ - $(top_srcdir)/m4/ax_cflags_no_writable_strings.m4 \ - $(top_srcdir)/m4/ax_cflags_strict_prototypes.m4 \ - $(top_srcdir)/m4/ax_cflags_warn_all.m4 \ - $(top_srcdir)/m4/ax_create_pkgconfig_info.m4 \ - $(top_srcdir)/m4/ax_enable_builddir_uname.m4 \ - $(top_srcdir)/m4/ax_expand_prefix.m4 \ - $(top_srcdir)/m4/ax_maintainer_mode_auto_silent.m4 \ - $(top_srcdir)/m4/ax_not_enable_frame_pointer.m4 \ - $(top_srcdir)/m4/ax_prefix_config_h.m4 \ - $(top_srcdir)/m4/ax_set_version_info.m4 \ - $(top_srcdir)/m4/ax_spec_file.m4 \ - $(top_srcdir)/m4/ax_spec_package_version.m4 \ - $(top_srcdir)/m4/ax_warning_default_aclocaldir.m4 \ - $(top_srcdir)/m4/ax_warning_default_pkgconfig.m4 \ - $(top_srcdir)/m4/patch_libtool_on_darwin_zsh_overquoting.m4 \ - $(top_srcdir)/m4/patch_libtool_sys_lib_search_path_spec.m4 \ - $(top_srcdir)/m4/patch_libtool_to_add_host_cc.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/uses/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -PROGRAMS = $(noinst_PROGRAMS) -zzipself_SOURCES = zzipself.c -zzipself_OBJECTS = zzipself.$(OBJEXT) -zzipself_DEPENDENCIES = ../zzip/libzzip.la -zzipsetstub_SOURCES = zzipsetstub.c -zzipsetstub_OBJECTS = zzipsetstub.$(OBJEXT) -zzipsetstub_LDADD = $(LDADD) -depcomp = $(SHELL) $(top_srcdir)/uses/depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = zzipself.c zzipsetstub.c -DIST_SOURCES = zzipself.c zzipsetstub.c -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AS = @AS@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CONFIG_FILES = @CONFIG_FILES@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -I$(top_builddir) -I$(top_srcdir) # also for automake 1.4 -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -ECHO = @ECHO@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LARGEFILE_CFLAGS = @LARGEFILE_CFLAGS@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ -MAKEINFO = @MAKEINFO@ -MKZIP = @MKZIP@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -PKG_CONFIG = @PKG_CONFIG@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RELEASE_INFO = @RELEASE_INFO@ -RESOLVES = @RESOLVES@ -SDL = @SDL@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -THREAD_SAFE = @THREAD_SAFE@ -VERSION = @VERSION@ -VERSION_INFO = @VERSION_INFO@ -XMLTO = @XMLTO@ -ZIPTESTS = @ZIPTESTS@ -ZLIB_INCL = @ZLIB_INCL@ -ZLIB_LDIR = @ZLIB_LDIR@ -ZLIB_VERSION = @ZLIB_VERSION@ -ZZIPLIB_LDFLAGS = @ZZIPLIB_LDFLAGS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_AS = @ac_ct_AS@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DLLTOOL = @ac_ct_DLLTOOL@ -ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -aclocaldir = @aclocaldir@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -ax_enable_builddir_sed = @ax_enable_builddir_sed@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -datadir = @datadir@ -docdir = @docdir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pkgconfig_libdir = @pkgconfig_libdir@ -pkgconfig_libfile = @pkgconfig_libfile@ -pkgconfigdir = @pkgconfigdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -AUTOMAKE_OPTIONS = 1.4 foreign -AUTOTOOL_VERSION = autoconf-2.52 automake-1.5 libtool-1.4.2 -DEFAULT_INCLUDES = # nothing - no default of -I. -I$(srcdir) -EXTRA_DIST = test.zip test1.zip -DISTCLEANFILES = test*.dat test2.zip test3.zip -zzcat = ../bins/zzcat$(EXEEXT) -zzdir = ../bins/zzdir$(EXEEXT) -zziptest = ../bins/zziptest$(EXEEXT) -zzxorcat = ../bins/zzxorcat$(EXEEXT) -zzxordir = ../bins/zzxordir$(EXEEXT) -zzxorcopy = ../bins/zzxorcopy$(EXEEXT) - -# ------------------------------------------------------------------- -NULL = /dev/null -README = $(top_srcdir)/README -testdatadir = $(top_srcdir)/testdata.d - -# ------------------------------------------------------------------- -stdtests = @ZIPTESTS@ check-test0 check-test1 check-zzdir check-zzcat -xortests = @ZIPTESTS@ check-zzxor check-zzxordir check-zzxorcat -sfxtests = @ZIPTESTS@ check-sfx - -# ------------------------------------------------------------------- -ECHON = echo -n -BRUTE = 0 # default is less than a thousand tests -zzipself_LDFLAGS = @ZZIPLIB_LDFLAGS@ -zzipself_LDADD = ../zzip/libzzip.la @RESOLVES@ -lz -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign test/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; for p in $$list; do \ - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f $$p $$f"; \ - rm -f $$p $$f ; \ - done -zzipself$(EXEEXT): $(zzipself_OBJECTS) $(zzipself_DEPENDENCIES) - @rm -f zzipself$(EXEEXT) - $(LINK) $(zzipself_LDFLAGS) $(zzipself_OBJECTS) $(zzipself_LDADD) $(LIBS) -zzipsetstub$(EXEEXT): $(zzipsetstub_OBJECTS) $(zzipsetstub_DEPENDENCIES) - @rm -f zzipsetstub$(EXEEXT) - $(LINK) $(zzipsetstub_LDFLAGS) $(zzipsetstub_OBJECTS) $(zzipsetstub_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zzipself.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zzipsetstub.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) check-local -check: check-am -all-am: Makefile $(PROGRAMS) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \ - mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: CTAGS GTAGS all all-am check check-am check-local clean \ - clean-generic clean-libtool clean-noinstPROGRAMS ctags \ - distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-info-am - - -$(zzcat) $(zzdir) $(zziptest) $(zzxorcat) $(zzxordir) $(xorcopy) : \ - @top_srcdir@/bins/*.c @top_srcdir@/zzip/*.c - (cd ../bins && $(MAKE)) - -testzip testzips : test.zip test1.zip test2.zip test3.zip - -test.zip tmp/../test.zip : $(README) - - test -d tmp || mkdir tmp - - $(MAKE) test0.zip && mv test0.zip $@ - test -s $@ || cp $(srcdir)/test.zip $@ -test0.zip : $(README) - test -f README || ln -s $(README) . - - $(MKZIP) test_.zip README - @ if test -s test_.zip ;then echo mv test_.zip $@ ; mv test_.zip $@ ;fi - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test1.zip : - @ echo $(MKZIP) $@ ... "(10 files)" \ - ; mkdir test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 \ - ; do echo "file-$i" >test.tmp/file.$$i ; done \ - ; echo " a plain text file here" >test.tmp/README \ - ; (cd test.tmp && $(MKZIP) ../$@ file.* >$(NULL)) \ - ; rm -rf test.tmp - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test2.zip : # will not be shipped in source tarball - @ echo $(MKZIP) $@ ... "(100 files)" \ - ; mkdir test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 \ - ; do echo "file-$i" >test.tmp/file.$$j$$i ; done done \ - ; (cd test.tmp && $(MKZIP) ../$@ file.* >$(NULL)) \ - ; rm -rf test.tmp - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test3.zip : # will not be shipped in source tarball - @ echo $(MKZIP) $@ ... "(1000 files)" \ - ; mkdir test.tmp ; for h in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 \ - ; do echo "file-$i" >test.tmp/file.$$h$$j$$i ; done done done \ - ; (cd test.tmp && $(MKZIP) ../$@ file.* >$(NULL)) \ - ; rm -rf test.tmp - @ test -d $(testdatadir) || mkdir $(testdatadir); if test -s $@ \ - ; then echo cp $@ $(testdatadir)/ ; cp $@ $(testdatadir)/ \ - ; else echo cp $(testdatadir)/$@ .; cp $(testdatadir)/$@ . \ - ; fi ; echo test -s $@ ; test -s $@ - -test.dat : test.zip - $(zzxorcopy) $? $@ -test1.dat : test1.zip - $(zzxorcopy) $? $@ -test2.dat : test2.zip - $(zzxorcopy) $? $@ -test3.dat : test3.zip - $(zzxorcopy) $? $@ - -check-local: check-readme $(stdtests) $(xortests) $(sfxtests) - -check-readme : $(zzcat) test.zip - @ test -f test.zip || $(MAKE) tmp/../test.zip - test -s test.zip - @ echo :$@: checking $(zzcat) test/README - @ $(zzcat) test/README >test.out - @ if diff test.out $(README) >$(NULL) \ - ; then rm test.out ; echo check OK ; true \ - ; else rm test.out ; echo check FAIL ; false ; fi - -check-zzxor : $(zzxorcat) test.dat - @ echo :$@: checking $(zzxorcat) test.dat/README - @ $(zzxorcat) test.dat/README >test.out - @ if diff test.out $(README) >$(NULL) \ - ; then rm test.out ; echo check OK ; true \ - ; else rm test.out ; echo check FAIL ; false ; fi - -test: test0 test1 test2 test3 -test0: $(zziptest) - $(zziptest) test.zip -test1: $(zziptest) - $(zziptest) test1.zip -test2: $(zzcat) - $(zzcat) test/README -test3: $(zzdir) - $(zzdir) test1.zip - -check-test0 : $(zziptest) - @ echo :$@: quick selftest - $(zziptest) test.zip >test.out - rm test.out -check-test1 : $(zziptest) - @ test -f test1.zip || ln -s $(srcdir)/test1.zip test1.zip - @ echo :$@: longer selftest "(about ten seconds)" - $(zziptest) test1.zip >test.out - rm test.out - -check-zzdir : test1.zip test2.zip test3.zip $(zzdir) - @ echo :$@: zip directory access - ./$(zzdir) test1 > test.out - @ X="$(zzdir) test1 "\ - ; if grep file.1 test.out >$(NULL) ; then : \ - ; if grep file.9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzdir) test2 > test.out - @ X="$(zzdir) test2 "\ - ; if grep file.11 test.out >$(NULL) ; then : \ - ; if grep file.99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzdir) test3 > test.out - @ X="$(zzdir) test3 "\ - ; if grep file.111 test.out >$(NULL) ; then : \ - ; if grep file.999 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - @ X="$(zzdir) test000" ; echo ./$$X "(negative test)" \ - ; if ./$(zzdir) test000 >test.out ; then : \ - ; echo ..$$X.. FAIL ; false ; else echo ..$$X.. OK ; true ; fi - rm test.out - -check-zzcat : test1.zip test2.zip test3.zip $(zzcat) - @ echo ___ $@ ___ - ./$(zzcat) test1/file.1 test1/file.9 > test.out - @ X="$(zzcat) test1/file.1 test1/file.9 "\ - ; if grep file-1 test.out >$(NULL) ; then : \ - ; if grep file-9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzcat) test2/file.11 test2/file.99 > test.out - @ X="$(zzcat) test2/file.10 test2/file.99 "\ - ; if grep file-10 test.out >$(NULL) ; then : \ - ; if grep file-99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzcat) test3/file.111 test3/file.999 > test.out - @ X="$(zzcat) test3/file.111 test3/file.999 "\ - ; if grep file-100 test.out >$(NULL) ; then : \ - ; if grep file-999 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - @ X="$(zzcat) test1/file.999" ; echo ./$$X "(negative test)" \ - ; if ./$(zzdir) test1/file.999 >test.out ; then : \ - ; echo ..$$X.. FAIL ; false ; else echo ..$$X.. OK ; true ; fi - rm test.out - -check-zzxordir : test1.dat test2.dat $(zzxordir) - @ echo ___ $@ ___ - ./$(zzxordir) test1 > test.out - @ X="$(zzxordir) test1 "\ - ; if grep file.1 test.out >$(NULL) ; then : \ - ; if grep file.9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzxordir) test2.dat > test.out - @ X="$(zzxordir) test2.dat "\ - ; if grep file.11 test.out >$(NULL) ; then : \ - ; if grep file.99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - rm test.out - -check-zzxorcat : test1.dat test2.dat $(zzxorcat) - @ echo ___ $@ ___ - ./$(zzxorcat) test1/file.1 test1/file.9 > test.out - @ X="$(zzxorcat) test1/file.1 test1/file.9 "\ - ; if grep file-1 test.out >$(NULL) ; then : \ - ; if grep file-9 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - ./$(zzxorcat) test2.dat/file.11 test2/file.99 > test.out - @ X="$(zzxorcat) test2.dat/file.10 test2/file.99 "\ - ; if grep file-10 test.out >$(NULL) ; then : \ - ; if grep file-99 test.out >$(NULL) ; then : \ - ; echo ..$$X.. OK ; true ; else echo ..$$X.. FAIL ; false ; fi fi - rm test.out -brute : # which is still a brute force selftest - @ echo $(MKZIP) $@: \ - ; for u in 1 2 3 4 5 6 8 9 ; do for v in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for w in 1 2 3 4 5 6 8 9 ; do for x in $(BRUTE) ; do : \ - ; $(ECHON) $$u$$v$$w$$x: \ - ; rm -rf test.tmp ; mkdir test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for m in 1 2 3 4 5 6 8 9 ; do for n in $(BRUTE) ; do : \ - ; echo "file-$$i$$j$$m$$n" >test.tmp/file$$i$$j$$m$$n.txt \ - ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test -f test.tmp/file$$i$$j$$m$$n.txt || exit 2 \ - ; (cd test.tmp && $(MKZIP) ../test$$u$$v$$w$$x.zip file*.* >$(NULL)) \ - ; rm -rf test.tmp \ - ; for i in 1 2 3 4 5 6 8 9 ; do for j in 1 2 3 4 5 6 7 8 9 ; do : \ - ; for m in 1 2 3 4 5 6 8 9 ; do for n in $(BRUTE) ; do : \ - ; ./$(zzcat) test$$u$$v$$w$$x/file$$i$$j$$m$$n.txt >test.out \ - ; if grep file-$$i$$j$$m$$n test.out >$(NULL) ; then rm test.out \ - ; else echo ERROR file-$$i$$j$$m$$n diff in test$$u$$v$$w$$x \ - ; exit 1 ; fi \ - ; ./$(zzdir) test$$u$$v$$w$$x >test.out \ - ; if grep file$$i$$j$$m$$n.txt test.out >$(NULL) ; then rm test.out \ - ; else echo ERROR file$$i$$j$$m$$n.txt not in test$$u$$v$$w$$x \ - ; exit 1 ; fi \ - ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; test "$$i$$j$$m$$n" = "$$u$$v$$w$$x" && break \ - ; done ; rm test$$u$$v$$w$$x.zip \ - ; done ; done ; done ; done ; true - -../zzip/libzzip.la : @top_srcdir@/zzip/*.c - (cd ../zzip && $(MAKE) `basename $@`) - -zzshowme$(EXEEXT) : zzipself$(EXEEXT) zzipsetstub$(EXEEXT) - $(MKZIP) -0 -j $@ .libs/zzipself$(EXEEXT) - $(MKZIP) -9 -j $@ $(README) - - test -s $@ || cp test2.zip $@ - test ! -f $@.zip || mv $@.zip $@ - ./zzipsetstub $@ .libs/zzipself$(EXEEXT) - - chmod +x $@ - -check-sfx : zzshowme$(EXEEXT) - echo :$@: "./zzshowme readme >readme.out 2>readme.err" - export LD_LIBRARY_PATH="../zzip/.libs:$$LD_LIBRARY_PATH" \ - ; ./zzshowme readme >readme.out 2>readme.err ; true - @ echo 'diff readme.out $(README) || grep "libzzip-" readme.err' \ - ; if test -s readme.out ; then diff readme.out $(README) \ - ; else grep "libzzip-" readme.err || echo "readme.out is empty!" ; fi - rm readme.out readme.err -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/README b/Build/source/texk/web2c/luatexdir/zziplib/test/README deleted file mode 100644 index 5668eda043a..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/README +++ /dev/null @@ -1,47 +0,0 @@ -PROJECT - The zziplib provides read access to zipped files in a zip-archive, - using compression based solely on free algorithms provided by zlib. - It also provides a functionality to overlay the archive filesystem - with the filesystem of the operating system environment. - -AUTHOR - The project was originally written by Tomi Ollila, later largely - rewritten by Guido Draheim, and extended with contributions in - the years to follow. Guido Draheim <guidod@gmx.de> holds the full - copyright to the zziplib sources. - -COPYING - The zziplib may be used freely under the restrictions of the - GNU Lesser General Public License version 2 or later. Alternativly - the Mozilla Public license can be chosen. The sources are under - a dual license, as long as the MPL hint is not removed, the modified - files will be again under a dual license for the final recipient. - -LICENSING - If you can not use a dynalinked library according to LGPL rules, - then look at docs/copying.htm for a few hints. Generally the LGPL - has a way for staticlinking as well as the MPL has a way. Anyway, - special (paid) licenses can be negotiated with the copyright holder. - -HOMEPAGE - The zziplib project is hosted at SourceForge, the complete - documentation can be found at http://zziplib.sf.net - the - SourceForge servers are also used to distribute the sources - of the zziplib project. Releases are announced via the - freshmeat services on http://freshmeat.net/projects/zziplib - -INSTALLATION - The zziplib sources are built with gnu autotools and they should - be easy to install on unixish systems via the usual sequence of - `configure && make && make check && make install`. Many distributors - ship prebuilt packages e.g. in rpm format. Additionally there are - MSVC project files shipped along for usage with the Microsoft - VisualC series of compilers. There should be no problem either - when crosscompiling the zziplib for a third host platform. - -MAINTAINANCE - The zziplib library is intentionally a lightweight interface to - zip files. The author take patches but please consider to put - complex extensions into separate modules rather than implanting them - right into the core of the library engine. All Patches and Bug Reports - should be sent to Guido Draheim <guidod@gmx.de>. diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/test.zip b/Build/source/texk/web2c/luatexdir/zziplib/test/test.zip Binary files differdeleted file mode 100644 index 8f361c77f3f..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/test.zip +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/test1.zip b/Build/source/texk/web2c/luatexdir/zziplib/test/test1.zip Binary files differdeleted file mode 100644 index c46015d9431..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/test1.zip +++ /dev/null diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/zzipself.c b/Build/source/texk/web2c/luatexdir/zziplib/test/zzipself.c deleted file mode 100644 index 2cd115e75af..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/zzipself.c +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (c) 2000,2001,2002 Guido Draheim <guidod@gmx.de> - * Use freely under the restrictions of the ZLIB License - */ - -#include <stdio.h> -#include <stdlib.h> -#include <zzip/zzip.h> - -#ifndef O_BINARY -#define O_BINARY 0 -#endif - -static const char usage[] = -{ - " zzipself <file>... \n" - " - prints the file to stdout, so you may want to redirect the output; \n" - " the file can be a normal file or an inflated part of a zip-archive, \n" - " however in this case the zip-archive happens to be the executed\n" - " binary itself, as if this program is a self-extract header of a zip. \n" - " zzipself README # same as # zzcat zzipself/README \n" -}; - -int -main (int argc, char ** argv) -{ - int status = 0; - int argn; - if (argc <= 1) - { - printf (usage); - exit (0); - } - - for (argn=1; argn < argc; argn++) - { - /* ZZIP_FILE* fp = zzip_fopen (argv[0]+"/"+argv[argn], "rbi"); */ - /* .... = zzip_open (argv[0]+"/"+argv[argn], O_RDONLY|O_BINARY, - * ZZIP_CASELESS|ZZIP_ONLYZIP, ext, 0); */ - - static const char* ext[] = { "", ".exe", ".EXE", 0 }; - ZZIP_FILE* fp; - ZZIP_DIR* zip = zzip_opendir_ext_io (argv[0], - ZZIP_CASELESS|ZZIP_ONLYZIP, ext, 0); - - if (! zip) { perror(argv[0]); break; } - - fp = zzip_file_open (zip, argv[argn], ZZIP_CASELESS); - - if (! fp) - { - perror (argv[argn]); - continue; - }else{ - char buf[17]; - int n; - - /* read chunks of 16 bytes into buf and print them to stdout */ - while (0 < (n = zzip_read(fp, buf, 16))) - { - buf[n] = '\0'; -# ifdef STDOUT_FILENO - write (STDOUT_FILENO, buf, n); -# else - fwrite (buf, 1, n, stdout); -# endif - } - - if (n == -1) - { - perror (argv[argn]); - status ++; - } - } - - zzip_file_close (fp); - zzip_closedir (zip); - } - - return status; -} - -/* - * Local variables: - * c-file-style: "stroustrup" - * End: - */ diff --git a/Build/source/texk/web2c/luatexdir/zziplib/test/zzipsetstub.c b/Build/source/texk/web2c/luatexdir/zziplib/test/zzipsetstub.c deleted file mode 100644 index 5d5ad0c903b..00000000000 --- a/Build/source/texk/web2c/luatexdir/zziplib/test/zzipsetstub.c +++ /dev/null @@ -1,61 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -static const char usage[] = -{ - "zzipsetstub <zipfile> <zipsfxstub>... \n" - " overwrite the header of the zipfile with the sfxstub code.\n" - " this is usually the last step in creating a selfextract archive\n" - " or an application with all its data appended as a zip.\n" -}; - -int -main (int argc, char ** argv) -{ - int argn; - if (argc <= 2) - { - printf (usage); - exit (0); - } - - { - char buf[17]; int n; - char* zipfile = 0; FILE* zipFILE = 0; - char* sfxfile = 0; FILE* sfxFILE = 0; - - for (argn=1; argn < argc; argn++) - { - if (argv[argn][0] == '-') continue; - if (! zipfile) { zipfile = argv[argn]; continue; } - if (! sfxfile) { sfxfile = argv[argn]; continue; } - /* superflous argument */ - } - - zipFILE = fopen (zipfile, "r+b"); - if (! zipFILE) { perror (zipfile); return 1; } - - sfxFILE = fopen (sfxfile, "rb"); - if (! sfxFILE) { perror (sfxfile); return 1; } - - while (0 < (n = fread(buf, 1, 16, sfxFILE))) - { - buf[n] = '\0'; - fwrite (buf, 1, n, zipFILE); - } - - if (n == -1) - perror (argv[argn]); - - fclose (sfxFILE); - fclose (zipFILE); - } - - return 0; -} - -/* - * Local variables: - * c-file-style: "stroustrup" - * End: - */ |