aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-url.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2001-07-16 19:29:18 +0800
committernobody <nobody@localhost>2001-07-16 19:29:18 +0800
commit29818ea40e49f660f2dbb25a1e0e9b260de3f1d7 (patch)
tree0b8906233912a717d50c36c848d64cdbe0cd923c /tests/test-url.c
parent89ddfcd774cd6ec3865d42d827eecc07dbf940d0 (diff)
downloadgsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.tar
gsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.tar.gz
gsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.tar.bz2
gsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.tar.lz
gsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.tar.xz
gsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.tar.zst
gsoc2013-evolution-29818ea40e49f660f2dbb25a1e0e9b260de3f1d7.zip
This commit was manufactured by cvs2svn to create tag 'GAL_0_9_1'.GAL_0_9_1
svn path=/tags/GAL_0_9_1/; revision=11125
Diffstat (limited to 'tests/test-url.c')
-rw-r--r--tests/test-url.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/tests/test-url.c b/tests/test-url.c
deleted file mode 100644
index 5d8d75951b..0000000000
--- a/tests/test-url.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <camel.h>
-
-int main (int argc, char **argv)
-{
- CamelURL *url;
- CamelException *ex;
-
- if (argc != 2) {
- fprintf (stderr, "Usage: test-url URL\n");
- exit (1);
- }
-
- ex = camel_exception_new ();
- url = camel_url_new (argv[1], ex);
- if (!url) {
- fprintf (stderr, "Could not parse URL:\n%s",
- camel_exception_get_description (ex));
- exit (1);
- }
-
- printf ("URL : %s\n\n", camel_url_to_string (url, TRUE));
- printf ("Protocol: %s\n", url->protocol);
- if (url->user)
- printf ("User : %s\n", url->user);
- if (url->authmech)
- printf ("Authmech: %s\n", url->authmech);
- if (url->passwd)
- printf ("Password: %s\n", url->passwd);
- if (url->host)
- printf ("Host : %s\n", url->host);
- if (url->port)
- printf ("Port : %d\n", url->port);
- if (url->path)
- printf ("Path : %s\n", url->path);
-
- return 0;
-}