axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r369375 - in /webservices/axis2/trunk/c/test/core: Makefile.am addr/ addr/Makefile.am addr/test_addr.c context/Makefile.am
Date Mon, 16 Jan 2006 07:19:03 GMT
Author: damitha
Date: Sun Jan 15 23:18:54 2006
New Revision: 369375

URL: http://svn.apache.org/viewcvs?rev=369375&view=rev
Log:
integration test for addr

Added:
    webservices/axis2/trunk/c/test/core/addr/
    webservices/axis2/trunk/c/test/core/addr/Makefile.am
    webservices/axis2/trunk/c/test/core/addr/test_addr.c
Modified:
    webservices/axis2/trunk/c/test/core/Makefile.am
    webservices/axis2/trunk/c/test/core/context/Makefile.am

Modified: webservices/axis2/trunk/c/test/core/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/Makefile.am?rev=369375&r1=369374&r2=369375&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/core/Makefile.am Sun Jan 15 23:18:54 2006
@@ -1 +1 @@
-SUBDIRS = description context engine clientapi transport deployment
+SUBDIRS = description context engine clientapi transport deployment addr

Added: webservices/axis2/trunk/c/test/core/addr/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/addr/Makefile.am?rev=369375&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/addr/Makefile.am (added)
+++ webservices/axis2/trunk/c/test/core/addr/Makefile.am Sun Jan 15 23:18:54 2006
@@ -0,0 +1,30 @@
+prgbindir=$(prefix)/bin/system_test
+prgbin_PROGRAMS = test_addr
+SUBDIRS =
+AM_CPPFLAGS = $(CPPFLAGS) -g -pthread
+test_addr_SOURCES = test_addr.c
+
+
+test_addr_LDADD   =  -L$(top_builddir)/install/lib \
+	                -laxis2_description \
+	                -laxis2_context \
+	                -laxis2_util \
+	                -laxis2_deployment \
+	                -laxis2_om \
+	                -laxis2_engine \
+	                -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 \
+            -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/addr/test_addr.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/addr/test_addr.c?rev=369375&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/addr/test_addr.c (added)
+++ webservices/axis2/trunk/c/test/core/addr/test_addr.c Sun Jan 15 23:18:54 2006
@@ -0,0 +1,34 @@
+#include <axis2_msg_info_headers.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+
+int axis2_test_msg_info_headers_create()
+{
+	struct axis2_end_point_ref *to = NULL;
+	axis2_msg_info_headers_t *axis2_msg_info_headers = NULL;
+	axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+	axis2_env_t *env = axis2_env_create (allocator);
+	axis2_char_t *address = "test address";
+	axis2_char_t *action = "test actioin";
+
+	to = axis2_endpoint_ref_create(&env, address);
+
+	axis2_msg_info_headers = axis2_msg_info_headers_create(&env, to, action);
+	if (axis2_msg_info_headers)
+	{
+		printf("SUCCESS\n");
+		return 0;
+	}	
+	else
+	{
+		printf("ERROR\n");
+		return -1;
+	}
+	return 0;
+}
+
+int main()
+{
+	axis2_test_msg_info_headers_create();
+	return 0;
+}

Modified: 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=369375&r1=369374&r2=369375&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/context/Makefile.am (original)
+++ webservices/axis2/trunk/c/test/core/context/Makefile.am Sun Jan 15 23:18:54 2006
@@ -1,7 +1,7 @@
 prgbindir=$(prefix)/bin/system_test
 prgbin_PROGRAMS = test_context
 SUBDIRS =
-AM_CPPFLAGS = $(CPPFLAGS) -g -O2 -pthread
+AM_CPPFLAGS = $(CPPFLAGS) -g -pthread
 test_context_SOURCES = test_context.c
 
 



Mime
View raw message