1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2010 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
def run(client, isJava=False):
if isJava:
client.expect('IntIntMap \\(Collections API\\)')
print "IntIntMap (Collections API):"
client.expect('IntIntMap \\(Fast API\\)', timeout=200)
print "%s " % (client.before)
print "IntIntMap (Fast API):"
client.expect('IntIntMap with index \\(Collections API\\)', timeout=200)
print "%s " % (client.before)
print "IntIntMap with index (Collections API):"
client.expect('IntIntMap with index \\(Fast API\\)', timeout=200)
print "%s " % (client.before)
print "IntIntMap with index (Fast API):"
client.expect('Struct1Struct2Map', timeout=200)
print "%s " % (client.before)
else:
client.expect('IntIntMap')
print "IntIntMap:"
client.expect('IntIntMap with index', timeout=200)
print "%s " % (client.before)
print "IntIntMap with index:"
client.expect('Struct1Struct2Map', timeout=200)
print "%s " % (client.before)
print "Struct1Struct2Map:"
client.expect('Struct1Struct2Map with index', timeout=200)
print "%s " % (client.before)
print "Struct1Struct2Map with index:"
client.expect('Struct1Class1Map', timeout=200)
print "%s " % (client.before)
print "Struct1Class1Map:"
client.expect('Struct1Class1Map with index', timeout=200)
print "%s " % (client.before)
print "Struct1Class1Map with index:"
client.expect('Struct1ObjectMap', timeout=200)
print "%s " % (client.before)
print "Struct1ObjectMap:"
client.expect('IntIntMap \\(read test\\)', timeout=200)
print "%s " % (client.before)
print "IntIntMap (read test):"
client.expect('IntIntMap with index \\(read test\\)', timeout=200)
print "%s " % (client.before)
print "IntIntMap with index (read test):"
client.waitTestSuccess(timeout=200)
print "%s " % (client.before)
|