diff options
author | Jose <jose@zeroc.com> | 2018-06-19 23:19:33 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-06-19 23:19:33 +0200 |
commit | d0c97b66212a5f001ff9738dfc881fd1bbc666ca (patch) | |
tree | 8c2ef250bf35ce217bac6e713edbbb999c19bd1a /python/test/Ice/scope/Client.py | |
parent | define test callbacks only with C++98 builds (diff) | |
download | ice-d0c97b66212a5f001ff9738dfc881fd1bbc666ca.tar.bz2 ice-d0c97b66212a5f001ff9738dfc881fd1bbc666ca.tar.xz ice-d0c97b66212a5f001ff9738dfc881fd1bbc666ca.zip |
Port Ice/scope test to scripting languages
Diffstat (limited to 'python/test/Ice/scope/Client.py')
-rwxr-xr-x | python/test/Ice/scope/Client.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/python/test/Ice/scope/Client.py b/python/test/Ice/scope/Client.py new file mode 100755 index 00000000000..c09de20efc6 --- /dev/null +++ b/python/test/Ice/scope/Client.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2003-2018 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, traceback + +import Ice +Ice.loadSlice('Test.ice') +import Test, AllTests + +def run(args, communicator): + AllTests.allTests(communicator) + return True + +try: + with Ice.initialize(sys.argv) as communicator: + status = run(sys.argv, communicator) +except: + traceback.print_exc() + status = False + +sys.exit(not status) |