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/12 10:13:09 UTC
svn commit: r368323 - in /webservices/axis2/trunk/c/test/core/deployment: ./
Makefile.am test_deployment.c
Author: damitha
Date: Thu Jan 12 01:13:00 2006
New Revision: 368323
URL: http://svn.apache.org/viewcvs?rev=368323&view=rev
Log:
Added new deployment test
Added:
webservices/axis2/trunk/c/test/core/deployment/
webservices/axis2/trunk/c/test/core/deployment/Makefile.am
webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
Added: webservices/axis2/trunk/c/test/core/deployment/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/deployment/Makefile.am?rev=368323&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/Makefile.am (added)
+++ webservices/axis2/trunk/c/test/core/deployment/Makefile.am Thu Jan 12 01:13:00 2006
@@ -0,0 +1,30 @@
+prgbindir=$(prefix)/bin/system_test
+prgbin_PROGRAMS = test_deployment
+SUBDIRS =
+AM_CPPFLAGS = $(CPPFLAGS) -g -O2 -pthread
+test_deployment_SOURCES = test_deployment.c
+
+test_deployment_LDADD = -L$(top_builddir)/install/lib \
+ -laxis2_util \
+ -laxis2_context \
+ -laxis2_description \
+ -laxis2_deployment \
+ -laxis2_phaseresolver \
+ -laxis2_om \
+ -laxis2_wsdl \
+ -laxis2_engine \
+ -laxis2_parser \
+ -laxis2_addr \
+ -L$(GUTHTHILA_LIB) $(GUTHTHILA_LIBNAME) \
+ -L$(LIBXML2_LIB) $(LIBXML2_LIBNAME)
+
+INCLUDES = -I$(top_builddir)/include \
+ -I$(top_builddir)/modules/util \
+ -I$(top_builddir)/modules/core/description \
+ -I$(top_builddir)/modules/core/deployment \
+ -I$(top_builddir)/modules/wsdl \
+ -I$(top_builddir)/modules/core/transport \
+ -I$(top_builddir)/modules/platforms \
+ -I$(top_builddir)/modules/xml/parser \
+ -I$(top_builddir)/include
+
Added: webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/deployment/test_deployment.c?rev=368323&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/test_deployment.c (added)
+++ webservices/axis2/trunk/c/test/core/deployment/test_deployment.c Thu Jan 12 01:13:00 2006
@@ -0,0 +1,45 @@
+#include <stdio.h>
+#include <axis2_op.h>
+#include <axis2_module_desc.h>
+#include <axis2_phases_info.h>
+#include <stdio.h>
+#include <axis2_op.h>
+#include <axis2_dep_engine.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+
+int axis2_test_dep_engine_load()
+{
+ axis2_status_t status = AXIS2_FAILURE;
+ axis2_dep_engine_t *dep_engine = NULL;
+ axis2_conf_t *conf = NULL;
+ axis2_array_list_t *in_phases = NULL;
+
+ axis2_allocator_t *allocator = axis2_allocator_init (NULL);
+ axis2_env_t *env = axis2_env_create (allocator);
+
+ dep_engine = axis2_dep_engine_create_with_repos_name(&env,
+ "/home/damitha/programs/axis2c");
+ if(!dep_engine)
+ {
+ printf("dep engine is not created \n");
+ return -1;
+ }
+ printf("came1\n");
+ conf = AXIS2_DEP_ENGINE_LOAD(dep_engine, &env);
+ printf("came2\n");
+ in_phases =
+ AXIS2_CONF_GET_IN_PHASES_UPTO_AND_INCLUDING_POST_DISPATCH(
+ conf, &env);
+ if(!in_phases)
+ {
+ printf("in phases up to and including post dispatch is NULL\n");
+ }
+ return 0;
+}
+
+int main()
+{
+ axis2_test_dep_engine_load();
+ return 0;
+}