summaryrefslogtreecommitdiff
path: root/matlab/test/Ice/optional/client.m
blob: ae3da4ff4b4087ed2b67d716f5ed70cd60070fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%
% Copyright (c) ZeroC, Inc. All rights reserved.
%

function client(args)
    addpath('generated');
    if ~libisloaded('ice')
        loadlibrary('ice', @iceproto)
    end

    helper = TestHelper();
    communicator = helper.initialize(args);
    cleanup = onCleanup(@() communicator.destroy());
    initial = AllTests.allTests(helper);
    initial.shutdown();

    clear('classes'); % Avoids conflicts with tests that define the same symbols.
end