diff options
author | unknown <unknown@unknown> | 2009-10-23 04:30:00 +0000 |
---|---|---|
committer | unknown <unknown@unknown> | 2009-10-23 04:30:00 +0000 |
commit | 1bd02c3f58179927245376d9f0762d19a351df23 (patch) | |
tree | ef00b2976f8e4e9a20277f1aa883c406e4935ebe /test | |
parent | ddf5c42f67757000d6ec7686b92a667c2a252dca (diff) | |
download | iksemel-1bd02c3f58179927245376d9f0762d19a351df23.tar.gz iksemel-1bd02c3f58179927245376d9f0762d19a351df23.tar.xz iksemel-1bd02c3f58179927245376d9f0762d19a351df23.zip |
Imported from iksemel-1.4.tar.gz.vendor
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.in | 161 | ||||
-rw-r--r-- | test/tst-dom.c | 2 | ||||
-rw-r--r-- | test/tst-filter.c | 2 | ||||
-rw-r--r-- | test/tst-iks.c | 2 | ||||
-rw-r--r-- | test/tst-ikstack.c | 2 | ||||
-rw-r--r-- | test/tst-jid.c | 2 | ||||
-rw-r--r-- | test/tst-md5.c | 9 | ||||
-rw-r--r-- | test/tst-sax.c | 66 | ||||
-rw-r--r-- | test/tst-sha.c | 2 |
9 files changed, 143 insertions, 105 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index a47e568..e176a8b 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. +# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008 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. @@ -14,15 +14,11 @@ @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 @@ -36,6 +32,9 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ +TESTS = tst-ikstack$(EXEEXT) tst-iks$(EXEEXT) tst-sax$(EXEEXT) \ + tst-dom$(EXEEXT) tst-sha$(EXEEXT) tst-md5$(EXEEXT) \ + tst-filter$(EXEEXT) tst-jid$(EXEEXT) noinst_PROGRAMS = tst-ikstack$(EXEEXT) tst-iks$(EXEEXT) \ tst-sax$(EXEEXT) tst-dom$(EXEEXT) tst-sha$(EXEEXT) \ tst-md5$(EXEEXT) tst-filter$(EXEEXT) tst-jid$(EXEEXT) @@ -73,17 +72,18 @@ tst_sax_DEPENDENCIES = $(top_builddir)/src/libiksemel.la am_tst_sha_OBJECTS = tst-sha.$(OBJEXT) tst_sha_OBJECTS = $(am_tst_sha_OBJECTS) tst_sha_DEPENDENCIES = $(top_builddir)/src/libiksemel.la -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include depcomp = $(SHELL) $(top_srcdir)/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) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --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 $@ +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ SOURCES = $(tst_dom_SOURCES) $(tst_filter_SOURCES) $(tst_iks_SOURCES) \ $(tst_ikstack_SOURCES) $(tst_jid_SOURCES) $(tst_md5_SOURCES) \ $(tst_sax_SOURCES) $(tst_sha_SOURCES) @@ -94,8 +94,6 @@ 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@ AUTOCONF = @AUTOCONF@ @@ -114,8 +112,7 @@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ -DO_POSIX_FALSE = @DO_POSIX_FALSE@ -DO_POSIX_TRUE = @DO_POSIX_TRUE@ +DSYMUTIL = @DSYMUTIL@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ @@ -124,6 +121,8 @@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ F77 = @F77@ FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ @@ -138,6 +137,8 @@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ @@ -148,21 +149,18 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ RANLIB = @RANLIB@ +SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ -ac_ct_AR = @ac_ct_AR@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ -ac_ct_OBJDUMP = @ac_ct_OBJDUMP@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -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@ @@ -174,30 +172,41 @@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ +builddir = @builddir@ datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ +htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ +localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ +psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ INCLUDES = -I$(top_srcdir)/include -TESTS = tst-ikstack tst-iks tst-sax tst-dom tst-sha tst-md5 tst-filter tst-jid tst_ikstack_LDADD = $(top_builddir)/src/libiksemel.la tst_ikstack_SOURCES = tst-ikstack.c tst_iks_LDADD = $(top_builddir)/src/libiksemel.la @@ -256,28 +265,28 @@ clean-noinstPROGRAMS: done tst-dom$(EXEEXT): $(tst_dom_OBJECTS) $(tst_dom_DEPENDENCIES) @rm -f tst-dom$(EXEEXT) - $(LINK) $(tst_dom_LDFLAGS) $(tst_dom_OBJECTS) $(tst_dom_LDADD) $(LIBS) + $(LINK) $(tst_dom_OBJECTS) $(tst_dom_LDADD) $(LIBS) tst-filter$(EXEEXT): $(tst_filter_OBJECTS) $(tst_filter_DEPENDENCIES) @rm -f tst-filter$(EXEEXT) - $(LINK) $(tst_filter_LDFLAGS) $(tst_filter_OBJECTS) $(tst_filter_LDADD) $(LIBS) + $(LINK) $(tst_filter_OBJECTS) $(tst_filter_LDADD) $(LIBS) tst-iks$(EXEEXT): $(tst_iks_OBJECTS) $(tst_iks_DEPENDENCIES) @rm -f tst-iks$(EXEEXT) - $(LINK) $(tst_iks_LDFLAGS) $(tst_iks_OBJECTS) $(tst_iks_LDADD) $(LIBS) + $(LINK) $(tst_iks_OBJECTS) $(tst_iks_LDADD) $(LIBS) tst-ikstack$(EXEEXT): $(tst_ikstack_OBJECTS) $(tst_ikstack_DEPENDENCIES) @rm -f tst-ikstack$(EXEEXT) - $(LINK) $(tst_ikstack_LDFLAGS) $(tst_ikstack_OBJECTS) $(tst_ikstack_LDADD) $(LIBS) + $(LINK) $(tst_ikstack_OBJECTS) $(tst_ikstack_LDADD) $(LIBS) tst-jid$(EXEEXT): $(tst_jid_OBJECTS) $(tst_jid_DEPENDENCIES) @rm -f tst-jid$(EXEEXT) - $(LINK) $(tst_jid_LDFLAGS) $(tst_jid_OBJECTS) $(tst_jid_LDADD) $(LIBS) + $(LINK) $(tst_jid_OBJECTS) $(tst_jid_LDADD) $(LIBS) tst-md5$(EXEEXT): $(tst_md5_OBJECTS) $(tst_md5_DEPENDENCIES) @rm -f tst-md5$(EXEEXT) - $(LINK) $(tst_md5_LDFLAGS) $(tst_md5_OBJECTS) $(tst_md5_LDADD) $(LIBS) + $(LINK) $(tst_md5_OBJECTS) $(tst_md5_LDADD) $(LIBS) tst-sax$(EXEEXT): $(tst_sax_OBJECTS) $(tst_sax_DEPENDENCIES) @rm -f tst-sax$(EXEEXT) - $(LINK) $(tst_sax_LDFLAGS) $(tst_sax_OBJECTS) $(tst_sax_LDADD) $(LIBS) + $(LINK) $(tst_sax_OBJECTS) $(tst_sax_LDADD) $(LIBS) tst-sha$(EXEEXT): $(tst_sha_OBJECTS) $(tst_sha_DEPENDENCIES) @rm -f tst-sha$(EXEEXT) - $(LINK) $(tst_sha_LDFLAGS) $(tst_sha_OBJECTS) $(tst_sha_LDADD) $(LIBS) + $(LINK) $(tst_sha_OBJECTS) $(tst_sha_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -295,22 +304,22 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tst-sha.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 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @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 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @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 +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @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 $@ $< @@ -321,17 +330,13 @@ mostlyclean-libtool: 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; }'`; \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS @@ -343,8 +348,8 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 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; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { 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) \ @@ -354,13 +359,12 @@ 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; }'`; \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique @@ -374,9 +378,9 @@ distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ srcdir=$(srcdir); export srcdir; \ - list='$(TESTS)'; \ + list=' $(TESTS) '; \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ @@ -385,7 +389,7 @@ check-TESTS: $(TESTS) if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *" $$tst "*) \ + *$$ws$$tst$$ws*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ echo "XPASS: $$tst"; \ @@ -397,7 +401,7 @@ check-TESTS: $(TESTS) elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *" $$tst "*) \ + *$$ws$$tst$$ws*) \ xfail=`expr $$xfail + 1`; \ echo "XFAIL: $$tst"; \ ;; \ @@ -447,22 +451,21 @@ check-TESTS: $(TESTS) else :; fi 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; \ + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ 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 \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ @@ -511,7 +514,7 @@ distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags + distclean-tags dvi: dvi-am @@ -525,12 +528,20 @@ info-am: install-data-am: +install-dvi: install-dvi-am + install-exec-am: +install-html: install-html-am + install-info: install-info-am install-man: +install-pdf: install-pdf-am + +install-ps: install-ps-am + installcheck-am: maintainer-clean: maintainer-clean-am @@ -551,19 +562,23 @@ ps: ps-am ps-am: -uninstall-am: uninstall-info-am +uninstall-am: + +.MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am 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 \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am 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 + tags uninstall uninstall-am # 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. diff --git a/test/tst-dom.c b/test/tst-dom.c index 693509e..ecd098a 100644 --- a/test/tst-dom.c +++ b/test/tst-dom.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2003 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ diff --git a/test/tst-filter.c b/test/tst-filter.c index 64adbd1..142dad2 100644 --- a/test/tst-filter.c +++ b/test/tst-filter.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2003 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ diff --git a/test/tst-iks.c b/test/tst-iks.c index 5573b07..daa5f87 100644 --- a/test/tst-iks.c +++ b/test/tst-iks.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2003 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ diff --git a/test/tst-ikstack.c b/test/tst-ikstack.c index 9e8459f..aba36af 100644 --- a/test/tst-ikstack.c +++ b/test/tst-ikstack.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2004 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2004 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ diff --git a/test/tst-jid.c b/test/tst-jid.c index 66406c7..d655578 100644 --- a/test/tst-jid.c +++ b/test/tst-jid.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2003 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ diff --git a/test/tst-md5.c b/test/tst-md5.c index 82584ae..dce809f 100644 --- a/test/tst-md5.c +++ b/test/tst-md5.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2004 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2004 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ @@ -16,7 +16,14 @@ int main (int argc, char *argv[]) char *str; char *hash; } known_hashes[] = { + // Taken from http://tools.ietf.org/html/rfc1321 + { "", "d41d8cd98f00b204e9800998ecf8427e" }, + { "a", "0cc175b9c0f1b6a831c399e269772661" }, { "abc", "900150983cd24fb0d6963f7d28e17f72" }, + { "message digest", "f96b697d7cb7938d525a2f31aaf161d0" }, + { "abcdefghijklmnopqrstuvwxyz", "c3fcd3d76192e4007dfb496cca67e13b" }, + { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", + "d174ab98d277d9f5a5611c2c9f419d9f" }, { "12345678901234567890123456789012345678901234567890123456789012345678901234567890", "57edf4a22be3c955ac49da2e2107b67a" }, { NULL, NULL } diff --git a/test/tst-sax.c b/test/tst-sax.c index 77a5c13..2b78fff 100644 --- a/test/tst-sax.c +++ b/test/tst-sax.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2003 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ @@ -278,75 +278,91 @@ test_bad (int badbyte) exit (1); } +/* No more attributes */ +#define NMA ((char *) 0) + int main (int argc, char *argv[]) { document ("<lonely/>"); - element (IKS_TAG, IKS_SINGLE, "lonely", 0); + element (IKS_TAG, IKS_SINGLE, "lonely", NMA); test (); document ("<?xml version='1.0'?><parent><child/><child/>child</parent>"); - element (IKS_TAG, IKS_OPEN, "parent", 0); - element (IKS_TAG, IKS_SINGLE, "child", 0); - element (IKS_TAG, IKS_SINGLE, "child", 0); + element (IKS_TAG, IKS_OPEN, "parent", NMA); + element (IKS_TAG, IKS_SINGLE, "child", NMA); + element (IKS_TAG, IKS_SINGLE, "child", NMA); element (IKS_CDATA, "child"); element (IKS_TAG, IKS_CLOSE, "parent"); test (); document ("<mytag abc='123' id=\"XC72\"></mytag>"); - element (IKS_TAG, IKS_OPEN, "mytag", "abc", "123", "id", "XC72", 0); + element (IKS_TAG, IKS_OPEN, "mytag", "abc", "123", "id", "XC72", NMA); element (IKS_TAG, IKS_CLOSE, "mytag"); test (); document ("<body>I'm fixing parser&tester for "<" and ">" chars.</body>"); - element (IKS_TAG, IKS_OPEN, "body", 0); + element (IKS_TAG, IKS_OPEN, "body", NMA); element (IKS_CDATA, "I'm fixing parser&tester for \"<\" and \">\" chars."); element (IKS_TAG, IKS_CLOSE, "body"); test (); document ("<tag a='1' b='2' c='3' d='4' e='5' f='6' g='7' id='xyz9'><sub></sub></tag>"); - element (IKS_TAG, IKS_OPEN, "tag", "a", "1", "b", "2", "c", "3", "d", "4", "e", "5", "f", "6", "g", "7", "id", "xyz9", 0); - element (IKS_TAG, IKS_OPEN, "sub", 0); + element (IKS_TAG, IKS_OPEN, "tag", "a", "1", "b", "2", "c", "3", "d", "4", "e", "5", "f", "6", "g", "7", "id", "xyz9", NMA); + element (IKS_TAG, IKS_OPEN, "sub", NMA); element (IKS_TAG, IKS_CLOSE, "sub"); element (IKS_TAG, IKS_CLOSE, "tag"); test (); document ("<item url='http://jabber.org'><!-- little comment -->Jabber Site</item>"); - element (IKS_TAG, IKS_OPEN, "item", "url", "http://jabber.org", 0); + element (IKS_TAG, IKS_OPEN, "item", "url", "http://jabber.org", NMA); element (IKS_CDATA, "Jabber Site"); element (IKS_TAG, IKS_CLOSE, "item"); test (); document ("<index><!-- <item> - tag has no childs --><item name='lala' page='42'/></index>"); - element (IKS_TAG, IKS_OPEN, "index", 0); - element (IKS_TAG, IKS_SINGLE, "item", "name", "lala", "page", "42", 0); + element (IKS_TAG, IKS_OPEN, "index", NMA); + element (IKS_TAG, IKS_SINGLE, "item", "name", "lala", "page", "42", NMA); element (IKS_TAG, IKS_CLOSE, "index"); test (); document ("<ka>1234<![CDATA[ <ka> lala ] ]] ]]] ]]>4321</ka>"); - element (IKS_TAG, IKS_OPEN, "ka", 0); + element (IKS_TAG, IKS_OPEN, "ka", NMA); element (IKS_CDATA, "1234 <ka> lala ] ]] ]]] 4321"); element (IKS_TAG, IKS_CLOSE, "ka"); test (); document ("<test><standalone be='happy'/>abcd<br/><escape></test>"); - element (IKS_TAG, IKS_OPEN, "test", 0); - element (IKS_TAG, IKS_SINGLE, "standalone", "be", "happy", 0); + element (IKS_TAG, IKS_OPEN, "test", NMA); + element (IKS_TAG, IKS_SINGLE, "standalone", "be", "happy", NMA); element (IKS_CDATA, "abcd"); - element (IKS_TAG, IKS_SINGLE, "br", 0); + element (IKS_TAG, IKS_SINGLE, "br", NMA); element (IKS_CDATA, "<escape>"); element (IKS_TAG, IKS_CLOSE, "test"); test (); document ("<a><b>john&mary<c><d e='f' g='123456' h='madcat' klm='nop'/></c></b></a>"); - element (IKS_TAG, IKS_OPEN, "a", 0); - element (IKS_TAG, IKS_OPEN, "b", 0); + element (IKS_TAG, IKS_OPEN, "a", NMA); + element (IKS_TAG, IKS_OPEN, "b", NMA); element (IKS_CDATA, "john&mary"); - element (IKS_TAG, IKS_OPEN, "c", 0); - element (IKS_TAG, IKS_SINGLE, "d", "e", "f", "g", "123456", "h", "madcat", "klm", "nop", 0); - element (IKS_TAG, IKS_CLOSE, "c", 0); - element (IKS_TAG, IKS_CLOSE, "b", 0); - element (IKS_TAG, IKS_CLOSE, "a", 0); + element (IKS_TAG, IKS_OPEN, "c", NMA); + element (IKS_TAG, IKS_SINGLE, "d", "e", "f", "g", "123456", "h", "madcat", "klm", "nop", NMA); + element (IKS_TAG, IKS_CLOSE, "c", NMA); + element (IKS_TAG, IKS_CLOSE, "b", NMA); + element (IKS_TAG, IKS_CLOSE, "a", NMA); + test (); + + document ("<a><b x1 ='lala'/><c x2\t= \t'bibi'/></a>"); + element (IKS_TAG, IKS_OPEN, "a", NMA); + element (IKS_TAG, IKS_SINGLE, "b", "x1", "lala", NMA); + element (IKS_TAG, IKS_SINGLE, "c", "x2", "bibi", NMA); + element (IKS_TAG, IKS_CLOSE, "a", NMA); + test (); + + document ("<a>[[bg:Чингис хан]][[bn:চেঙ্গিজ খান]]</a>"); + element (IKS_TAG, IKS_OPEN, "a", NMA); + element (IKS_CDATA, "[[bg:Чингис хан]][[bn:চেঙ্গিজ খান]]"); + element (IKS_TAG, IKS_CLOSE, "a", NMA); test (); document ("<test>\xFF</test>"); @@ -372,13 +388,13 @@ main (int argc, char *argv[]) test_bad (16); document ("<a>\xC0\x80</a>"); - test_bad (3); + test_bad (4); document ("<\x8F\x85></\x8F\x85>"); test_bad (1); document ("<utf8>\xC1\x80<br/>\xED\x95\x9C\xEA\xB5\xAD\xEC\x96\xB4<err>\xC1\x65</err></utf8>"); - test_bad (28); + test_bad (7); return 0; } diff --git a/test/tst-sha.c b/test/tst-sha.c index ff6b3e3..4a82a5a 100644 --- a/test/tst-sha.c +++ b/test/tst-sha.c @@ -1,5 +1,5 @@ /* iksemel (XML parser for Jabber) -** Copyright (C) 2000-2003 Gurer Ozen <madcat@e-kolay.net> +** Copyright (C) 2000-2003 Gurer Ozen ** This code is free software; you can redistribute it and/or ** modify it under the terms of GNU Lesser General Public License. */ |