summaryrefslogtreecommitdiff
path: root/java/testkit/testkit.py
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2009-11-18 19:36:38 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2009-11-18 19:36:38 +0000
commit6a87d58f628d6939b894f55d031025bb3950f8b8 (patch)
tree56323901d91a3ff5949216ca216c978aecbd7770 /java/testkit/testkit.py
parentbe74dd0398378f3b28d8f63675d3a45e8829a1e1 (diff)
downloadqpid-python-6a87d58f628d6939b894f55d031025bb3950f8b8.tar.gz
Added log4j config to the test launcher
Added shell script to run testkit.py Removed brokertest.py, instead using the version checked in under python/qpid folder by Alan. The shell scripts and the setup is work in progress, checking in now to help Alan reproduce an issue. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881896 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/testkit/testkit.py')
-rwxr-xr-xjava/testkit/testkit.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/java/testkit/testkit.py b/java/testkit/testkit.py
index 2bb4f234ec..1cfc7a5e59 100755
--- a/java/testkit/testkit.py
+++ b/java/testkit/testkit.py
@@ -66,7 +66,8 @@ class JavaClientTest(BrokerTest):
cmd += ["-Dmsg_count=" + str(options.get("msg_count",10))]
cmd += ["-Dsleep_time=" + str(options.get("sleep_time",1000))]
cmd += ["-Dfailover=" + options.get("failover", "failover_exchange")]
- cmd += ["-Dreliability=" + options.get("reliability", "exactly_once")]
+ cmd += ["-Dreliability=" + options.get("reliability", "exactly_once")]
+ cmd += ["-Dlog.level=" + options.get("log.level", "warn")]
cmd += [self.client_class]
print str(options.get("port",5672))
@@ -119,7 +120,7 @@ class JavaClientTest(BrokerTest):
class ConcurrencyTest(JavaClientTest):
"""A concurrency test suite for the JMS client"""
- def test_multiplexing_con(self):
+ def xtest_multiplexing_con(self):
"""Tests multiple sessions on a single connection"""
cluster = Cluster(self, 2)
@@ -146,7 +147,7 @@ class ConcurrencyTest(JavaClientTest):
def test_multiplexing_con_tx(self):
"""Tests multiple transacted sessions on a single connection"""
- cluster = Cluster(self, 2)
+ cluster = Cluster(self,2)
ssn = cluster[0].connect().session()
p = cluster[0].port
@@ -173,7 +174,7 @@ class ConcurrencyTest(JavaClientTest):
class SoakTest(JavaClientTest):
"""A soak test suite for the JMS client"""
- def test_failover(self):
+ def xtest_failover(self):
cluster = self.cluster(4, expect=EXPECT_EXIT_FAIL)
p = cluster[0].port
self.start_error_watcher(broker=cluster[0])
@@ -209,7 +210,4 @@ class SoakTest(JavaClientTest):
self.verify(receiver,sender)
if error_msg:
raise Exception(error_msg)
-
-if __name__ == '__main__':
- if not test.main(): sys.exit(1)
-
+