diff options
Diffstat (limited to 'ruby/allTests.py')
-rwxr-xr-x | ruby/allTests.py | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/ruby/allTests.py b/ruby/allTests.py index 54e3f8ae08f..e4360c465d3 100755 --- a/ruby/allTests.py +++ b/ruby/allTests.py @@ -8,46 +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", ["once"]), - ("Slice/structure", ["once"]), - ("Slice/macros", ["once"]), - ("Slice/unicodePaths", ["once"]), - ("Ice/binding", ["core"]), - ("Ice/checksum", ["core"]), - ("Ice/exceptions", ["core"]), - ("Ice/facets", ["core"]), - ("Ice/info", ["core", "noipv6", "nocompress"]), - ("Ice/inheritance", ["core"]), - ("Ice/location", ["core"]), - ("Ice/objects", ["core"]), - ("Ice/proxy", ["core"]), - ("Ice/properties", ["once", "nowin32"]), - ("Ice/operations", ["core"]), - ("Ice/timeout", ["core", "nocompress"]), - ("Ice/slicing/exceptions", ["core"]), - ("Ice/slicing/objects", ["core"]), - ("Ice/defaultValue", ["core"]), - ("Ice/optional", ["core"]), - ("Ice/enums", ["core"]), - ("Ice/acm", ["core"]) - ] - -if __name__ == "__main__": - TestUtil.run(tests) +runTestsWithPath(__file__)
\ No newline at end of file |