diff options
Diffstat (limited to 'scripts/IceBoxUtil.py')
-rw-r--r-- | scripts/IceBoxUtil.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/IceBoxUtil.py b/scripts/IceBoxUtil.py new file mode 100644 index 00000000000..e7a9b71d021 --- /dev/null +++ b/scripts/IceBoxUtil.py @@ -0,0 +1,27 @@ +# ********************************************************************** +# +# 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 sys, os +from Util import * + +class IceBox(ProcessFromBinDir, Server): + + processType = "icebox" + +class IceBoxAdmin(ProcessFromBinDir, Client): + + processType = "iceboxadmin" + + def getMapping(self, current): + # IceBox admin is only provided with the C++/Java, not C# + mapping = self.mapping or current.testcase.getMapping() + if isinstance(mapping, CppMapping) or isinstance(mapping, JavaMapping): + return mapping + else: + return Mapping.getByName("cpp") |