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/09 08:09:21 UTC

svn commit: r367230 - in /webservices/axis2/trunk/c/test/core/description: ./ Makefile.am test_description.c

Author: damitha
Date: Sun Jan  8 23:09:13 2006
New Revision: 367230

URL: http://svn.apache.org/viewcvs?rev=367230&view=rev
Log:
Tested op_engage_module 

Added:
    webservices/axis2/trunk/c/test/core/description/
    webservices/axis2/trunk/c/test/core/description/Makefile.am
    webservices/axis2/trunk/c/test/core/description/test_description.c

Added: webservices/axis2/trunk/c/test/core/description/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/description/Makefile.am?rev=367230&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/Makefile.am (added)
+++ webservices/axis2/trunk/c/test/core/description/Makefile.am Sun Jan  8 23:09:13 2006
@@ -0,0 +1,25 @@
+prgbindir=$(prefix)/bin/system_test
+prgbin_PROGRAMS = test_description
+SUBDIRS =
+AM_CPPFLAGS = $(CPPFLAGS) -g -O2 -pthread
+test_description_SOURCES = test_description.c
+
+test_description_LDADD   =  -L$(top_builddir)/install/lib \
+					-laxis2_util \
+                    -laxis2_context \
+                    -laxis2_description \
+                    -laxis2_engine \
+                    -laxis2_wsdl \
+                    -laxis2_phaseresolver \
+                    -laxis2_om \
+                    -laxis2_parser \
+                    -laxis2_addr \
+                    -L$(GUTHTHILA_LIB) $(GUTHTHILA_LIBNAME) \
+                    -L$(LIBXML2_LIB) $(LIBXML2_LIBNAME)
+                    
+INCLUDES = -I${CUTEST_HOME}/include -I$(top_builddir)/include \
+            -I$(top_builddir)/modules/util/src \
+            -I$(top_builddir)/modules/util \
+            -I$(top_builddir)/modules/core/description \
+            -I$(top_builddir)/modules/wsdl \
+            -I$(top_builddir)/modules/core/transport

Added: webservices/axis2/trunk/c/test/core/description/test_description.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/description/test_description.c?rev=367230&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/test_description.c (added)
+++ webservices/axis2/trunk/c/test/core/description/test_description.c Sun Jan  8 23:09:13 2006
@@ -0,0 +1,38 @@
+#include <stdio.h>
+#include <axis2_op.h>
+#include <axis2_module_desc.h>
+#include <axis2_phases_info.h>
+#include <axis2_env.h>
+
+struct axis2_module_desc *create_module_desc(axis2_env_t **env);
+
+int test_op_engage_module()
+{
+	int size = 0;
+	axis2_status_t *status = NULL;
+    axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+	axis2_env_t *env = axis2_env_create (allocator);
+	struct axis2_op *op = axis2_op_create(&env);
+    struct axis2_module_desc *moduleref= NULL;
+
+    moduleref = axis2_module_desc_create(&env);
+
+    status = axis2_op_engage_module(op, &env, moduleref);
+
+	printf("%d\n", AXIS2_ERROR_GET_STATUS_CODE((env)->error));
+
+	if(status != AXIS2_SUCCESS )
+	{
+		printf("ERROR\n");
+	    return -1;
+	}
+
+	axis2_op_free (op, &env);
+	axis2_env_free(env);
+}
+
+int main()
+{
+		test_op_engage_module();
+		return 0;
+}