summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/zziplib-src/test/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/zziplib/zziplib-src/test/Makefile.in')
-rw-r--r--Build/source/libs/zziplib/zziplib-src/test/Makefile.in450
1 files changed, 176 insertions, 274 deletions
diff --git a/Build/source/libs/zziplib/zziplib-src/test/Makefile.in b/Build/source/libs/zziplib/zziplib-src/test/Makefile.in
index 5bd4eb40b26..7b6c8ffda8f 100644
--- a/Build/source/libs/zziplib/zziplib-src/test/Makefile.in
+++ b/Build/source/libs/zziplib/zziplib-src/test/Makefile.in
@@ -1,9 +1,8 @@
-# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# Makefile.in generated by automake 1.13.4 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
-# Inc.
+# Copyright (C) 1994-2013 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.
@@ -16,6 +15,51 @@
@SET_MAKE@
VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
@@ -37,7 +81,9 @@ host_triplet = @host@
target_triplet = @target@
noinst_PROGRAMS = zzipself$(EXEEXT) zzipsetstub$(EXEEXT)
subdir = test
-DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+ $(top_srcdir)/uses/mkinstalldirs $(top_srcdir)/uses/depcomp \
+ README
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 \
@@ -50,7 +96,7 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ac_compile_check_sizeof.m4 \
$(top_srcdir)/m4/ax_check_aligned_access_required.m4 \
$(top_srcdir)/m4/ax_configure_args.m4 \
$(top_srcdir)/m4/ax_create_pkgconfig_info.m4 \
- $(top_srcdir)/m4/ax_enable_builddir_uname.m4 \
+ $(top_srcdir)/m4/ax_enable_builddir.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 \
@@ -78,31 +124,79 @@ PROGRAMS = $(noinst_PROGRAMS)
zzipself_SOURCES = zzipself.c
zzipself_OBJECTS = zzipself.$(OBJEXT)
zzipself_DEPENDENCIES = ../zzip/libzzip.la
-zzipself_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(zzipself_LDFLAGS) \
- $(LDFLAGS) -o $@
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
+zzipself_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(zzipself_LDFLAGS) $(LDFLAGS) -o $@
zzipsetstub_SOURCES = zzipsetstub.c
zzipsetstub_OBJECTS = zzipsetstub.$(OBJEXT)
zzipsetstub_LDADD = $(LDADD)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
depcomp = $(SHELL) $(top_srcdir)/uses/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo " CC " $@;
+am__v_CC_1 =
CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo " CCLD " $@;
+am__v_CCLD_1 =
SOURCES = zzipself.c zzipsetstub.c
DIST_SOURCES = zzipself.c zzipsetstub.c
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates. Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+ BEGIN { nonempty = 0; } \
+ { items[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique. This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+ list='$(am__tagged_files)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
@@ -251,7 +345,7 @@ top_srcdir = @top_srcdir@
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
+EXTRA_DIST = test.zip test1.zip zziptests.py
DISTCLEANFILES = test*.dat test2.zip test3.zip
zzcat = ../bins/zzcat$(EXEEXT)
zzdir = ../bins/zzdir$(EXEEXT)
@@ -266,13 +360,8 @@ README = $(top_srcdir)/README
testdatadir = $(top_builddir)/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
+newtests = @ZIPTESTS@ check-tests
zzipself_LDFLAGS = @ZZIPLIB_LDFLAGS@
zzipself_LDADD = ../zzip/libzzip.la @RESOLVES@ -lz
all: all-am
@@ -318,12 +407,14 @@ clean-noinstPROGRAMS:
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
-zzipself$(EXEEXT): $(zzipself_OBJECTS) $(zzipself_DEPENDENCIES)
+
+zzipself$(EXEEXT): $(zzipself_OBJECTS) $(zzipself_DEPENDENCIES) $(EXTRA_zzipself_DEPENDENCIES)
@rm -f zzipself$(EXEEXT)
- $(zzipself_LINK) $(zzipself_OBJECTS) $(zzipself_LDADD) $(LIBS)
-zzipsetstub$(EXEEXT): $(zzipsetstub_OBJECTS) $(zzipsetstub_DEPENDENCIES)
+ $(AM_V_CCLD)$(zzipself_LINK) $(zzipself_OBJECTS) $(zzipself_LDADD) $(LIBS)
+
+zzipsetstub$(EXEEXT): $(zzipsetstub_OBJECTS) $(zzipsetstub_DEPENDENCIES) $(EXTRA_zzipsetstub_DEPENDENCIES)
@rm -f zzipsetstub$(EXEEXT)
- $(LINK) $(zzipsetstub_OBJECTS) $(zzipsetstub_LDADD) $(LIBS)
+ $(AM_V_CCLD)$(LINK) $(zzipsetstub_OBJECTS) $(zzipsetstub_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
@@ -335,25 +426,25 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zzipsetstub.Po@am__quote@
.c.o:
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
.c.obj:
-@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
.c.lo:
-@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
@@ -361,26 +452,15 @@ mostlyclean-libtool:
clean-libtool:
-rm -rf .libs _libs
-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; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
+ID: $(am__tagged_files)
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
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; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
+ $(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
@@ -392,15 +472,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$$unique; \
fi; \
fi
-ctags: CTAGS
-CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- 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; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+ $(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
@@ -409,6 +485,21 @@ GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+ list='$(am__tagged_files)'; \
+ case "$(srcdir)" in \
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+ *) sdir=$(subdir)/$(srcdir) ;; \
+ esac; \
+ for i in $$list; do \
+ if test -f "$$i"; then \
+ echo "$(subdir)/$$i"; \
+ else \
+ echo "$$sdir/$$i"; \
+ fi; \
+ done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -458,10 +549,15 @@ install-am: all-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
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
mostlyclean-generic:
clean-generic:
@@ -547,9 +643,9 @@ uninstall-am:
.MAKE: check-am install-am install-strip
-.PHONY: CTAGS GTAGS all all-am check check-am check-local clean \
- clean-generic clean-libtool clean-noinstPROGRAMS ctags \
- distclean distclean-compile distclean-generic \
+.PHONY: CTAGS GTAGS TAGS all all-am check check-am check-local clean \
+ clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \
+ ctags ctags-am 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-dvi install-dvi-am install-exec \
@@ -559,7 +655,7 @@ uninstall-am:
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
+ tags tags-am uninstall uninstall-am
$(zzcat) $(zzdir) $(zziptest) $(zzxorcat) $(zzxordir) $(xorcopy) : \
@@ -572,74 +668,13 @@ 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 $@
-
-test4.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) -n : ../$@ 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-local: check-readme $(sfxtests) $(newtests)
+
+check-tests: tests
+tests:
+ @ test -f zziptests.py || cp -s -v $(srcdir)/zziptests.py .
+ python zziptests.py -v
check-readme : $(zzcat) test.zip
@ test -f test.zip || $(MAKE) tmp/../test.zip
@@ -650,139 +685,6 @@ check-readme : $(zzcat) test.zip
; 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
-test4: $(zzdir) test4.zip
- $(zzcat) test4/file.113
-
-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 $@`)