summaryrefslogtreecommitdiff
path: root/matlab/test/Ice/proxy/client.m
blob: 198ff023179f11fa04c321a98a8678b93de4102c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%
% 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());

    myClass = AllTests.allTests(helper);
    myClass.shutdown();

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