summaryrefslogtreecommitdiff
path: root/swift/test/IceSSL/configuration/Client.swift
blob: 7616dd195bb5425b0b38738c1cb24ddd99ba1905 (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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

import Foundation
import Ice
import TestCommon

class Client: TestHelperI {
    public override func run(args: [String]) throws {
        do {
            let communicator = try initialize(args)
            defer {
                communicator.destroy()
            }
            var path = Bundle.main.bundlePath
            #if os(iOS) || os(watchOS) || os(tvOS)
                path += "/Frameworks/IceSSLConfiguration.bundle/certs"
            #else
                path += "/Contents/Frameworks/IceSSLConfiguration.bundle/Contents/Resources/certs"
            #endif

            let factory = try allTests(self, path)
            try factory.shutdown()
        }
    }
}