summaryrefslogtreecommitdiff
path: root/objective-c/allTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'objective-c/allTests.py')
-rwxr-xr-xobjective-c/allTests.py54
1 files changed, 4 insertions, 50 deletions
diff --git a/objective-c/allTests.py b/objective-c/allTests.py
index f2cf91a5672..e4360c465d3 100755
--- a/objective-c/allTests.py
+++ b/objective-c/allTests.py
@@ -8,55 +8,9 @@
#
# **********************************************************************
-import os, sys, re, getopt
+import os, sys
+sys.path.append(os.path.join(os.path.dirname(__file__), "..", "scripts"))
-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!")
+from Util import runTestsWithPath
-sys.path.append(os.path.join(path[0], "scripts"))
-import TestUtil
-
-#
-# List of all basic tests.
-#
-tests = [
- ("Slice/keyword", []),
- ("Ice/proxy", ["core"]),
- ("Ice/ami", ["core", "nocompress"]),
- ("Ice/operations", ["core"]),
- ("Ice/exceptions", ["core"]),
- ("Ice/inheritance", ["core"]),
- ("Ice/invoke", ["core"]),
- ("Ice/metrics", ["core", "nows", "nossl", "noipv6", "nocompress"]),
- ("Ice/facets", ["core"]),
- ("Ice/objects", ["core"]),
- ("Ice/optional", ["core"]),
- ("Ice/interceptor", ["core"]),
- ("Ice/dispatcher", ["core"]),
- ("Ice/defaultServant", ["core"]),
- ("Ice/servantLocator", ["core"]),
- ("Ice/defaultValue", ["core"]),
- ("Ice/binding", ["core"]),
- ("Ice/stream", ["core"]),
- ("Ice/hold", ["core"]),
- ("Ice/faultTolerance", ["core"]),
- ("Ice/location", ["core"]),
- ("Ice/adapterDeactivation", ["core"]),
- ("Ice/slicing/exceptions", ["core"]),
- ("Ice/slicing/objects", ["core"]),
- ("Ice/retry", ["core"]),
- ("Ice/timeout", ["core", "nocompress"]),
- ("Ice/hash", ["core"]),
- ("Ice/info", ["core", "noipv6", "nocompress"]),
- ("Ice/enums", ["once"]),
- ("Ice/services", ["once"]),
- ("Ice/acm", ["core"]),
- ]
-
-if __name__ == "__main__":
- TestUtil.run(tests)
+runTestsWithPath(__file__) \ No newline at end of file