summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/wsgi/util-test
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-03-06 09:23:34 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-03-06 09:23:34 +0000
commitcaf895ebaddcba6b09bbe29eee23862ba1ca0126 (patch)
treee74213a0662dd47d616f56b488f4b6fff8fb3513 /sca-cpp/trunk/modules/wsgi/util-test
parenta84a0e4d169efbc78b169aea3ab422182f156a41 (diff)
Translated XML, ATOM and JSON conversion functions from C++ to Python. Added support for JSON-RPC and ATOM to the WSGI integration. Adjusted server module test cases to help test the WSGI server.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@919721 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--]sca-cpp/trunk/modules/wsgi/util-test (renamed from sca-cpp/trunk/modules/wsgi/runtime.py)19
1 files changed, 8 insertions, 11 deletions
diff --git a/sca-cpp/trunk/modules/wsgi/runtime.py b/sca-cpp/trunk/modules/wsgi/util-test
index 930351ac3e..d7a6a34101 100644..100755
--- a/sca-cpp/trunk/modules/wsgi/runtime.py
+++ b/sca-cpp/trunk/modules/wsgi/util-test
@@ -1,3 +1,5 @@
+#!/bin/sh
+
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
@@ -15,16 +17,11 @@
# specific language governing permissions and limitations
# under the License.
-# Component invocation functions
-
-from util import *
+# Run Python util test cases
+here=`readlink -f $0`; here=`dirname $here`
+python_prefix=`cat $here/../python/python.prefix`
-def apply(impl, refs, func, params):
- m = __import__(impl)
- f = m.__getattribute__(func)
- p = refs + params
- return f(*p)
+$python_prefix/bin/python xml-test.py
+$python_prefix/bin/python atom-test.py
+$python_prefix/bin/python json-test.py
-def refapply(comps, target):
- return comps["target"]
-