summaryrefslogtreecommitdiff
path: root/java/integrationtests
diff options
context:
space:
mode:
authorAidan Skinner <aidan@apache.org>2008-07-15 16:17:09 +0000
committerAidan Skinner <aidan@apache.org>2008-07-15 16:17:09 +0000
commit78321073bd4e1be53367ded13bc0697c682d010d (patch)
tree583c578b64f3c18666d3b8d7bc6747596ecf1c2f /java/integrationtests
parent565de6e492b04a9fd641008e22843361ad6ce05f (diff)
downloadqpid-python-78321073bd4e1be53367ded13bc0697c682d010d.tar.gz
fix cpp client, path changes
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@676951 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/integrationtests')
-rwxr-xr-xjava/integrationtests/bin/interoptests.py23
1 files changed, 15 insertions, 8 deletions
diff --git a/java/integrationtests/bin/interoptests.py b/java/integrationtests/bin/interoptests.py
index 210079383e..f5a50fc1eb 100755
--- a/java/integrationtests/bin/interoptests.py
+++ b/java/integrationtests/bin/interoptests.py
@@ -19,8 +19,8 @@
# under the License.
import glob, os, subprocess
-from optparse import OptionParser
from subprocess import Popen
+from optparse import OptionParser
interop_cases = ["InteropTestCase1DummyRun", "InteropTestCase2BasicP2P", "InteropTestCase3BasicPubSub", "InteropTestCase4P2PMessageSize", "InteropTestCase5PubSubMessageSize"]
@@ -73,10 +73,16 @@ def main():
parser.error("Test directory must be specified and must exist")
# check dotnet test client
- if (options.testlib == None or
+ if (options.dotnet == None or
not os.path.exists(options.dotnet) or
not os.path.exists(options.dotnet+"/TestClient.exe")):
parser.error(".Net test directory must be specified and must contain TestClient.exe")
+
+ # check cpp test client
+ if (options.cpp == None or
+ not os.path.exists(options.cpp) or
+ not os.path.exists(options.cpp+"/src/tests/interop_runner")):
+ parser.error("C++ test directory must be specified and must contain test client")
# Get list of available broker and client versions
brokers = glob.glob(options.brokers+"/qpid-[0-9].[0-9].[0-9].[0-9]")
@@ -89,10 +95,9 @@ def main():
parser.error("Broker directory did not contain any brokers!")
for broker in brokers:
- if (os.path.isdir(broker)):
- for client in java_clients:
- if (os.path.isdir(client)):
- test(options.testlib, broker, client, options.dotnet)
+ for client in java_clients:
+ test(options.testlib, broker, client, options.dotnet,
+ options.cpp)
def start_dotnet(dotnetpath):
return Popen(["%s/TestClient.exe" % os.path.abspath(dotnetpath),
@@ -106,7 +111,7 @@ def start_java(javapath):
for lib in clientlibs:
classpath = classpath + testlibdir+"/"+lib+";"
- classpath = classpath + clientpath+"/lib/qpid-incubating.jar"
+ classpath = classpath + javapath+"/lib/qpid-incubating.jar"
# Add qpid common since the tests need that, classpath hatefulness
classpath = classpath + ";"+testlibdir+"/qpid-common-incubating-M3.jar"
@@ -117,7 +122,9 @@ def start_java(javapath):
stderr=subprocess.STDOUT)
def start_cpp(cpppath):
- pass
+ return Popen([cpppath+"tests/interop_runner"],
+ stdin=subprocess.PIPE, stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT)
def run_tests():
for testcase in interop_cases: