forked from swiftlang/swift-corelibs-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.swift
127 lines (121 loc) · 4.57 KB
/
main.swift
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
// Most imports now centralized in TestImports.swift
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#endif
#if !os(Windows)
// ignore SIGPIPE which is sent when writing to closed file descriptors.
_ = signal(SIGPIPE, SIG_IGN)
#endif
// For the Swift version of the Foundation tests, we must manually list all test cases here.
var allTestCases = [
testCase(TestAffineTransform.allTests),
testCase(TestNSArray.allTests),
testCase(TestBundle.allTests),
testCase(TestByteCountFormatter.allTests),
testCase(TestNSCache.allTests),
testCase(TestCachedURLResponse.allTests),
testCase(TestCalendar.allTests),
testCase(TestNSCalendar.allTests),
testCase(TestCharacterSet.allTests),
testCase(TestNSCompoundPredicate.allTests),
testCase(TestNSData.allTests),
testCase(TestDate.allTests),
testCase(TestDateComponents.allTests),
testCase(TestDateInterval.allTests),
testCase(TestNSDateComponents.allTests),
testCase(TestDateFormatter.allTests),
testCase(TestDateIntervalFormatter.allTests),
testCase(TestDecimal.allTests),
testCase(TestNSDictionary.allTests),
testCase(TestNSError.allTests),
testCase(TestEnergyFormatter.allTests),
testCase(TestFileManager.allTests),
testCase(TestNSGeometry.allTests),
testCase(TestHTTPCookie.allTests),
testCase(TestHTTPCookieStorage.allTests),
testCase(TestIndexPath.allTests),
testCase(TestIndexSet.allTests),
testCase(TestISO8601DateFormatter.allTests),
testCase(TestJSONSerialization.allTests),
testCase(TestNSKeyedArchiver.allTests),
testCase(TestNSKeyedUnarchiver.allTests),
testCase(TestLengthFormatter.allTests),
testCase(TestNSLocale.allTests),
testCase(TestNotificationCenter.allTests),
testCase(TestNotificationQueue.allTests),
testCase(TestNSNull.allTests),
testCase(TestNSNumber.allTests),
testCase(TestNSNumberBridging.allTests),
testCase(TestNumberFormatter.allTests),
testCase(TestOperationQueue.allTests),
testCase(TestNSOrderedSet.allTests),
testCase(TestPersonNameComponents.allTests),
testCase(TestPipe.allTests),
testCase(TestNSPredicate.allTests),
testCase(TestProcessInfo.allTests),
testCase(TestHost.allTests),
testCase(TestPropertyListSerialization.allTests),
testCase(TestNSRange.allTests),
testCase(TestNSRegularExpression.allTests),
testCase(TestRunLoop.allTests),
testCase(TestScanner.allTests),
testCase(TestNSSet.allTests),
testCase(TestStream.allTests),
testCase(TestNSString.allTests),
testCase(TestThread.allTests),
testCase(TestProcess.allTests),
testCase(TestNSTextCheckingResult.allTests),
testCase(TestTimer.allTests),
testCase(TestTimeZone.allTests),
testCase(TestURL.allTests),
testCase(TestURLCache.allTests),
testCase(TestURLComponents.allTests),
testCase(TestURLCredential.allTests),
testCase(TestURLCredentialStorage.allTests),
testCase(TestURLProtectionSpace.allTests),
testCase(TestURLProtocol.allTests),
testCase(TestNSURLRequest.allTests),
testCase(TestURLRequest.allTests),
testCase(TestURLResponse.allTests),
testCase(TestHTTPURLResponse.allTests),
testCase(TestURLSession.allTests),
testCase(TestNSUUID.allTests),
testCase(TestUUID.allTests),
testCase(TestNSValue.allTests),
testCase(TestUserDefaults.allTests),
testCase(TestXMLParser.allTests),
testCase(TestXMLDocument.allTests),
testCase(TestNSAttributedString.allTests),
testCase(TestNSMutableAttributedString.allTests),
testCase(TestFileHandle.allTests),
testCase(TestUnitConverter.allTests),
testCase(TestProgressFraction.allTests),
testCase(TestProgress.allTests),
testCase(TestObjCRuntime.allTests),
testCase(TestNotification.allTests),
testCase(TestMassFormatter.allTests),
testCase(TestJSONEncoder.allTests),
testCase(TestPropertyListEncoder.allTests),
testCase(TestCodable.allTests),
testCase(TestUnit.allTests),
testCase(TestDimension.allTests),
testCase(TestMeasurement.allTests),
testCase(TestNSLock.allTests),
testCase(TestNSSortDescriptor.allTests),
]
#if !os(Windows)
allTestCases.append(contentsOf: [
testCase(TestURLSessionFTP.allTests),
])
#endif
XCTMain(allTestCases)