blob: 487db4c25d939472693ad945ddb0d606e806a313 (
plain)
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
|
%
% Copyright (c) ZeroC, Inc. All rights reserved.
%
function client(args)
addpath('generated');
if ~libisloaded('ice')
loadlibrary('ice', @iceproto)
end
helper = TestHelper();
properties = helper.createTestProperties(args);
properties.setProperty('Ice.ThreadPool.Client.Size', '2');
properties.setProperty('Ice.ThreadPool.Client.SizeWarn', '0');
properties.setProperty('Ice.BatchAutoFlushSize', '100');
communicator = helper.initialize(properties);
cleanup = onCleanup(@() communicator.destroy());
myClass = AllTests.allTests(helper);
fprintf('testing server shutdown... ');
myClass.shutdown();
try
myClass.ice_timeout(100).ice_ping(); % Use timeout to speed up testing on Windows
throw(MException());
catch ex
if isa(ex, 'Ice.LocalException')
fprintf('ok\n');
else
rethrow(ex);
end
end
clear('classes'); % Avoids conflicts with tests that define the same symbols.
end
|