2 # **********************************************************************
4 # Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
6 # This copy of Ice is licensed to you under the terms described in the
7 # ICE_LICENSE file included in this distribution.
9 # **********************************************************************
11 import os
, sys
, traceback
14 Ice
.loadSlice('Test.ice')
15 import Test
, TestI
, AllTests
17 def run(args
, communicator
):
18 communicator
.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
19 adapter
= communicator
.createObjectAdapter("TestAdapter")
21 adapter
.add(d
, communicator
.stringToIdentity("d"))
22 adapter
.addFacet(d
, communicator
.stringToIdentity("d"), "facetABCD")
24 adapter
.addFacet(f
, communicator
.stringToIdentity("d"), "facetEF")
25 h
= TestI
.HI(communicator
)
26 adapter
.addFacet(h
, communicator
.stringToIdentity("d"), "facetGH")
30 AllTests
.allTests(communicator
)
35 communicator
= Ice
.initialize(sys
.argv
)
36 status
= run(sys
.argv
, communicator
)
43 communicator
.destroy()