You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2006/01/10 05:21:28 UTC

svn commit: r367479 - in /webservices/axis2/trunk/c/test/core/context: ./ Makefile.am test_context.c

Author: damitha
Date: Mon Jan  9 20:21:23 2006
New Revision: 367479

URL: http://svn.apache.org/viewcvs?rev=367479&view=rev
Log:
Added context tests

Added:
    webservices/axis2/trunk/c/test/core/context/
    webservices/axis2/trunk/c/test/core/context/Makefile.am
    webservices/axis2/trunk/c/test/core/context/test_context.c

Added: webservices/axis2/trunk/c/test/core/context/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/context/Makefile.am?rev=367479&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/context/Makefile.am (added)
+++ webservices/axis2/trunk/c/test/core/context/Makefile.am Mon Jan  9 20:21:23 2006
@@ -0,0 +1,30 @@
+prgbindir=$(prefix)/bin/system_test
+prgbin_PROGRAMS = test_context
+SUBDIRS =
+AM_CPPFLAGS = $(CPPFLAGS) -g -O2 -pthread
+test_context_SOURCES = test_context.c
+
+
+test_context_LDADD   =  -L$(top_builddir)/install/lib \
+			        -laxis2_description \
+			        -laxis2_context \
+                    -laxis2_util \
+                    -laxis2_om \
+			        -laxis2_engine \
+	                -laxis2_deployment \
+			        -laxis2_wsdl \
+			        -laxis2_parser \
+			        -laxis2_phaseresolver \
+			        -laxis2_addr \
+			        -L$(GUTHTHILA_LIB) $(GUTHTHILA_LIBNAME) \
+			        -L$(LIBXML2_LIB) $(LIBXML2_LIBNAME)
+
+INCLUDES = -I${CUTEST_HOME}/include \
+            -I$(top_builddir)/modules/xml/guththila/src \
+            -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/wsdl \
+            -I$(top_builddir)/modules/core/description \
+            -I$(top_builddir)/modules/core/transport \
+            -I$(top_builddir)/modules/platforms
+

Added: webservices/axis2/trunk/c/test/core/context/test_context.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/context/test_context.c?rev=367479&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/context/test_context.c (added)
+++ webservices/axis2/trunk/c/test/core/context/test_context.c Mon Jan  9 20:21:23 2006
@@ -0,0 +1,37 @@
+#include <stdio.h>
+#include <axis2_conf_ctx.h>
+#include <axis2_svc_grp.h>
+#include <axis2.h>
+#include <axis2_allocator.h>
+#include <axis2_env.h>
+
+int axis2_test_conf_ctx_init()
+{
+    axis2_status_t *status = NULL;
+	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+
+    axis2_env_t *env = axis2_env_create (allocator);
+
+	struct axis2_conf * axis2_config;
+	struct axis2_conf *conf = NULL;
+	conf = axis2_conf_create(&env);
+
+	struct axis2_conf_ctx *conf_ctx;
+
+	conf_ctx = axis2_conf_ctx_create(&env, conf);
+
+	status = axis2_conf_ctx_init(conf_ctx, &env, conf);
+
+	if (status != AXIS2_SUCCESS)
+	{
+			printf("Error");
+			return -1;
+	}
+    axis2_env_free(env);
+}
+
+int main()
+{
+	axis2_test_conf_ctx_init();
+	return 0;
+}