summaryrefslogtreecommitdiff
path: root/php/allTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'php/allTests.py')
-rwxr-xr-xphp/allTests.py43
1 files changed, 4 insertions, 39 deletions
diff --git a/php/allTests.py b/php/allTests.py
index 60ee9dcb52a..e4360c465d3 100755
--- a/php/allTests.py
+++ b/php/allTests.py
@@ -8,44 +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 = [
- ("Ice/proxy", ["core"]),
- ("Ice/operations", ["core"]),
- ("Ice/exceptions", ["core"]),
- ("Ice/info", ["core", "noipv6", "nocompress"]),
- ("Ice/inheritance", ["core"]),
- ("Ice/binding", ["core"]),
- ("Ice/checksum", ["core"]),
- ("Ice/facets", ["core"]),
- ("Ice/objects", ["core"]),
- ("Ice/slicing/exceptions", ["core"]),
- ("Ice/slicing/objects", ["core"]),
- ("Ice/defaultValue", ["core"]),
- ("Ice/optional", ["core"]),
- ("Ice/enums", ["core"]),
- ("Ice/ini", ["once"]),
- ("Ice/scope", ["once"]),
- ("Ice/acm", ["once"]),
- ("Slice/keyword", ["once"]),
- ("Slice/structure", ["once"]),
- ("Slice/macros", ["once"]),
- ]
-
-if __name__ == "__main__":
- TestUtil.run(tests)
+runTestsWithPath(__file__) \ No newline at end of file