summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/wsgi/util-test
diff options
context:
space:
mode:
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"]
-