diff options
author | Not Zed <NotZed@Ximian.com> | 2001-06-12 22:29:28 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-06-12 22:29:28 +0800 |
commit | f14e85f771600855dedae6d29301d656ea86185b (patch) | |
tree | 2a2dd4e515e0398c3f737c800c966f55acae6a38 /camel/tests/folder | |
parent | 8131304fd121b4c3b4df98a17b3a376c1bffaada (diff) | |
download | gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.gz gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.tar.zst gsoc2013-evolution-f14e85f771600855dedae6d29301d656ea86185b.zip |
A new provider, for spool mailboxes. Mostly a cut and paste of the mbox
2001-06-12 Not Zed <NotZed@Ximian.com>
* providers/local/camel-spool-*.[ch]: A new provider, for spool
mailboxes. Mostly a cut and paste of the mbox code, but not a
subclass CamelLocal*. Not tested a lot, doesn't lock yet, use
with extreme caution.
* tests/lib/folders.c (test_folder_message_ops): Added spool arg,
spool folders can't be deleted, renamed, etc.
(test_folder_basic): Same.
* tests/folder/test2.c (main): Added checks for spool type.
* tests/[message|stream|folder|misc|smime]/Makefile.am (LDADD):
Added db3 flags, so make check compiles, doesn't run though.
2001-05-24 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-provider.c
(camel_provider_module_init): Added spool provider.
svn path=/trunk/; revision=10198
Diffstat (limited to 'camel/tests/folder')
-rw-r--r-- | camel/tests/folder/Makefile.am | 1 | ||||
-rw-r--r-- | camel/tests/folder/test1.c | 2 | ||||
-rw-r--r-- | camel/tests/folder/test2.c | 10 | ||||
-rw-r--r-- | camel/tests/folder/test4.c | 2 | ||||
-rw-r--r-- | camel/tests/folder/test5.c | 2 |
5 files changed, 13 insertions, 4 deletions
diff --git a/camel/tests/folder/Makefile.am b/camel/tests/folder/Makefile.am index f6dd852dd8..1b3e3338ec 100644 --- a/camel/tests/folder/Makefile.am +++ b/camel/tests/folder/Makefile.am @@ -8,6 +8,7 @@ LDADD = \ $(top_builddir)/camel/libcamel.la \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/libibex/libibex.la \ + $(DB3_LDADD) \ $(GNOME_LIBDIR) \ $(top_builddir)/camel/tests/lib/libcameltest.a \ $(GNOMEUI_LIBS) $(INTLLIBS) $(EXTRA_GNOME_LIBS) diff --git a/camel/tests/folder/test1.c b/camel/tests/folder/test1.c index 4d589099f5..c1d3809852 100644 --- a/camel/tests/folder/test1.c +++ b/camel/tests/folder/test1.c @@ -38,7 +38,7 @@ int main(int argc, char **argv) for (i=0;i<ARRAY_LEN(local_providers);i++) { path = g_strdup_printf("%s:///tmp/camel-test/%s", local_providers[i], local_providers[i]); - test_folder_basic(session, path, TRUE); + test_folder_basic(session, path, TRUE, FALSE); g_free(path); } diff --git a/camel/tests/folder/test2.c b/camel/tests/folder/test2.c index 0fafce35be..9ea0efabbb 100644 --- a/camel/tests/folder/test2.c +++ b/camel/tests/folder/test2.c @@ -1,5 +1,9 @@ /* folder testing */ +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> + #include "camel-test.h" #include "messages.h" #include "folders.h" @@ -40,9 +44,13 @@ int main(int argc, char **argv) for (i=0;i<ARRAY_LEN(stores);i++) { char *name = stores[i]; - test_folder_message_ops(session, name, TRUE); + test_folder_message_ops(session, name, TRUE, FALSE); } + /* create a pseudo-spool file, and check that */ + creat("/tmp/camel-test/testbox", 0600); + test_folder_message_ops(session, "spool:///tmp/camel-test", FALSE, TRUE); + check_unref(session, 1); camel_exception_free(ex); diff --git a/camel/tests/folder/test4.c b/camel/tests/folder/test4.c index f6d766f2ac..eb0bd3420b 100644 --- a/camel/tests/folder/test4.c +++ b/camel/tests/folder/test4.c @@ -42,7 +42,7 @@ int main(int argc, char **argv) _exit(77); } camel_test_nonfatal("The IMAP code is just rooted"); - test_folder_basic(session, path, FALSE); + test_folder_basic(session, path, FALSE, FALSE); camel_test_fatal(); } diff --git a/camel/tests/folder/test5.c b/camel/tests/folder/test5.c index 20e0c7d011..ccdfb23b23 100644 --- a/camel/tests/folder/test5.c +++ b/camel/tests/folder/test5.c @@ -42,7 +42,7 @@ int main(int argc, char **argv) _exit(77); } camel_test_nonfatal("Not sure how many tests apply to NNTP"); - test_folder_basic(session, path, FALSE); + test_folder_basic(session, path, FALSE, FALSE); camel_test_fatal(); } |