summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-05-05 16:24:24 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2013-05-05 16:24:24 -0500
commit6949915a0f7bc96f2695c3fcb5aaef8601cfc331 (patch)
treecc869ff860aaf2aa9105d5dce427712e83633e40 /test
parent014918eb7a11dc2c3a6dfc5226409b1b5e458e46 (diff)
downloadlibcaldav-6949915a0f7bc96f2695c3fcb5aaef8601cfc331.tar.gz
libcaldav-6949915a0f7bc96f2695c3fcb5aaef8601cfc331.zip
Remove obsolete svn directories.
Diffstat (limited to 'test')
-rw-r--r--test/.svn/all-wcprops17
-rw-r--r--test/.svn/entries105
-rw-r--r--test/.svn/text-base/Makefile.am.svn-base8
-rw-r--r--test/.svn/text-base/Makefile.in.svn-base597
-rw-r--r--test/ics/.svn/all-wcprops35
-rw-r--r--test/ics/.svn/entries198
-rw-r--r--test/ics/.svn/text-base/Makefile.am.svn-base13
-rw-r--r--test/ics/.svn/text-base/Makefile.in.svn-base448
-rw-r--r--test/ics/.svn/text-base/add.ics.svn-base12
-rw-r--r--test/ics/.svn/text-base/delete.ics.svn-base12
-rw-r--r--test/ics/.svn/text-base/modify.ics.svn-base12
-rw-r--r--test/src/.svn/all-wcprops23
-rw-r--r--test/src/.svn/entries130
-rw-r--r--test/src/.svn/text-base/Makefile.am.svn-base24
-rw-r--r--test/src/.svn/text-base/Makefile.in.svn-base568
-rw-r--r--test/src/.svn/text-base/caldav-test.c.svn-base383
-rw-r--r--test/unittest/.svn/all-wcprops23
-rw-r--r--test/unittest/.svn/entries130
-rw-r--r--test/unittest/.svn/prop-base/Makefile.am.svn-base5
-rw-r--r--test/unittest/.svn/prop-base/Makefile.in.svn-base5
-rw-r--r--test/unittest/.svn/prop-base/libunit.c.svn-base9
-rw-r--r--test/unittest/.svn/text-base/Makefile.am.svn-base22
-rw-r--r--test/unittest/.svn/text-base/Makefile.in.svn-base564
-rw-r--r--test/unittest/.svn/text-base/libunit.c.svn-base615
24 files changed, 0 insertions, 3958 deletions
diff --git a/test/.svn/all-wcprops b/test/.svn/all-wcprops
deleted file mode 100644
index 0465f4b..0000000
--- a/test/.svn/all-wcprops
+++ /dev/null
@@ -1,17 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 41
-/svnroot/libcaldav/!svn/ver/42/trunk/test
-END
-Makefile.in
-K 25
-svn:wc:ra_dav:version-url
-V 53
-/svnroot/libcaldav/!svn/ver/42/trunk/test/Makefile.in
-END
-Makefile.am
-K 25
-svn:wc:ra_dav:version-url
-V 53
-/svnroot/libcaldav/!svn/ver/30/trunk/test/Makefile.am
-END
diff --git a/test/.svn/entries b/test/.svn/entries
deleted file mode 100644
index 26cb911..0000000
--- a/test/.svn/entries
+++ /dev/null
@@ -1,105 +0,0 @@
-10
-
-dir
-42
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav/trunk/test
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav
-
-
-
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-6bb92309-7149-0410-b568-bc30dfd0a1d5
-
-unittest
-dir
-
-Makefile.in
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-fa74e0a0a67b25662dfd0dd6ed1f78a3
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-17836
-
-src
-dir
-
-Makefile.am
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-49c7239729ed3197c7e08cb1f51b4545
-2010-04-04T20:17:57.156621Z
-30
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-82
-
-ics
-dir
-
diff --git a/test/.svn/text-base/Makefile.am.svn-base b/test/.svn/text-base/Makefile.am.svn-base
deleted file mode 100644
index 8cd5e9c..0000000
--- a/test/.svn/text-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,8 +0,0 @@
-AUTOMAKE_OPTIONS = gnu
-
-SUBDIRS = \
- ics \
- src \
- unittest
-
-EXTRA_DIST =
diff --git a/test/.svn/text-base/Makefile.in.svn-base b/test/.svn/text-base/Makefile.in.svn-base
deleted file mode 100644
index 600fbf0..0000000
--- a/test/.svn/text-base/Makefile.in.svn-base
+++ /dev/null
@@ -1,597 +0,0 @@
-# Makefile.in generated by automake 1.11.1 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.
-# 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@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-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@
-subdir = test
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
- html-recursive info-recursive install-data-recursive \
- install-dvi-recursive install-exec-recursive \
- install-html-recursive install-info-recursive \
- install-pdf-recursive install-ps-recursive install-recursive \
- installcheck-recursive installdirs-recursive pdf-recursive \
- ps-recursive uninstall-recursive
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
- $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
- distdir
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-am__relativize = \
- dir0=`pwd`; \
- sed_first='s,^\([^/]*\)/.*$$,\1,'; \
- sed_rest='s,^[^/]*/*,,'; \
- sed_last='s,^.*/\([^/]*\)$$,\1,'; \
- sed_butlast='s,/*[^/]*$$,,'; \
- while test -n "$$dir1"; do \
- first=`echo "$$dir1" | sed -e "$$sed_first"`; \
- if test "$$first" != "."; then \
- if test "$$first" = ".."; then \
- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
- else \
- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
- if test "$$first2" = "$$first"; then \
- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
- else \
- dir2="../$$dir2"; \
- fi; \
- dir0="$$dir0"/"$$first"; \
- fi; \
- fi; \
- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
- done; \
- reldir="$$dir2"
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CURL_CFLAGS = @CURL_CFLAGS@
-CURL_LIBS = @CURL_LIBS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-DX_CONFIG = @DX_CONFIG@
-DX_DOCDIR = @DX_DOCDIR@
-DX_DOT = @DX_DOT@
-DX_DOXYGEN = @DX_DOXYGEN@
-DX_DVIPS = @DX_DVIPS@
-DX_EGREP = @DX_EGREP@
-DX_ENV = @DX_ENV@
-DX_FLAG_chi = @DX_FLAG_chi@
-DX_FLAG_chm = @DX_FLAG_chm@
-DX_FLAG_doc = @DX_FLAG_doc@
-DX_FLAG_dot = @DX_FLAG_dot@
-DX_FLAG_html = @DX_FLAG_html@
-DX_FLAG_man = @DX_FLAG_man@
-DX_FLAG_pdf = @DX_FLAG_pdf@
-DX_FLAG_ps = @DX_FLAG_ps@
-DX_FLAG_rtf = @DX_FLAG_rtf@
-DX_FLAG_xml = @DX_FLAG_xml@
-DX_HHC = @DX_HHC@
-DX_LATEX = @DX_LATEX@
-DX_MAKEINDEX = @DX_MAKEINDEX@
-DX_PDFLATEX = @DX_PDFLATEX@
-DX_PERL = @DX_PERL@
-DX_PROJECT = @DX_PROJECT@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GLIB_CFLAGS = @GLIB_CFLAGS@
-GLIB_LIBS = @GLIB_LIBS@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBVERSION = @LIBVERSION@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-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_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-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@
-lt_ECHO = @lt_ECHO@
-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 = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = gnu
-SUBDIRS = \
- ics \
- src \
- unittest
-
-EXTRA_DIST =
-all: all-recursive
-
-.SUFFIXES:
-$(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 ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnu 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
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run `make' without going through this Makefile.
-# To change the values of `make' variables: instead of editing Makefiles,
-# (1) if the variable is set in `config.status', edit `config.status'
-# (which will cause the Makefiles to be regenerated when you run `make');
-# (2) otherwise, pass the desired values on the `make' command line.
-$(RECURSIVE_TARGETS):
- @fail= failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-$(RECURSIVE_CLEAN_TARGETS):
- @fail= failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- rev=''; for subdir in $$list; do \
- if test "$$subdir" = "."; then :; else \
- rev="$$subdir $$rev"; \
- fi; \
- done; \
- rev="$$rev ."; \
- target=`echo $@ | sed s/-recursive//`; \
- for subdir in $$rev; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done && test -z "$$fail"
-tags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
- done
-ctags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
- done
-
-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: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- set x; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- 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; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(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; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__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)'; \
- 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; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
- new_distdir=$$reldir; \
- dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
- new_top_distdir=$$reldir; \
- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
- ($(am__cd) $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$new_top_distdir" \
- distdir="$$new_distdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- am__skip_mode_fix=: \
- distdir) \
- || exit 1; \
- fi; \
- done
-check-am: all-am
-check: check-recursive
-all-am: Makefile
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-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 . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-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-recursive
-
-clean-am: clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-recursive
- -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-html-am:
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-html-am:
-
-install-info: install-info-recursive
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-pdf-am:
-
-install-ps: install-ps-recursive
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
- install-am install-strip tags-recursive
-
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
- all all-am check check-am clean clean-generic clean-libtool \
- ctags ctags-recursive distclean 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 \
- 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 installdirs-am maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic \
- mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
- 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.
-.NOEXPORT:
diff --git a/test/ics/.svn/all-wcprops b/test/ics/.svn/all-wcprops
deleted file mode 100644
index 7f8fcfe..0000000
--- a/test/ics/.svn/all-wcprops
+++ /dev/null
@@ -1,35 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 45
-/svnroot/libcaldav/!svn/ver/42/trunk/test/ics
-END
-delete.ics
-K 25
-svn:wc:ra_dav:version-url
-V 55
-/svnroot/libcaldav/!svn/ver/1/trunk/test/ics/delete.ics
-END
-Makefile.in
-K 25
-svn:wc:ra_dav:version-url
-V 57
-/svnroot/libcaldav/!svn/ver/42/trunk/test/ics/Makefile.in
-END
-modify.ics
-K 25
-svn:wc:ra_dav:version-url
-V 55
-/svnroot/libcaldav/!svn/ver/1/trunk/test/ics/modify.ics
-END
-add.ics
-K 25
-svn:wc:ra_dav:version-url
-V 52
-/svnroot/libcaldav/!svn/ver/1/trunk/test/ics/add.ics
-END
-Makefile.am
-K 25
-svn:wc:ra_dav:version-url
-V 56
-/svnroot/libcaldav/!svn/ver/1/trunk/test/ics/Makefile.am
-END
diff --git a/test/ics/.svn/entries b/test/ics/.svn/entries
deleted file mode 100644
index 9372897..0000000
--- a/test/ics/.svn/entries
+++ /dev/null
@@ -1,198 +0,0 @@
-10
-
-dir
-42
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav/trunk/test/ics
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav
-
-
-
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-6bb92309-7149-0410-b568-bc30dfd0a1d5
-
-delete.ics
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-5081183482b5b610c7c8c4ffe84e0f72
-2008-03-29T18:04:01.076545Z
-1
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-271
-
-Makefile.in
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-f9ecb7d37044b61240ac8b781e8bf925
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-12899
-
-modify.ics
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-c3d6c42b35a2e21843eeb0a704b6ae65
-2008-03-29T18:04:01.076545Z
-1
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-271
-
-add.ics
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-5081183482b5b610c7c8c4ffe84e0f72
-2008-03-29T18:04:01.076545Z
-1
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-271
-
-Makefile.am
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-0e5c15655892d36373113fec8da66120
-2008-03-29T18:04:01.076545Z
-1
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-192
-
diff --git a/test/ics/.svn/text-base/Makefile.am.svn-base b/test/ics/.svn/text-base/Makefile.am.svn-base
deleted file mode 100644
index abcaa36..0000000
--- a/test/ics/.svn/text-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,13 +0,0 @@
-AUTOMAKE_OPTIONS = gnu
-
-caldav_test_filedir = $(docdir)/ics
-caldav_test_file_DATA = \
- add.ics \
- delete.ics \
- modify.ics
-
-EXTRA_DIST = \
- add.ics \
- delete.ics \
- modify.ics
-
diff --git a/test/ics/.svn/text-base/Makefile.in.svn-base b/test/ics/.svn/text-base/Makefile.in.svn-base
deleted file mode 100644
index b13e227..0000000
--- a/test/ics/.svn/text-base/Makefile.in.svn-base
+++ /dev/null
@@ -1,448 +0,0 @@
-# Makefile.in generated by automake 1.11.1 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.
-# 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@
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-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@
-subdir = test/ics
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-SOURCES =
-DIST_SOURCES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac;
-am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
-am__install_max = 40
-am__nobase_strip_setup = \
- srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
-am__nobase_strip = \
- for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
-am__nobase_list = $(am__nobase_strip_setup); \
- for p in $$list; do echo "$$p $$p"; done | \
- sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
- $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
- if (++n[$$2] == $(am__install_max)) \
- { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
- END { for (dir in files) print dir, files[dir] }'
-am__base_list = \
- sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
- sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
-am__installdirs = "$(DESTDIR)$(caldav_test_filedir)"
-DATA = $(caldav_test_file_DATA)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CURL_CFLAGS = @CURL_CFLAGS@
-CURL_LIBS = @CURL_LIBS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-DX_CONFIG = @DX_CONFIG@
-DX_DOCDIR = @DX_DOCDIR@
-DX_DOT = @DX_DOT@
-DX_DOXYGEN = @DX_DOXYGEN@
-DX_DVIPS = @DX_DVIPS@
-DX_EGREP = @DX_EGREP@
-DX_ENV = @DX_ENV@
-DX_FLAG_chi = @DX_FLAG_chi@
-DX_FLAG_chm = @DX_FLAG_chm@
-DX_FLAG_doc = @DX_FLAG_doc@
-DX_FLAG_dot = @DX_FLAG_dot@
-DX_FLAG_html = @DX_FLAG_html@
-DX_FLAG_man = @DX_FLAG_man@
-DX_FLAG_pdf = @DX_FLAG_pdf@
-DX_FLAG_ps = @DX_FLAG_ps@
-DX_FLAG_rtf = @DX_FLAG_rtf@
-DX_FLAG_xml = @DX_FLAG_xml@
-DX_HHC = @DX_HHC@
-DX_LATEX = @DX_LATEX@
-DX_MAKEINDEX = @DX_MAKEINDEX@
-DX_PDFLATEX = @DX_PDFLATEX@
-DX_PERL = @DX_PERL@
-DX_PROJECT = @DX_PROJECT@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GLIB_CFLAGS = @GLIB_CFLAGS@
-GLIB_LIBS = @GLIB_LIBS@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBVERSION = @LIBVERSION@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-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_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-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@
-lt_ECHO = @lt_ECHO@
-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 = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = gnu
-caldav_test_filedir = $(docdir)/ics
-caldav_test_file_DATA = \
- add.ics \
- delete.ics \
- modify.ics
-
-EXTRA_DIST = \
- add.ics \
- delete.ics \
- modify.ics
-
-all: all-am
-
-.SUFFIXES:
-$(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 ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/ics/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnu test/ics/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
-$(am__aclocal_m4_deps):
-
-mostlyclean-libtool:
- -rm -f *.lo
-
-clean-libtool:
- -rm -rf .libs _libs
-install-caldav_test_fileDATA: $(caldav_test_file_DATA)
- @$(NORMAL_INSTALL)
- test -z "$(caldav_test_filedir)" || $(MKDIR_P) "$(DESTDIR)$(caldav_test_filedir)"
- @list='$(caldav_test_file_DATA)'; test -n "$(caldav_test_filedir)" || list=; \
- for p in $$list; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- echo "$$d$$p"; \
- done | $(am__base_list) | \
- while read files; do \
- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(caldav_test_filedir)'"; \
- $(INSTALL_DATA) $$files "$(DESTDIR)$(caldav_test_filedir)" || exit $$?; \
- done
-
-uninstall-caldav_test_fileDATA:
- @$(NORMAL_UNINSTALL)
- @list='$(caldav_test_file_DATA)'; test -n "$(caldav_test_filedir)" || list=; \
- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
- test -n "$$files" || exit 0; \
- echo " ( cd '$(DESTDIR)$(caldav_test_filedir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(caldav_test_filedir)" && rm -f $$files
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-distdir: $(DISTFILES)
- @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; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$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
-check: check-am
-all-am: Makefile $(DATA)
-installdirs:
- for dir in "$(DESTDIR)$(caldav_test_filedir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-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 . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-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 mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am: install-caldav_test_fileDATA
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic mostlyclean-libtool
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-caldav_test_fileDATA
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-am clean clean-generic clean-libtool \
- distclean distclean-generic distclean-libtool distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-caldav_test_fileDATA install-data 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-generic mostlyclean-libtool pdf pdf-am \
- ps ps-am uninstall uninstall-am uninstall-caldav_test_fileDATA
-
-
-# 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/test/ics/.svn/text-base/add.ics.svn-base b/test/ics/.svn/text-base/add.ics.svn-base
deleted file mode 100644
index 3ea6868..0000000
--- a/test/ics/.svn/text-base/add.ics.svn-base
+++ /dev/null
@@ -1,12 +0,0 @@
-BEGIN:VCALENDAR
-VERSION:2.0
-PRODID:-//Example Corp.//CalDAV Client//EN
-BEGIN:VEVENT
-DTSTAMP:20080404T182145Z
-DTSTART:20080415T151500Z
-DTEND:20080415T162500Z
-SUMMARY:Frodo's birthday party. Please respond.
-UID:20080404T182145Z-123401@example.com
-END:VEVENT
-END:VCALENDAR
-
diff --git a/test/ics/.svn/text-base/delete.ics.svn-base b/test/ics/.svn/text-base/delete.ics.svn-base
deleted file mode 100644
index 3ea6868..0000000
--- a/test/ics/.svn/text-base/delete.ics.svn-base
+++ /dev/null
@@ -1,12 +0,0 @@
-BEGIN:VCALENDAR
-VERSION:2.0
-PRODID:-//Example Corp.//CalDAV Client//EN
-BEGIN:VEVENT
-DTSTAMP:20080404T182145Z
-DTSTART:20080415T151500Z
-DTEND:20080415T162500Z
-SUMMARY:Frodo's birthday party. Please respond.
-UID:20080404T182145Z-123401@example.com
-END:VEVENT
-END:VCALENDAR
-
diff --git a/test/ics/.svn/text-base/modify.ics.svn-base b/test/ics/.svn/text-base/modify.ics.svn-base
deleted file mode 100644
index 6f861d3..0000000
--- a/test/ics/.svn/text-base/modify.ics.svn-base
+++ /dev/null
@@ -1,12 +0,0 @@
-BEGIN:VCALENDAR
-VERSION:2.0
-PRODID:-//Example Corp.//CalDAV Client//EN
-BEGIN:VEVENT
-DTSTAMP:20080404T182145Z
-DTSTART:20080416T151500Z
-DTEND:20080416T162500Z
-SUMMARY:Frodo's birthday party. Please respond.
-UID:20080404T182145Z-123401@example.com
-END:VEVENT
-END:VCALENDAR
-
diff --git a/test/src/.svn/all-wcprops b/test/src/.svn/all-wcprops
deleted file mode 100644
index 35dbbb1..0000000
--- a/test/src/.svn/all-wcprops
+++ /dev/null
@@ -1,23 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 45
-/svnroot/libcaldav/!svn/ver/42/trunk/test/src
-END
-Makefile.in
-K 25
-svn:wc:ra_dav:version-url
-V 57
-/svnroot/libcaldav/!svn/ver/42/trunk/test/src/Makefile.in
-END
-caldav-test.c
-K 25
-svn:wc:ra_dav:version-url
-V 59
-/svnroot/libcaldav/!svn/ver/40/trunk/test/src/caldav-test.c
-END
-Makefile.am
-K 25
-svn:wc:ra_dav:version-url
-V 57
-/svnroot/libcaldav/!svn/ver/30/trunk/test/src/Makefile.am
-END
diff --git a/test/src/.svn/entries b/test/src/.svn/entries
deleted file mode 100644
index d1fc176..0000000
--- a/test/src/.svn/entries
+++ /dev/null
@@ -1,130 +0,0 @@
-10
-
-dir
-42
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav/trunk/test/src
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav
-
-
-
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-6bb92309-7149-0410-b568-bc30dfd0a1d5
-
-Makefile.in
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-5623db3c1b01fb5c13cd1e15ea763355
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-17789
-
-caldav-test.c
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-438a9b64b6a8b95695cfdf79b94f33b1
-2010-05-23T21:46:08.944313Z
-40
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-10238
-
-Makefile.am
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-edfdb9dbb873f21664df8048fa441106
-2010-04-04T20:17:57.156621Z
-30
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-372
-
diff --git a/test/src/.svn/text-base/Makefile.am.svn-base b/test/src/.svn/text-base/Makefile.am.svn-base
deleted file mode 100644
index 9ede9ce..0000000
--- a/test/src/.svn/text-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,24 +0,0 @@
-AUTOMAKE_OPTIONS = gnu
-
-if BUILD_CALDAV
-INCLUDES = \
- @CURL_CFLAGS@ \
- @GLIB_CFLAGS@ \
- -I$(top_srcdir) \
- -I$(top_srcdir)/src
-
-bin_PROGRAMS = caldav-test
-
-caldav_test_SOURCES = \
- caldav-test.c
-
-noinst_HEADERS =
-
-caldav_test_LDFLAGS = \
- -L$(top_builddir)/src
-
-caldav_test_LDADD = \
- @CURL_LIBS@ \
- @GLIB_LIBS@ \
- -lcaldav
-endif
diff --git a/test/src/.svn/text-base/Makefile.in.svn-base b/test/src/.svn/text-base/Makefile.in.svn-base
deleted file mode 100644
index 12baa48..0000000
--- a/test/src/.svn/text-base/Makefile.in.svn-base
+++ /dev/null
@@ -1,568 +0,0 @@
-# Makefile.in generated by automake 1.11.1 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.
-# 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@
-
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-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@
-@BUILD_CALDAV_TRUE@bin_PROGRAMS = caldav-test$(EXEEXT)
-subdir = test/src
-DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \
- $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__installdirs = "$(DESTDIR)$(bindir)"
-PROGRAMS = $(bin_PROGRAMS)
-am__caldav_test_SOURCES_DIST = caldav-test.c
-@BUILD_CALDAV_TRUE@am_caldav_test_OBJECTS = caldav-test.$(OBJEXT)
-caldav_test_OBJECTS = $(am_caldav_test_OBJECTS)
-caldav_test_DEPENDENCIES =
-caldav_test_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
- $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
- $(caldav_test_LDFLAGS) $(LDFLAGS) -o $@
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/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)
-CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
-SOURCES = $(caldav_test_SOURCES)
-DIST_SOURCES = $(am__caldav_test_SOURCES_DIST)
-HEADERS = $(noinst_HEADERS)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CURL_CFLAGS = @CURL_CFLAGS@
-CURL_LIBS = @CURL_LIBS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-DX_CONFIG = @DX_CONFIG@
-DX_DOCDIR = @DX_DOCDIR@
-DX_DOT = @DX_DOT@
-DX_DOXYGEN = @DX_DOXYGEN@
-DX_DVIPS = @DX_DVIPS@
-DX_EGREP = @DX_EGREP@
-DX_ENV = @DX_ENV@
-DX_FLAG_chi = @DX_FLAG_chi@
-DX_FLAG_chm = @DX_FLAG_chm@
-DX_FLAG_doc = @DX_FLAG_doc@
-DX_FLAG_dot = @DX_FLAG_dot@
-DX_FLAG_html = @DX_FLAG_html@
-DX_FLAG_man = @DX_FLAG_man@
-DX_FLAG_pdf = @DX_FLAG_pdf@
-DX_FLAG_ps = @DX_FLAG_ps@
-DX_FLAG_rtf = @DX_FLAG_rtf@
-DX_FLAG_xml = @DX_FLAG_xml@
-DX_HHC = @DX_HHC@
-DX_LATEX = @DX_LATEX@
-DX_MAKEINDEX = @DX_MAKEINDEX@
-DX_PDFLATEX = @DX_PDFLATEX@
-DX_PERL = @DX_PERL@
-DX_PROJECT = @DX_PROJECT@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GLIB_CFLAGS = @GLIB_CFLAGS@
-GLIB_LIBS = @GLIB_LIBS@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBVERSION = @LIBVERSION@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-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_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-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@
-lt_ECHO = @lt_ECHO@
-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 = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = gnu
-@BUILD_CALDAV_TRUE@INCLUDES = \
-@BUILD_CALDAV_TRUE@ @CURL_CFLAGS@ \
-@BUILD_CALDAV_TRUE@ @GLIB_CFLAGS@ \
-@BUILD_CALDAV_TRUE@ -I$(top_srcdir) \
-@BUILD_CALDAV_TRUE@ -I$(top_srcdir)/src
-
-@BUILD_CALDAV_TRUE@caldav_test_SOURCES = \
-@BUILD_CALDAV_TRUE@ caldav-test.c
-
-@BUILD_CALDAV_TRUE@noinst_HEADERS =
-@BUILD_CALDAV_TRUE@caldav_test_LDFLAGS = \
-@BUILD_CALDAV_TRUE@ -L$(top_builddir)/src
-
-@BUILD_CALDAV_TRUE@caldav_test_LDADD = \
-@BUILD_CALDAV_TRUE@ @CURL_LIBS@ \
-@BUILD_CALDAV_TRUE@ @GLIB_LIBS@ \
-@BUILD_CALDAV_TRUE@ -lcaldav
-
-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 ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/src/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnu test/src/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
-$(am__aclocal_m4_deps):
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- for p in $$list; do echo "$$p $$p"; done | \
- sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p || test -f $$p1; \
- then echo "$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
- -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
- sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) files[d] = files[d] " " $$1; \
- else { print "f", $$3 "/" $$4, $$1; } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' `; \
- test -n "$$list" || exit 0; \
- echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(bindir)" && rm -f $$files
-
-clean-binPROGRAMS:
- @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-caldav-test$(EXEEXT): $(caldav_test_OBJECTS) $(caldav_test_DEPENDENCIES)
- @rm -f caldav-test$(EXEEXT)
- $(caldav_test_LINK) $(caldav_test_OBJECTS) $(caldav_test_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/caldav-test.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@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(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@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(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@
-@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
-
-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)
- 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; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$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; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__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)'; \
- 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; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$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
-check: check-am
-all-am: Makefile $(PROGRAMS) $(HEADERS)
-installdirs:
- for dir in "$(DESTDIR)$(bindir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-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 . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-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-binPROGRAMS clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-binPROGRAMS
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-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-binPROGRAMS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
- clean-generic clean-libtool ctags distclean distclean-compile \
- distclean-generic distclean-libtool distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-binPROGRAMS install-data 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-binPROGRAMS
-
-
-# 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/test/src/.svn/text-base/caldav-test.c.svn-base b/test/src/.svn/text-base/caldav-test.c.svn-base
deleted file mode 100644
index 6e287ad..0000000
--- a/test/src/.svn/text-base/caldav-test.c.svn-base
+++ /dev/null
@@ -1,383 +0,0 @@
-/* Copyright (c) 2008 Michael Rasmussen (mir@datanom.net)
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "caldav.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <glib.h>
-#include <sys/stat.h>
-#include <string.h>
-#include <time.h>
-
-gchar* make_url(gchar* uid, gchar* pwd, gchar* url) {
- char* pos;
- char* protocol = NULL;
- char* uri = NULL;
- char* newurl = NULL;
-
- if (!uid)
- return g_strdup(url);
- if ((pos = strstr(url, "//")) != NULL) {
- uri = g_strdup(&(*(pos + 2)));
- protocol = g_strndup(url, pos + 2 - url);
- }
- else {
- protocol = g_strdup("http://");
- }
- if (!pwd)
- newurl = g_strdup_printf("%s%s@%s", protocol, uid, uri);
- else
- newurl = g_strdup_printf("%s%s:%s@%s", protocol, uid, pwd, uri);
- g_free(uri);
- g_free(protocol);
- return newurl;
-}
-
-#define BUFFER 1000
-gchar* read_stream(FILE* stream, gchar* mem) {
- int len, fd;
- char buf[BUFFER];
- struct stat sb;
-
- fd = fileno(stream);
- fstat(fd, &sb);
- while ((len = read(fd, &buf, sizeof(buf))) > 0) {
- mem = (char *) realloc(mem, sizeof(buf) + 1);
- strncat(mem, buf, sizeof(buf));
- }
- mem[sb.st_size] = '\0';
- fclose(stream);
- return mem;
-}
-
-time_t make_time_t(const char* time_elem) {
- struct tm datetime = {0,0,0,0,0,0,0,0,0,0,NULL};
- //struct tm* tmp;
- gchar** elem;
- time_t t;
-
- //t = time(NULL);
- //tmp = localtime(&t);
- elem = g_strsplit(time_elem, "/", 3);
- if (g_strv_length(elem) == 3) {
- datetime.tm_year = atoi(elem[0]) - 1900;
- datetime.tm_mon = atoi(elem[1]) - 1;
- datetime.tm_mday = atoi(elem[2]);
- t = mktime(&datetime);
- }
- g_strfreev(elem);
- return t;
-}
-
-/* [yyyy/mm/dd[ hh/mm[/ss[/z]]] */
-time_t make_fbtime_t(const char* time_elem) {
- struct tm datetime = {0,0,0,0,0,0,0,0,0,0,NULL};
- gboolean utc = FALSE;
- gchar** elem;
- gchar** dt;
- time_t t;
- guint length;
-
- dt = g_strsplit(time_elem, " ", 2);
- length = g_strv_length(dt);
- if (length > 1) {
- elem = g_strsplit(dt[1], "/", 4);
- length = g_strv_length(elem);
- datetime.tm_hour = atoi(elem[0]);
- datetime.tm_min = atoi(elem[1]);
- if (length > 2)
- datetime.tm_sec = atoi(elem[2]);
- if (length > 3 && strcasecmp(elem[3], "z") == 0)
- utc = TRUE;
- g_strfreev(elem);
- }
- elem = g_strsplit(time_elem, "/", 3);
- datetime.tm_year = atoi(elem[0]) - 1900;
- datetime.tm_mon = atoi(elem[1]) - 1;
- datetime.tm_mday = atoi(elem[2]);
- g_strfreev(elem);
- if (utc) {
- t = mktime(&datetime);
- struct tm* utc_time = gmtime(&t);
- t = mktime(utc_time);
- //g_free(utc_time);
- }
- else
- t = mktime(&datetime);
- return t;
-}
-
-static const char* usage[] = {
-"caldav-test is part of libcaldav for claws-mails "
-"vcalendar plugin.\nCopyright (C) Michael Rasmussen, 2008.\n"
-"This program is free software; you can redistribute it and/or modify\n"
-"it under the terms of the GNU General Public License as published by\n"
-"the Free Software Foundation; either version 3 of the License, or\n"
-"(at your option) any later version.\n"
-"\nusage:\n\tcaldav-test [Options] URL\n"
-"\n\tOptions:\n\t\t-a\taction [is-caldav|add|delete|modify|get|get-all|displayname|options|freebusy]\n"
-"\t\t-c\tprovide custom cacert (path to cert)\n"
-"\t\t-d\tdebug (show request/response)\n"
-"\t\t-e\tend [yyyy/mm/dd]. For FREEBUSY [yyyy/mm/dd[ hh/mm[/ss[/z]]]\n"
-"\t\t-f\tfile. Alternative is to use IO redirection (<)\n"
-"\t\t-p\tpassword\n"
-"\t\t-s\tstart [yyyy/mm/dd]. For FREEBUSY [yyyy/mm/dd[ hh/mm[/ss[/z]]]\n"
-"\t\t-u\tusername\n"
-"\t\t-v\tdisable certificate verification\n"
-"\t\t-h|-?\tusage\n"
-};
-
-int main(int argc, char **argv) {
- int c;
- CALDAV_ACTION ACTION = UNKNOWN;
- gboolean debug = FALSE;
- gboolean verify_ssl_certificate = TRUE;
- FILE* stream = NULL;
- gchar* username = NULL;
- gchar* password = NULL;
- gchar* url = NULL;
- gchar* start = NULL;
- gchar* end = NULL;
- response* result;
- CALDAV_RESPONSE res = UNKNOWN;
- gchar* input = NULL;
- char** options = NULL;
- runtime_info* opt;
- gchar* custom_cacert = NULL;
-
- opt = caldav_get_runtime_info();
- while ((c = getopt(argc, argv, "a:c:de:f:hp:s:u:v?")) != -1) {
- switch (c) {
- case 'h':
- case '?':
- fprintf(stdout, "%s", usage[0]);
- return 0;
- case 'a':
- if (strcmp("add", optarg) == 0) {
- ACTION = ADD;
- }
- else if (strcmp("delete", optarg) == 0) {
- ACTION = DELETE;
- }
- else if (strcmp("modify", optarg) == 0) {
- ACTION = MODIFY;
- }
- else if (strcmp("get", optarg) == 0) {
- ACTION = GET;
- }
- else if (strcmp("get-all", optarg) == 0) {
- ACTION = GETALL;
- }
- else if (strcmp("displayname", optarg) == 0) {
- ACTION = GETCALNAME;
- }
- else if (strcmp("is-caldav", optarg) == 0) {
- ACTION = ISCALDAV;
- }
- else if (strcmp("options", optarg) == 0) {
- ACTION = OPTIONS;
- }
- else if (strcmp("freebusy", optarg) == 0) {
- ACTION = FREEBUSY;
- }
- else {
- fprintf(stderr, "Unknown action: %s\n", optarg);
- fprintf(stderr, "%s", usage[0]);
- return 1;
- }
- break;
- case 'c':
- custom_cacert = g_strdup(optarg);
- break;
- case 'd':
- debug = TRUE;
- break;
- case 'e':
- end = optarg;
- break;
- case 'f':
- stream = fopen(optarg, "r");
- if (!stream) {
- perror("File");
- caldav_free_runtime_info(&opt);
- return 1;
- }
- case 'p':
- password = optarg;
- break;
- case 's':
- start = optarg;
- break;
- case 'u':
- username = optarg;
- break;
- case 'v':
- verify_ssl_certificate = FALSE;
- break;
- default:
- return 1;
- }
- }
- if (optind < argc - 1) {
- fprintf(stderr, "Error: Only enter one URL\n");
- fprintf(stderr, "%s", usage[0]);
- caldav_free_runtime_info(&opt);
- return 1;
- }
- if (optind == argc) {
- fprintf(stderr, "Error: Missing URL\n");
- fprintf(stderr, "%s", usage[0]);
- caldav_free_runtime_info(&opt);
- return 1;
- }
- if (ACTION == UNKNOWN) {
- fprintf(stderr, "Error: Missing action\n");
- fprintf(stderr, "%s", usage[0]);
- caldav_free_runtime_info(&opt);
- return 1;
- }
- if (ACTION != GETALL && ACTION != GET && ACTION != GETCALNAME &&
- ACTION != ISCALDAV && ACTION != OPTIONS && ACTION != FREEBUSY) {
- struct stat sb;
- if (fstat(fileno(stdin), &sb) == -1) {
- if (!stream) {
- perror("stat");
- caldav_free_runtime_info(&opt);
- return 1;
- }
- }
- else {
- if (stream && sb.st_size > 0) {
- fprintf(stderr, "Error: Option -f is in use. Cannot redirect stdin\n");
- caldav_free_runtime_info(&opt);
- return 1;
- }
- else
- stream = (stream) ? stream : stdin;
- }
- input = read_stream(stream, input);
- if (!input) {
- fprintf(stderr, "Error: Could not read from file\n");
- caldav_free_runtime_info(&opt);
- return 1;
- }
- }
- if (ACTION == GET || ACTION == FREEBUSY) {
- if (start == NULL || end == NULL) {
- fprintf(stderr, "Error: Option '-a get' or '-a freebusy' requires option e and s\n");
- fprintf(stderr, "%s", usage[0]);
- caldav_free_runtime_info(&opt);
- return 1;
- }
- }
- url = make_url(username, password, argv[optind]);
- if (debug) {
- opt->options->debug = 1;
- opt->options->trace_ascii = 1;
- }
- opt->options->verify_ssl_certificate = verify_ssl_certificate;
- opt->options->custom_cacert = g_strdup(custom_cacert);
- g_free(custom_cacert);
- result = caldav_get_response();
- switch (ACTION) {
- case GETALL: res = caldav_getall_object(result, url, opt); break;
- case GET: res = caldav_get_object(
- result, make_time_t(start), make_time_t(end), url, opt); break;
- case FREEBUSY: res = caldav_get_freebusy(
- result, make_fbtime_t(start), make_fbtime_t(end), url, opt); break;
- case ADD: res = caldav_add_object(input, url, opt); break;
- case DELETE: res = caldav_delete_object(input, url, opt); break;
- case MODIFY: res = caldav_modify_object(input, url, opt); break;
- case GETCALNAME: res = caldav_get_displayname(result, url, opt); break;
- case ISCALDAV:
- res = caldav_enabled_resource(url, opt);
- if (res)
- res = OK;
- else {
- if (opt->error->code > 0) {
- switch (opt->error->code) {
- case 401:
- case 403: res = FORBIDDEN; break;
- case 409: res = CONFLICT; break;
- case 423: res = LOCKED; break;
- case 501: res = NOTIMPLEMENTED; break;
- default: res = CONFLICT; break;
- }
- }
- else
- res = CONFLICT;
- }
- break;
- case OPTIONS:
- options = caldav_get_server_options(url, opt);
- if (options)
- res = OK;
- else {
- if (opt->error->code > 0) {
- switch (opt->error->code) {
- case 401:
- case 403: res = FORBIDDEN; break;
- case 409: res = CONFLICT; break;
- case 423: res = LOCKED; break;
- case 501: res = NOTIMPLEMENTED; break;
- default: res = CONFLICT; break;
- }
- }
- else
- res = CONFLICT;
- }
- break;
- default: break;
- }
- g_free(url);
- g_free(input);
- if (res != OK) {
- fprintf(stderr, "Error\nCode: %ld\n%s\n", opt->error->code, opt->error->str);
- caldav_free_runtime_info(&opt);
- caldav_free_response(&result);
- return 1;
- }
- if (result->msg && ACTION != OPTIONS) {
- fprintf(stdout, "%s", result->msg);
- gchar* endline = strrchr(result->msg, '\n');
- if (endline) {
- if (strlen(endline) != 1)
- fprintf(stdout, "\n");
- }
- else
- fprintf(stdout, "\n");
- }
- else if (ACTION == OPTIONS) {
- char** tmp = options;
- while (*options) {
- fprintf(stdout, "%s\n", *options++);
- }
- g_strfreev(tmp);
- }
- else if (ACTION == GET || ACTION == GETALL || ACTION == GETCALNAME || ACTION == FREEBUSY) {
- fprintf(stdout, "empty collection\n");
- }
- fprintf(stdout, "OK\n");
- caldav_free_response(&result);
- caldav_free_runtime_info(&opt);
- return 0;
-}
diff --git a/test/unittest/.svn/all-wcprops b/test/unittest/.svn/all-wcprops
deleted file mode 100644
index 3036c48..0000000
--- a/test/unittest/.svn/all-wcprops
+++ /dev/null
@@ -1,23 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 50
-/svnroot/libcaldav/!svn/ver/42/trunk/test/unittest
-END
-Makefile.in
-K 25
-svn:wc:ra_dav:version-url
-V 62
-/svnroot/libcaldav/!svn/ver/42/trunk/test/unittest/Makefile.in
-END
-libunit.c
-K 25
-svn:wc:ra_dav:version-url
-V 60
-/svnroot/libcaldav/!svn/ver/40/trunk/test/unittest/libunit.c
-END
-Makefile.am
-K 25
-svn:wc:ra_dav:version-url
-V 62
-/svnroot/libcaldav/!svn/ver/30/trunk/test/unittest/Makefile.am
-END
diff --git a/test/unittest/.svn/entries b/test/unittest/.svn/entries
deleted file mode 100644
index 3756817..0000000
--- a/test/unittest/.svn/entries
+++ /dev/null
@@ -1,130 +0,0 @@
-10
-
-dir
-42
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav/trunk/test/unittest
-https://libcaldav.svn.sourceforge.net/svnroot/libcaldav
-
-
-
-2010-05-29T15:45:56.236020Z
-42
-miras
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-6bb92309-7149-0410-b568-bc30dfd0a1d5
-
-Makefile.in
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-b1273950d94bccb8c4248fdd8c4b7a89
-2010-05-29T15:45:56.236020Z
-42
-miras
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-17653
-
-libunit.c
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-6d177ca8a47a1b2aa5d05b3aa65f9df5
-2010-05-23T21:46:08.944313Z
-40
-miras
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-16563
-
-Makefile.am
-file
-
-
-
-
-2010-05-31T07:07:58.000000Z
-60502f8e62676b65dc3e97abff162887
-2010-04-04T20:17:57.156621Z
-30
-miras
-has-props
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-337
-
diff --git a/test/unittest/.svn/prop-base/Makefile.am.svn-base b/test/unittest/.svn/prop-base/Makefile.am.svn-base
deleted file mode 100644
index 74fda45..0000000
--- a/test/unittest/.svn/prop-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 22
-Author Date Id Rev URL
-END
diff --git a/test/unittest/.svn/prop-base/Makefile.in.svn-base b/test/unittest/.svn/prop-base/Makefile.in.svn-base
deleted file mode 100644
index 74fda45..0000000
--- a/test/unittest/.svn/prop-base/Makefile.in.svn-base
+++ /dev/null
@@ -1,5 +0,0 @@
-K 12
-svn:keywords
-V 22
-Author Date Id Rev URL
-END
diff --git a/test/unittest/.svn/prop-base/libunit.c.svn-base b/test/unittest/.svn/prop-base/libunit.c.svn-base
deleted file mode 100644
index 514d003..0000000
--- a/test/unittest/.svn/prop-base/libunit.c.svn-base
+++ /dev/null
@@ -1,9 +0,0 @@
-K 13
-svn:eol-style
-V 6
-native
-K 12
-svn:keywords
-V 22
-Author Date Id Rev URL
-END
diff --git a/test/unittest/.svn/text-base/Makefile.am.svn-base b/test/unittest/.svn/text-base/Makefile.am.svn-base
deleted file mode 100644
index 6d09609..0000000
--- a/test/unittest/.svn/text-base/Makefile.am.svn-base
+++ /dev/null
@@ -1,22 +0,0 @@
-AUTOMAKE_OPTIONS = gnu
-
-if BUILD_UNITTEST
-INCLUDES = \
- @CURL_CFLAGS@ \
- @GLIB_CFLAGS@ \
- -I$(top_srcdir) \
- -I$(top_srcdir)/src
-
-bin_PROGRAMS = unittest
-
-unittest_SOURCES = \
- libunit.c
-
-unittest_LDFLAGS = \
- -L$(top_builddir)/src
-
-unittest_LDADD = \
- @CURL_LIBS@ \
- @GLIB_LIBS@ \
- -lcaldav
-endif
diff --git a/test/unittest/.svn/text-base/Makefile.in.svn-base b/test/unittest/.svn/text-base/Makefile.in.svn-base
deleted file mode 100644
index 353f818..0000000
--- a/test/unittest/.svn/text-base/Makefile.in.svn-base
+++ /dev/null
@@ -1,564 +0,0 @@
-# Makefile.in generated by automake 1.11.1 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.
-# 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@
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkglibexecdir = $(libexecdir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-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@
-@BUILD_UNITTEST_TRUE@bin_PROGRAMS = unittest$(EXEEXT)
-subdir = test/unittest
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/ax_prog_doxygen.m4 \
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-am__installdirs = "$(DESTDIR)$(bindir)"
-PROGRAMS = $(bin_PROGRAMS)
-am__unittest_SOURCES_DIST = libunit.c
-@BUILD_UNITTEST_TRUE@am_unittest_OBJECTS = libunit.$(OBJEXT)
-unittest_OBJECTS = $(am_unittest_OBJECTS)
-unittest_DEPENDENCIES =
-unittest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(unittest_LDFLAGS) \
- $(LDFLAGS) -o $@
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/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)
-CCLD = $(CC)
-LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
- --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
- $(LDFLAGS) -o $@
-SOURCES = $(unittest_SOURCES)
-DIST_SOURCES = $(am__unittest_SOURCES_DIST)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMTAR = @AMTAR@
-AR = @AR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CURL_CFLAGS = @CURL_CFLAGS@
-CURL_LIBS = @CURL_LIBS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@
-DSYMUTIL = @DSYMUTIL@
-DUMPBIN = @DUMPBIN@
-DX_CONFIG = @DX_CONFIG@
-DX_DOCDIR = @DX_DOCDIR@
-DX_DOT = @DX_DOT@
-DX_DOXYGEN = @DX_DOXYGEN@
-DX_DVIPS = @DX_DVIPS@
-DX_EGREP = @DX_EGREP@
-DX_ENV = @DX_ENV@
-DX_FLAG_chi = @DX_FLAG_chi@
-DX_FLAG_chm = @DX_FLAG_chm@
-DX_FLAG_doc = @DX_FLAG_doc@
-DX_FLAG_dot = @DX_FLAG_dot@
-DX_FLAG_html = @DX_FLAG_html@
-DX_FLAG_man = @DX_FLAG_man@
-DX_FLAG_pdf = @DX_FLAG_pdf@
-DX_FLAG_ps = @DX_FLAG_ps@
-DX_FLAG_rtf = @DX_FLAG_rtf@
-DX_FLAG_xml = @DX_FLAG_xml@
-DX_HHC = @DX_HHC@
-DX_LATEX = @DX_LATEX@
-DX_MAKEINDEX = @DX_MAKEINDEX@
-DX_PDFLATEX = @DX_PDFLATEX@
-DX_PERL = @DX_PERL@
-DX_PROJECT = @DX_PROJECT@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-FGREP = @FGREP@
-GLIB_CFLAGS = @GLIB_CFLAGS@
-GLIB_LIBS = @GLIB_LIBS@
-GREP = @GREP@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LD = @LD@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIBTOOL = @LIBTOOL@
-LIBVERSION = @LIBVERSION@
-LIPO = @LIPO@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
-MKDIR_P = @MKDIR_P@
-NM = @NM@
-NMEDIT = @NMEDIT@
-OBJDUMP = @OBJDUMP@
-OBJEXT = @OBJEXT@
-OTOOL = @OTOOL@
-OTOOL64 = @OTOOL64@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_URL = @PACKAGE_URL@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PKG_CONFIG = @PKG_CONFIG@
-PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
-PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
-RANLIB = @RANLIB@
-SED = @SED@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-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_DUMPBIN = @ac_ct_DUMPBIN@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-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@
-lt_ECHO = @lt_ECHO@
-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 = @target@
-target_alias = @target_alias@
-target_cpu = @target_cpu@
-target_os = @target_os@
-target_vendor = @target_vendor@
-top_build_prefix = @top_build_prefix@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-AUTOMAKE_OPTIONS = gnu
-@BUILD_UNITTEST_TRUE@INCLUDES = \
-@BUILD_UNITTEST_TRUE@ @CURL_CFLAGS@ \
-@BUILD_UNITTEST_TRUE@ @GLIB_CFLAGS@ \
-@BUILD_UNITTEST_TRUE@ -I$(top_srcdir) \
-@BUILD_UNITTEST_TRUE@ -I$(top_srcdir)/src
-
-@BUILD_UNITTEST_TRUE@unittest_SOURCES = \
-@BUILD_UNITTEST_TRUE@ libunit.c
-
-@BUILD_UNITTEST_TRUE@unittest_LDFLAGS = \
-@BUILD_UNITTEST_TRUE@ -L$(top_builddir)/src
-
-@BUILD_UNITTEST_TRUE@unittest_LDADD = \
-@BUILD_UNITTEST_TRUE@ @CURL_LIBS@ \
-@BUILD_UNITTEST_TRUE@ @GLIB_LIBS@ \
-@BUILD_UNITTEST_TRUE@ -lcaldav
-
-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 ) \
- && { if test -f $@; then exit 0; else break; fi; }; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu test/unittest/Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --gnu test/unittest/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
-$(am__aclocal_m4_deps):
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- for p in $$list; do echo "$$p $$p"; done | \
- sed 's/$(EXEEXT)$$//' | \
- while read p p1; do if test -f $$p || test -f $$p1; \
- then echo "$$p"; echo "$$p"; else :; fi; \
- done | \
- sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
- -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
- sed 'N;N;N;s,\n, ,g' | \
- $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
- { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
- if ($$2 == $$4) files[d] = files[d] " " $$1; \
- else { print "f", $$3 "/" $$4, $$1; } } \
- END { for (d in files) print "f", d, files[d] }' | \
- while read type dir files; do \
- if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
- test -z "$$files" || { \
- echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
- $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
- } \
- ; done
-
-uninstall-binPROGRAMS:
- @$(NORMAL_UNINSTALL)
- @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
- files=`for p in $$list; do echo "$$p"; done | \
- sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
- -e 's/$$/$(EXEEXT)/' `; \
- test -n "$$list" || exit 0; \
- echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
- cd "$(DESTDIR)$(bindir)" && rm -f $$files
-
-clean-binPROGRAMS:
- @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
- echo " rm -f" $$list; \
- rm -f $$list || exit $$?; \
- test -n "$(EXEEXT)" || exit 0; \
- list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
- echo " rm -f" $$list; \
- rm -f $$list
-unittest$(EXEEXT): $(unittest_OBJECTS) $(unittest_DEPENDENCIES)
- @rm -f unittest$(EXEEXT)
- $(unittest_LINK) $(unittest_OBJECTS) $(unittest_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT)
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libunit.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@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(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@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(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@
-@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
-
-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)
- 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; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$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; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__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)'; \
- 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; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$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
-check: check-am
-all-am: Makefile $(PROGRAMS)
-installdirs:
- for dir in "$(DESTDIR)$(bindir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
-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 . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-
-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-binPROGRAMS clean-generic clean-libtool mostlyclean-am
-
-distclean: distclean-am
- -rm -rf ./$(DEPDIR)
- -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
- distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-html-am:
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-dvi-am:
-
-install-exec-am: install-binPROGRAMS
-
-install-html: install-html-am
-
-install-html-am:
-
-install-info: install-info-am
-
-install-info-am:
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-pdf-am:
-
-install-ps: install-ps-am
-
-install-ps-am:
-
-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-binPROGRAMS
-
-.MAKE: install-am install-strip
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
- clean-generic clean-libtool ctags distclean distclean-compile \
- distclean-generic distclean-libtool distclean-tags distdir dvi \
- dvi-am html html-am info info-am install install-am \
- install-binPROGRAMS install-data 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-binPROGRAMS
-
-
-# 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/test/unittest/.svn/text-base/libunit.c.svn-base b/test/unittest/.svn/text-base/libunit.c.svn-base
deleted file mode 100644
index b0be673..0000000
--- a/test/unittest/.svn/text-base/libunit.c.svn-base
+++ /dev/null
@@ -1,615 +0,0 @@
-/* vim: set textwidth=80 tabstop=4: */
-
-/*
-// libunit.c
-//
-// Copyright 2010 Michael Rasmussen <mir@datanom.net>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-// MA 02110-1301, USA.
-*/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include "caldav.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <glib.h>
-#include <string.h>
-#include <sys/time.h>
-#include <string.h>
-
-static const char* usage[] = {
-"unittest is part of libcaldav for claws-mails "
-"vcalendar plugin.\nCopyright (C) Michael Rasmussen, 2008.\n"
-"This program is free software; you can redistribute it and/or modify\n"
-"it under the terms of the GNU General Public License as published by\n"
-"the Free Software Foundation; either version 3 of the License, or\n"
-"(at your option) any later version.\n"
-"\nusage:\n\tunittest [Options]\n"
-"\n\tOptions:\n"
-"\t\t-h|-?\tusage\n"
-"\t\t-a\tURL\n"
-"\t\t-d\tEnable debug\n"
-"\t\t-l\tDebug library\n"
-"\t\t-p\tpassword\n"
-"\t\t-u\tusername\n"
-};
-
-/*
- * Options can be given in one of three ways:
- * 1) Entered as options on the command line
- * 2) Stored in environment variables:
- * - LIBCALDAV_UID -> username to use when connection to server
- * - LIBCALDAV_PWD -> password, if any, to use when connection to server
- * - LIBCALDAV_URL -> complete URL to server. prefixed with either
- * http:// or https://
- * 3) Stored in a file found in the same directory as the program:
- * [server]
- * password=Big secret
- * username=username
- * url=http[s]://bar.tld/foo
- */
-
-#define CONFFILE "caldav-unit-settings.conf"
-
-typedef struct {
- gchar* uid;
- gchar* pwd;
- gchar* url;
-} settings;
-
-typedef enum {
- PWD,
- UID,
- URL
-} CONFIG;
-
-static settings* SETTING = NULL;
-gboolean DEBUG = FALSE;
-gboolean DEBUG_LIB = FALSE;
-
-void settings_free(settings** setting) {
- settings* s;
-
- if (! *setting)
- return;
- s = *setting;
- g_free(s->url);
- g_free(s->uid);
- g_free(s->pwd);
- g_free(s);
- *setting = s = NULL;
-}
-
-settings* parse_cmdline(int argc, char** argv) {
- char c;
- settings* setting;
-
- setting = g_new0(settings, 1);
- while ((c = getopt(argc, argv, "ha:dlp:u:?")) != -1) {
- switch (c) {
- case 'h':
- case '?':
- fprintf(stdout, "%s", usage[0]);
- return 0;
- case 'a':
- setting->url = g_strdup(optarg);
- break;
- case 'd':
- DEBUG = TRUE;
- break;
- case 'l':
- DEBUG_LIB = TRUE;
- break;
- case 'p':
- setting->pwd = g_strdup(optarg);
- break;
- case 'u':
- setting->uid = g_strdup(optarg);
- break;
- }
- }
- if (argv[optind]) {
- fprintf(stderr, "No arguments after options expected\n");
- fprintf(stderr, "%s", usage[0]);
- settings_free(&setting);
- return NULL;
- }
-
- return setting;
-}
-
-void read_file(const gchar* file) {
- GKeyFile* keyfile;
-
- if (! SETTING) {
- SETTING = g_new0(settings, 1);
- keyfile = g_key_file_new();
- if (g_key_file_load_from_file(keyfile,
- file,
- G_KEY_FILE_KEEP_COMMENTS,
- NULL)) {
- SETTING->pwd = g_key_file_get_string(keyfile,
- "server",
- "password",
- NULL);
- SETTING->uid = g_key_file_get_string(keyfile,
- "server",
- "username",
- NULL);
- SETTING->url = g_key_file_get_string(keyfile,
- "server",
- "url",
- NULL);
- }
- g_key_file_free(keyfile);
- }
-}
-
-const gchar* get_setting_from_file(CONFIG config) {
- gchar* cwd;
- gchar* path;
- gchar* pos;
- gchar* setting = NULL;
- int step;
-
- gchar* filename = g_get_prgname();
- if (filename[0] == '/') {
- /* absolute path */
- cwd = g_path_get_dirname(filename);
- }
- else if ((pos = strchr(filename, '/')) != NULL) {
- /* relative path */
- if (filename[0] == '.') {
- char* tmp = pos;
- while (tmp) {
- if (strncmp(tmp, "..", 2) == 0)
- step = 2;
- else
- step = 1;
- tmp = strchr(pos + step, '/');
- if (tmp)
- pos = tmp;
- }
- if (pos == NULL) {
- pos = strchr(filename, '/');
- }
- }
- path = g_get_current_dir();
- cwd = g_build_filename(path, pos + 1, NULL);
- g_free(path);
- if (g_file_test(cwd, G_FILE_TEST_IS_REGULAR)) {
- pos = strrchr(cwd, '/');
- if (pos) {
- path = g_strndup(cwd, pos - cwd);
- g_free(cwd);
- cwd = g_strdup(path);
- g_free(path);
- }
- }
- }
- else {
- /* find cwd in PATH */
- cwd = g_find_program_in_path(filename);
- }
- path = g_build_filename(cwd, CONFFILE, NULL);
- g_free(cwd);
- if (g_file_test(path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) {
- read_file(path);
- switch (config) {
- case UID: setting = SETTING->uid; break;
- case PWD: setting = SETTING->pwd; break;
- case URL: setting = SETTING->url; break;
- }
- }
- g_free(path);
- return setting;
-}
-
-gboolean find_missing(settings** setting) {
- settings* s = *setting;
- const char* env;
- gboolean error = FALSE;
-
- if (! s)
- return TRUE;
-
- if (! s->uid) {
- if ((env = getenv("LIBCALDAV_UID")) == NULL) {
- env = get_setting_from_file(UID);
- if (env == NULL)
- error = TRUE;
- }
- s->uid = g_strdup(env);
- }
- if (! s->pwd) {
- if ((env = getenv("LIBCALDAV_PWD")) == NULL) {
- env = get_setting_from_file(PWD);
- if (env == NULL)
- error = TRUE;
- }
- s->pwd = g_strdup(env);
- }
- if (! s->url) {
- if ((env = getenv("LIBCALDAV_URL")) == NULL) {
- env = get_setting_from_file(URL);
- if (env == NULL)
- error = TRUE;
- }
- s->url = g_strdup(env);
- }
- settings_free(&SETTING);
- return error;
-}
-
-time_t make_time_t(const char* time_elem) {
- struct tm datetime = {0,0,0,0,0,0,0,0,0,0,NULL};
- struct tm* tmp;
- gchar** elem;
- time_t t;
-
- t = time(NULL);
- tmp = localtime(&t);
- elem = g_strsplit(time_elem, "/", 3);
- datetime.tm_year = atoi(elem[0]) - 1900;
- datetime.tm_mon = atoi(elem[1]) - 1;
- datetime.tm_mday = atoi(elem[2]);
- g_strfreev(elem);
- t = mktime(&datetime);
- return t;
-}
-
-gboolean compare_freebusy(const gchar* s1, const gchar* s2) {
- const char* TOKEN = "FREEBUSY:";
- gchar* pos1;
- gchar* pos2;
- gchar* id1;
-
- if (! s1 && ! s2)
- return TRUE;
- if (! s1 || ! s2)
- return FALSE;
- pos1 = strstr(s2, TOKEN);
- if (! pos1)
- return FALSE;
- pos1 += strlen(TOKEN);
- pos2 = strchr(pos1, '\n');
- if (! pos2)
- return FALSE;
- if (*(pos2 - 1) == '\r')
- pos2--;
- id1 = g_strndup(pos1, pos2 - pos1);
- int res = strcmp(s1, id1);
- g_free(id1);
- return (res == 0);
-}
-
-gboolean compare_object(const gchar* TOKEN, const gchar* s1, const gchar* s2) {
- gchar* pos1;
- gchar* pos2;
- gchar* id1;
- gchar* id2;
-
- if (! s1 && ! s2)
- return TRUE;
- if (! s1 || ! s2)
- return FALSE;
- pos1 = strstr(s1, TOKEN);
- if (! pos1)
- return FALSE;
- pos1 += strlen(TOKEN) + 1;
- pos2 = strchr(pos1, '\n');
- if (! pos2)
- return FALSE;
- if (*(pos2 - 1) == '\r')
- pos2--;
- id1 = g_strndup(pos1, pos2 - pos1);
- pos2 = strstr(s2, TOKEN);
- if (! pos2) {
- g_free(id1);
- return FALSE;
- }
- pos2 += strlen(TOKEN) + 1;
- pos1 = strchr(pos2, '\n');
- if (! pos1) {
- g_free(id1);
- return FALSE;
- }
- if (*(pos1 - 1) == '\r')
- pos1--;
- id2 = g_strndup(pos2, pos1 - pos2);
- int res = strcmp(id1, id2);
- g_free(id1);
- g_free(id2);
- return (res == 0);
-}
-
-void run_tests(settings* s) {
- runtime_info* info = caldav_get_runtime_info();
- response* resp = caldav_get_response();
- gchar** parts;
- gchar* url;
- gchar* object;
-
- if (DEBUG_LIB) {
- info->options->debug = 1;
- info->options->trace_ascii = 1;
- }
- parts = g_strsplit(s->url, "//", 2);
- url = g_strconcat(
- parts[0], "//", s->uid, ":", s->pwd, "@", parts[1], NULL);
- g_strfreev(parts);
- fprintf(stdout, "Test caldav_enabled_resource:\t\t\t");
- if (caldav_enabled_resource(url, info)) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "caldav enabled server\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test caldav_get_displayname:\t\t\t");
- if (caldav_get_displayname(resp, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Display Name: %s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;
- fprintf(stdout, "Test caldav_get_server_options:\t\t\t");
- if ((parts = caldav_get_server_options(url, info)) != NULL) {
- fprintf(stdout, "OK\n");
- if (DEBUG) {
- char** tmp = parts;
- while (*tmp) {
- fprintf(stdout, "--> %s\n", *tmp++);
- }
- }
- g_strfreev(parts);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_file_get_contents("../ics/add.ics", &object, NULL, NULL);
- fprintf(stdout, "Test caldav_add_object:\t\t\t\t");
- if (caldav_add_object(object, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Added successfully\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object was added:\t\t\t");
- if (caldav_get_object(resp, make_time_t("2008/04/15"),
- make_time_t("2008/04/16"), url, info) == OK) {
- if (compare_object("UID", object, resp->msg))
- fprintf(stdout, "OK\n");
- else
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;
- g_free(object);
- fprintf(stdout, "Test FREEBUSY search the same day:\t\t");
- if (caldav_get_freebusy(resp, make_time_t("2008/04/15"),
- make_time_t("2008/04/16"), url, info) == OK) {
- if (compare_freebusy("20080415T151500Z/20080415T162500", resp->msg))
- fprintf(stdout, "OK\n");
- else
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;
- g_file_get_contents("../ics/modify.ics", &object, NULL, NULL);
- fprintf(stdout, "Test caldav_modify_object:\t\t\t");
- if (caldav_modify_object(object, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Modified successfully\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object was modified:\t\t\t");
- if (caldav_get_object(resp, make_time_t("2008/04/16"),
- make_time_t("2008/04/17"), url, info) == OK) {
- if (compare_object("DTEND", object, resp->msg))
- fprintf(stdout, "OK\n");
- else
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;
- fprintf(stdout, "Test caldav_getall_object:\t\t\t");
- if (caldav_getall_object(resp, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object exists:\t\t\t\t");
- if (compare_object("UID", object, resp->msg))
- fprintf(stdout, "FAIL\n");
- else
- fprintf(stdout, "OK\n");
- g_free(resp->msg);
- resp->msg = NULL;
- g_free(object);
- g_file_get_contents("../ics/delete.ics", &object, NULL, NULL);
- fprintf(stdout, "Test caldav_delete_object:\t\t\t");
- if (caldav_delete_object(object, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Deleted successfully\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object was deleted:\t\t\t");
- if (caldav_get_object(resp, make_time_t("2008/04/16"),
- make_time_t("2008/04/17"), url, info) == OK) {
- if (compare_object("UID", object, resp->msg))
- fprintf(stdout, "FAIL\n");
- else
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "%s\n", (resp->msg) ? resp->msg : "No object found");
- g_free(resp->msg);
- resp->msg = NULL;
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(object);
- fprintf(stdout, "\nTesting without using locks\n");
- info->options->use_locking = 0;
- g_file_get_contents("../ics/add.ics", &object, NULL, NULL);
- fprintf(stdout, "Test caldav_add_object:\t\t\t\t");
- if (caldav_add_object(object, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Added successfully\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object was added:\t\t\t");
- if (caldav_get_object(resp, make_time_t("2008/04/15"),
- make_time_t("2008/04/16"), url, info) == OK) {
- if (compare_object("UID", object, resp->msg))
- fprintf(stdout, "OK\n");
- else
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;
- g_free(object);
-/* fprintf(stdout, "Test FREEBUSY search the same day:\t\t");
- if (caldav_get_freebusy(resp, make_time_t("2008/04/15"),
- make_time_t("2008/04/16"), url, info) == OK) {
- if (compare_freebusy("20080415T151500Z/20080415T162500", resp->msg))
- fprintf(stdout, "OK\n");
- else
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;*/
- g_file_get_contents("../ics/modify.ics", &object, NULL, NULL);
- fprintf(stdout, "Test caldav_modify_object:\t\t\t");
- if (caldav_modify_object(object, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Modified successfully\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object was modified:\t\t\t");
- if (caldav_get_object(resp, make_time_t("2008/04/16"),
- make_time_t("2008/04/17"), url, info) == OK) {
- if (compare_object("DTEND", object, resp->msg))
- fprintf(stdout, "OK\n");
- else
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%s\n", resp->msg);
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(resp->msg);
- resp->msg = NULL;
- g_free(object);
- g_file_get_contents("../ics/delete.ics", &object, NULL, NULL);
- fprintf(stdout, "Test caldav_delete_object:\t\t\t");
- if (caldav_delete_object(object, url, info) == OK) {
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "Deleted successfully\n");
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- fprintf(stdout, "Test if object was deleted:\t\t\t");
- if (caldav_get_object(resp, make_time_t("2008/04/16"),
- make_time_t("2008/04/17"), url, info) == OK) {
- if (compare_object("UID", object, resp->msg))
- fprintf(stdout, "FAIL\n");
- else
- fprintf(stdout, "OK\n");
- if (DEBUG) fprintf(stdout, "%s\n", (resp->msg) ? resp->msg : "No object found");
- g_free(resp->msg);
- resp->msg = NULL;
- }
- else {
- fprintf(stdout, "FAIL\n");
- if (DEBUG) fprintf(stdout, "%ld: %s\n", info->error->code, info->error->str);
- }
- g_free(url);
- caldav_free_response(&resp);
- caldav_free_runtime_info(&info);
-}
-
-int main(int argc, char** argv) {
- settings* setting;
-
- g_set_prgname(argv[0]);
- setting = parse_cmdline(argc, argv);
- if (find_missing(&setting)) {
- fprintf(stderr, "missing required information\n");
- fprintf(stdout, "%s", usage[0]);
- settings_free(&setting);
- return 1;
- }
- run_tests(setting);
- settings_free(&setting);
- return 0;
-}