diff options
author | Mark Spruiell <mes@zeroc.com> | 2016-08-23 17:28:35 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2016-08-23 17:28:35 -0700 |
commit | e6cbf802f2977d06854a65036a860740e24d3151 (patch) | |
tree | 7e1a19dff8bb864a86da6699d0360c3d703e71c5 /java-compat/allTests.py | |
parent | Small .gitignore cleanup (diff) | |
download | ice-e6cbf802f2977d06854a65036a860740e24d3151.tar.bz2 ice-e6cbf802f2977d06854a65036a860740e24d3151.tar.xz ice-e6cbf802f2977d06854a65036a860740e24d3151.zip |
Major changes in Java:
- Moved existing Java mapping sources to java-compat subdirectory
- Added new "Java 8" mapping in java subdirectory
- Significant features of Java 8 mapping:
- All classes in com.zeroc package (e.g., com.zeroc.Ice.Communicator)
- New AMI mapping that uses java.util.concurrent.CompletableFuture
- New AMD mapping that uses java.util.concurrent.CompletionStage
- New mapping for out parameters - "holder" types have been eliminated
- New mapping for optional types that uses JDK classes from java.util
(e.g., java.util.Optional)
- "TIE" classes are no longer supported or necessary; servant classes
now only need to implement a generated interface
- Moved IceGrid GUI to new mapping
- The "Java Compat" mapping is provided only for backward compatibility
to ease migration to Ice 3.7. The Slice compiler supports a new --compat
option to generate code for this mapping. However, users are encouraged
to migrate to the new mapping as soon as possible.
Diffstat (limited to 'java-compat/allTests.py')
-rwxr-xr-x | java-compat/allTests.py | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/java-compat/allTests.py b/java-compat/allTests.py new file mode 100755 index 00000000000..7ca52f7db4c --- /dev/null +++ b/java-compat/allTests.py @@ -0,0 +1,86 @@ +#!/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, re, getopt + +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 + +# +# List of all basic tests. +# +tests = [ + ("Slice/generation", ["once"]), + ("Slice/keyword", ["once"]), + ("Slice/macros", ["once"]), + ("Slice/structure", ["once"]), + ("IceUtil/inputUtil", ["once"]), + ("Ice/proxy", ["core"]), + ("Ice/operations", ["core"]), + ("Ice/seqMapping", ["core"]), + ("Ice/exceptions", ["core"]), + ("Ice/ami", ["core", "nocompress"]), + ("Ice/info", ["core", "noipv6", "nocompress", "nosocks"]), + ("Ice/inheritance", ["core"]), + ("Ice/facets", ["core"]), + ("Ice/objects", ["core"]), + ("Ice/binding", ["core"]), + ("Ice/faultTolerance", ["core"]), + ("Ice/location", ["core"]), + ("Ice/adapterDeactivation", ["core"]), + ("Ice/slicing/exceptions", ["core"]), + ("Ice/slicing/objects", ["core"]), + ("Ice/custom", ["core"]), + ("Ice/checksum", ["core"]), + ("Ice/dispatcher", ["core"]), + ("Ice/interrupt", ["core", "nocompress"]), + ("Ice/packagemd", ["core"]), + ("Ice/stream", ["core"]), + ("Ice/hold", ["core"]), + ("Ice/retry", ["core"]), + ("Ice/timeout", ["core", "nocompress"]), + ("Ice/acm", ["core"]), + ("Ice/background", ["core", "nosocks"]), + ("Ice/servantLocator", ["core"]), + ("Ice/interceptor", ["core"]), + ("Ice/udp", ["core"]), + ("Ice/serialize", ["core"]), + ("Ice/defaultServant", ["core"]), + ("Ice/defaultValue", ["core"]), + ("Ice/threadPoolPriority", ["core"]), + ("Ice/classLoader", ["core"]), + ("Ice/invoke", ["core"]), + ("Ice/properties", ["once"]), + ("Ice/plugin", ["core"]), + ("Ice/hash", ["once"]), + ("Ice/optional", ["once"]), + ("Ice/admin", ["core"]), + ("Ice/metrics", ["core", "nows", "noipv6", "nocompress", "nosocks"]), + ("Ice/enums", ["once"]), + ("Ice/networkProxy", ["core", "noipv6", "nosocks"]), + ("IceBox/admin", ["core", "noipv6", "nomx"]), + ("IceBox/configuration", ["core", "noipv6", "nomx"]), + ("Glacier2/router", ["service"]), + ("Glacier2/sessionHelper", ["core"]), + ("IceDiscovery/simple", ["service"]), + ("IceGrid/simple", ["service"]), + ("IceSSL/configuration", ["once"]) + ] + +if __name__ == "__main__": + TestUtil.run(tests) |