From: Magnus H. <leg...@us...> - 2008-04-20 06:21:53
|
Update of /cvsroot/emacs-jabber/emacs-jabber/tests In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv2509/tests Added Files: skip-tag-forward.el Makefile.am Log Message: Revision: ma...@fr...--2005/emacs-jabber--cvs-head--0--patch-479 Creator: Magnus Henoch <ma...@fr...> Merge autotools and test suite Patches applied: * ma...@fr...--2005/emacs-jabber--autotools--0--base-0 tag of ma...@fr...--2005/emacs-jabber--cvs-head--0--patch-477 * ma...@fr...--2005/emacs-jabber--autotools--0--patch-1 Add Makefile.am and configure.ac * ma...@fr...--2005/emacs-jabber--autotools--0--patch-2 Don't require jabber-muc-nick-completion from jabber-alert, but add an autoload * ma...@fr...--2005/emacs-jabber--autotools--0--patch-3 Require external notifiers from jabber.el, not jabber-alert.el * ma...@fr...--2005/emacs-jabber--autotools--0--patch-4 External notifiers require jabber-alert when compiling * ma...@fr...--2005/emacs-jabber--autotools--0--patch-5 Build autoloads * ma...@fr...--2005/emacs-jabber--autotools--0--patch-6 Break lines in Makefile.am * ma...@fr...--2005/emacs-jabber--autotools--0--patch-7 Rearrange Makefile.am to avoid circular dependency * ma...@fr...--2005/emacs-jabber--autotools--0--patch-8 Remove unnecessary BUILT_SOURCES * ma...@fr...--2005/emacs-jabber--autotools--0--patch-9 Add jabber.texi to Makefile.am * ma...@fr...--2005/emacs-jabber--autotools--0--patch-10 Maintainer-clean jabber-autoload.el * ma...@fr...--2005/emacs-jabber--autotools--0--patch-11 Distribute and install xmppuri.sh * ma...@fr...--2005/emacs-jabber--autotools--0--patch-12 Create zip file too * ma...@fr...--2005/emacs-jabber--autotools--0--patch-13 Remove explicit autoloads from jabber.el; add corresponding cookies * ma...@fr...--2005/emacs-jabber--autotools--0--patch-14 Merge CDATA fix * ma...@fr...--2005/emacs-jabber--autotools--0--patch-15 Add comment explaining double-compilation * ma...@fr...--2005/emacs-jabber--autotools--0--patch-16 Add test suite * ma...@fr...--2005/emacs-jabber--autotools--0--patch-17 Use subdirectory makefile for tests * ma...@fr...--2005/emacs-jabber--autotools--0--patch-18 Distribute tests * ma...@fr...--2005/emacs-jabber--autotools--0--patch-19 -Wall and -Werror for automake * ma...@fr...--2005/emacs-jabber--autotools--0--patch-20 Use makefile variables instead of autoconf ones --- NEW FILE: skip-tag-forward.el --- ;; Tests for jabber-xml-skip-tag-forward (require 'jabber-xml) (require 'cl) (flet ((parses-p (text) (with-temp-buffer (insert text) (goto-char (point-min)) (catch 'unfinished (jabber-xml-skip-tag-forward) (= (point) (point-max)))))) ;; 1. Just plain XML (unless (parses-p "<stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>ANONYMOUS</mechanism><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>") (error "Testcase 1 failed")) ;; 2. XML with CDATA (unless (parses-p "<message><body><![CDATA[<foo & bar>]]></body></message>") (error "Testcase 2 failed"))) ;; arch-tag: a99d8666-0e6b-11dd-bd33-000a95c2fcd0 --- NEW FILE: Makefile.am --- TESTS_ENVIRONMENT = $(EMACS) -batch -L $(top_builddir) -l TESTS = skip-tag-forward.el dist_noinst_DATA = $(TESTS) |