• Home
  • Raw
  • Download

Lines Matching refs:XcodeSDK

22   EXPECT_EQ(XcodeSDK::GetAnyMacOS().GetType(), XcodeSDK::MacOSX);  in TEST()
23 EXPECT_EQ(XcodeSDK("MacOSX.sdk").GetType(), XcodeSDK::MacOSX); in TEST()
24 EXPECT_EQ(XcodeSDK("iPhoneSimulator.sdk").GetType(), XcodeSDK::iPhoneSimulator); in TEST()
25 EXPECT_EQ(XcodeSDK("iPhoneOS.sdk").GetType(), XcodeSDK::iPhoneOS); in TEST()
26 EXPECT_EQ(XcodeSDK("AppleTVSimulator.sdk").GetType(), XcodeSDK::AppleTVSimulator); in TEST()
27 EXPECT_EQ(XcodeSDK("AppleTVOS.sdk").GetType(), XcodeSDK::AppleTVOS); in TEST()
28 EXPECT_EQ(XcodeSDK("WatchSimulator.sdk").GetType(), XcodeSDK::WatchSimulator); in TEST()
29 EXPECT_EQ(XcodeSDK("WatchOS.sdk").GetType(), XcodeSDK::watchOS); in TEST()
30 EXPECT_EQ(XcodeSDK("Linux.sdk").GetType(), XcodeSDK::Linux); in TEST()
31 EXPECT_EQ(XcodeSDK("MacOSX.sdk").GetVersion(), llvm::VersionTuple()); in TEST()
32 EXPECT_EQ(XcodeSDK("MacOSX10.9.sdk").GetVersion(), llvm::VersionTuple(10, 9)); in TEST()
33 EXPECT_EQ(XcodeSDK("MacOSX10.15.4.sdk").GetVersion(), llvm::VersionTuple(10, 15)); in TEST()
34 EXPECT_EQ(XcodeSDK("MacOSX.sdk").IsAppleInternalSDK(), false); in TEST()
35 EXPECT_EQ(XcodeSDK("MacOSX10.15.Internal.sdk").GetType(), XcodeSDK::MacOSX); in TEST()
36 EXPECT_EQ(XcodeSDK("MacOSX10.15.Internal.sdk").GetVersion(), in TEST()
38 EXPECT_EQ(XcodeSDK("MacOSX10.15.Internal.sdk").IsAppleInternalSDK(), true); in TEST()
39 EXPECT_EQ(XcodeSDK().GetType(), XcodeSDK::unknown); in TEST()
40 EXPECT_EQ(XcodeSDK().GetVersion(), llvm::VersionTuple()); in TEST()
44 XcodeSDK sdk("MacOSX.sdk"); in TEST()
45 sdk.Merge(XcodeSDK("WatchOS.sdk")); in TEST()
50 EXPECT_EQ(sdk.GetType(), XcodeSDK::watchOS); in TEST()
51 sdk.Merge(XcodeSDK("WatchOS1.1.sdk")); in TEST()
53 sdk.Merge(XcodeSDK("WatchOS2.0.sdk")); in TEST()
55 sdk.Merge(XcodeSDK("WatchOS1.1.Internal.sdk")); in TEST()
58 XcodeSDK empty; in TEST()
59 empty.Merge(XcodeSDK("MacOSX10.14.Internal.sdk")); in TEST()
66 EXPECT_TRUE(XcodeSDK::SDKSupportsModules( in TEST()
67 XcodeSDK::Type::iPhoneSimulator, in TEST()
71 EXPECT_TRUE(XcodeSDK::SDKSupportsModules( in TEST()
72 XcodeSDK::Type::iPhoneSimulator, in TEST()
75 EXPECT_FALSE(XcodeSDK::SDKSupportsModules( in TEST()
76 XcodeSDK::Type::iPhoneSimulator, in TEST()
80 EXPECT_TRUE(XcodeSDK::SDKSupportsModules( in TEST()
81 XcodeSDK::Type::MacOSX, in TEST()
83 EXPECT_FALSE(XcodeSDK::SDKSupportsModules( in TEST()
84 XcodeSDK::Type::MacOSX, in TEST()
90 EXPECT_TRUE(XcodeSDK("iPhoneSimulator12.0.sdk").SupportsSwift()); in TEST()
91 EXPECT_TRUE(XcodeSDK("iPhoneSimulator12.0.Internal.sdk").SupportsSwift()); in TEST()
92 EXPECT_FALSE(XcodeSDK("iPhoneSimulator7.2.sdk").SupportsSwift()); in TEST()
93 EXPECT_TRUE(XcodeSDK("MacOSX10.10.sdk").SupportsSwift()); in TEST()
94 EXPECT_FALSE(XcodeSDK("MacOSX10.9.sdk").SupportsSwift()); in TEST()
95 EXPECT_TRUE(XcodeSDK("Linux.sdk").SupportsSwift()); in TEST()
96 EXPECT_TRUE(XcodeSDK("MacOSX.sdk").SupportsSwift()); in TEST()
97 EXPECT_FALSE(XcodeSDK("EverythingElse.sdk").SupportsSwift()); in TEST()
101 XcodeSDK::Info info; in TEST()
102 info.type = XcodeSDK::Type::MacOSX; in TEST()
103 EXPECT_EQ("macosx", XcodeSDK::GetCanonicalName(info)); in TEST()
104 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
106 info.type = XcodeSDK::Type::iPhoneSimulator; in TEST()
107 EXPECT_EQ("iphonesimulator", XcodeSDK::GetCanonicalName(info)); in TEST()
108 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
110 info.type = XcodeSDK::Type::iPhoneOS; in TEST()
111 EXPECT_EQ("iphoneos", XcodeSDK::GetCanonicalName(info)); in TEST()
112 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
114 info.type = XcodeSDK::Type::AppleTVSimulator; in TEST()
115 EXPECT_EQ("appletvsimulator", XcodeSDK::GetCanonicalName(info)); in TEST()
116 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
118 info.type = XcodeSDK::Type::AppleTVOS; in TEST()
119 EXPECT_EQ("appletvos", XcodeSDK::GetCanonicalName(info)); in TEST()
120 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
122 info.type = XcodeSDK::Type::WatchSimulator; in TEST()
123 EXPECT_EQ("watchsimulator", XcodeSDK::GetCanonicalName(info)); in TEST()
124 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
126 info.type = XcodeSDK::Type::watchOS; in TEST()
127 EXPECT_EQ("watchos", XcodeSDK::GetCanonicalName(info)); in TEST()
128 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
130 info.type = XcodeSDK::Type::Linux; in TEST()
131 EXPECT_EQ("linux", XcodeSDK::GetCanonicalName(info)); in TEST()
132 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
134 info.type = XcodeSDK::Type::unknown; in TEST()
135 EXPECT_EQ("", XcodeSDK::GetCanonicalName(info)); in TEST()
136 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
139 info.type = XcodeSDK::Type::MacOSX; in TEST()
140 EXPECT_EQ("macosx.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
141 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
143 info.type = XcodeSDK::Type::iPhoneSimulator; in TEST()
144 EXPECT_EQ("iphonesimulator.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
145 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
147 info.type = XcodeSDK::Type::iPhoneOS; in TEST()
148 EXPECT_EQ("iphoneos.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
149 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
151 info.type = XcodeSDK::Type::AppleTVSimulator; in TEST()
152 EXPECT_EQ("appletvsimulator.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
153 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
155 info.type = XcodeSDK::Type::AppleTVOS; in TEST()
156 EXPECT_EQ("appletvos.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
157 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
159 info.type = XcodeSDK::Type::WatchSimulator; in TEST()
160 EXPECT_EQ("watchsimulator.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
161 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
163 info.type = XcodeSDK::Type::watchOS; in TEST()
164 EXPECT_EQ("watchos.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
165 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
167 info.type = XcodeSDK::Type::MacOSX; in TEST()
169 EXPECT_EQ("macosx10.9.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
170 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
172 info.type = XcodeSDK::Type::iPhoneOS; in TEST()
174 EXPECT_EQ("iphoneos7.0.internal", XcodeSDK::GetCanonicalName(info)); in TEST()
175 EXPECT_EQ(XcodeSDK(info).Parse(), info); in TEST()
180 XcodeSDK::GetSDKTypeForTriple(llvm::Triple("x86_64-apple-macosx10.14")), in TEST()
181 XcodeSDK::Type::MacOSX); in TEST()
182 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple(llvm::Triple("x86_64-apple-darwin")), in TEST()
183 XcodeSDK::Type::MacOSX); in TEST()
184 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple( in TEST()
186 XcodeSDK::Type::iPhoneSimulator); in TEST()
187 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple(llvm::Triple("arm64-apple-ios13.4")), in TEST()
188 XcodeSDK::Type::iPhoneOS); in TEST()
189 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple( in TEST()
191 XcodeSDK::Type::MacOSX); in TEST()
192 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple( in TEST()
194 XcodeSDK::Type::AppleTVSimulator); in TEST()
195 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple(llvm::Triple("arm64-apple-tvos")), in TEST()
196 XcodeSDK::Type::AppleTVOS); in TEST()
197 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple( in TEST()
199 XcodeSDK::Type::WatchSimulator); in TEST()
200 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple(llvm::Triple("arm64-apple-watchos")), in TEST()
201 XcodeSDK::Type::watchOS); in TEST()
202 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple(llvm::Triple("x86_64-unknown-linux")), in TEST()
203 XcodeSDK::Type::Linux); in TEST()
204 EXPECT_EQ(XcodeSDK::GetSDKTypeForTriple(llvm::Triple("i386-unknown-netbsd")), in TEST()
205 XcodeSDK::Type::unknown); in TEST()
213 XcodeSDK::FindXcodeContentsDirectoryInPath(standard)); in TEST()
219 XcodeSDK::FindXcodeContentsDirectoryInPath(standard_version)); in TEST()
225 XcodeSDK::FindXcodeContentsDirectoryInPath(beta)); in TEST()
230 EXPECT_EQ("", XcodeSDK::FindXcodeContentsDirectoryInPath(no_app)); in TEST()
235 EXPECT_EQ("", XcodeSDK::FindXcodeContentsDirectoryInPath(no_contents)); in TEST()
240 EXPECT_EQ("", XcodeSDK::FindXcodeContentsDirectoryInPath(no_capitalization)); in TEST()