summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/library/run.py
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-08-25 12:15:27 -0400
committerBernard Normier <bernard@zeroc.com>2016-08-25 12:15:27 -0400
commitb0bc915ba0df62edb6d63eb40b41d4dba2968b3a (patch)
tree90b344339957a7dddecf9548ed80d8d930530936 /cpp/test/Ice/library/run.py
parentFix ICE-7298 - Visual Studio 2013 build error (diff)
downloadice-b0bc915ba0df62edb6d63eb40b41d4dba2968b3a.tar.bz2
ice-b0bc915ba0df62edb6d63eb40b41d4dba2968b3a.tar.xz
ice-b0bc915ba0df62edb6d63eb40b41d4dba2968b3a.zip
New test for dynamic_cast across shared libraries
Diffstat (limited to 'cpp/test/Ice/library/run.py')
-rw-r--r--cpp/test/Ice/library/run.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpp/test/Ice/library/run.py b/cpp/test/Ice/library/run.py
new file mode 100644
index 00000000000..da3317138ad
--- /dev/null
+++ b/cpp/test/Ice/library/run.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# **********************************************************************
+#
+# Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
+#
+# This copy of Ice is licensed to you under the terms described in the
+# ICE_LICENSE file included in this distribution.
+#
+# **********************************************************************
+
+import os, sys
+
+path = [ ".", "..", "../..", "../../..", "../../../..", "../../../../.." ]
+head = os.path.dirname(sys.argv[0])
+if len(head) > 0:
+ path = [os.path.join(head, p) for p in path]
+path = [os.path.abspath(p) for p in path if os.path.exists(os.path.join(p, "scripts", "TestUtil.py")) ]
+if len(path) == 0:
+ raise RuntimeError("can't find toplevel directory!")
+sys.path.append(os.path.join(path[0], "scripts"))
+import TestUtil
+
+TestUtil.addAdditionalBinDirectories([os.path.join(os.getcwd(), TestUtil.getTestDirectory("gencode"))])
+TestUtil.addAdditionalBinDirectories([os.path.join(os.getcwd(), TestUtil.getTestDirectory("consumer"))])
+TestUtil.addAdditionalBinDirectories([os.path.join(os.getcwd(), TestUtil.getTestDirectory("alltests"))])
+
+client = os.path.join(os.getcwd(), TestUtil.getTestExecutable("client"))
+
+TestUtil.simpleTest(client)