|
10 | 10 | // RUN: %target-swift-frontend -module-name AppleLogging -module-alias XLogging=AppleLogging %t/FileLogging.swift -emit-module -emit-module-path %t/AppleLogging.swiftmodule |
11 | 11 | // RUN: test -f %t/AppleLogging.swiftmodule |
12 | 12 |
|
13 | | -/// Scaned dependencies with implicit builds should contain real name AppleLogging |
| 13 | +/// Scaned dependencies should contain real name AppleLogging |
14 | 14 | // RUN: %target-swift-frontend -scan-dependencies %t/FileLib.swift -module-alias XLogging=AppleLogging -I %t > %t/scandump.output |
15 | 15 | // RUN: %FileCheck %s -check-prefix=CHECK-REAL-NAME -input-file %t/scandump.output |
16 | 16 | // CHECK-REAL-NAME-NOT: "swiftPrebuiltExternal": "XLogging" |
17 | 17 | // CHECK-REAL-NAME-NOT: "compiledModulePath":{{.*}}XLogging.swiftmodule", |
18 | 18 | // CHECK-REAL-NAME: "swiftPrebuiltExternal": "AppleLogging" |
19 | 19 | // CHECK-REAL-NAME: "compiledModulePath":{{.*}}AppleLogging.swiftmodule", |
20 | 20 |
|
21 | | -/// Scaned dependencies with explicit builds should contain real name AppleLogging |
22 | | -// RUN: %target-swift-frontend -scan-dependencies -disable-implicit-swift-modules %t/FileLib.swift -module-alias XLogging=AppleLogging -I %t > %t/scandumpExplicit.output |
23 | | -// RUN: %FileCheck %s -check-prefix=CHECK-REAL-NAME-EXP -input-file %t/scandumpExplicit.output |
24 | | -// CHECK-REAL-NAME-EXP-NOT: "swiftPrebuiltExternal": "XLogging" |
25 | | -// CHECK-REAL-NAME-EXP-NOT: "compiledModulePath":{{.*}}XLogging.swiftmodule", |
26 | | -// CHECK-REAL-NAME-EXP: "swiftPrebuiltExternal": "AppleLogging" |
27 | | -// CHECK-REAL-NAME-EXP: "compiledModulePath":{{.*}}AppleLogging.swiftmodule", |
28 | | - |
29 | 21 | /// Create AppleLoggingIF.swiftinterface by aliasing XLogging |
30 | 22 | /// |
31 | 23 | // RUN: %target-swift-frontend -module-name AppleLoggingIF %t/FileLogging.swift -module-alias XLogging=AppleLoggingIF -I %t -emit-module -emit-module-interface-path %t/AppleLoggingIF.swiftinterface -swift-version 5 -enable-library-evolution -I %t |
32 | 24 | // RUN: test -f %t/AppleLoggingIF.swiftinterface |
33 | 25 |
|
34 | | -/// Scaned dependencies with implicit builds should contain real name AppleLoggingIF |
| 26 | +/// Scaned dependencies should contain real name AppleLoggingIF |
35 | 27 | // RUN: %target-swift-frontend -scan-dependencies %t/FileLib.swift -module-alias XLogging=AppleLoggingIF -I %t > %t/scandumpIF.output |
36 | 28 | // RUN: %FileCheck %s -check-prefix=CHECK-REAL-NAME-IF -input-file %t/scandumpIF.output |
37 | 29 | // CHECK-REAL-NAME-IF-NOT: "swift": "XLogging" |
38 | 30 | // CHECK-REAL-NAME-IF-NOT: "moduleInterfacePath":{{.*}}XLogging.swiftinterface |
39 | 31 | // CHECK-REAL-NAME-IF: "swift": "AppleLoggingIF" |
40 | 32 | // CHECK-REAL-NAME-IF: "moduleInterfacePath":{{.*}}AppleLoggingIF.swiftinterface |
41 | 33 |
|
42 | | -/// Scaned dependencies with explicit builds should contain real name AppleLoggingIF |
43 | | -// RUN: %target-swift-frontend -scan-dependencies -disable-implicit-swift-modules %t/FileLib.swift -module-alias XLogging=AppleLoggingIF -I %t > %t/scandumpIF.output |
44 | | -// RUN: %FileCheck %s -check-prefix=CHECK-REAL-NAME-IF-EXP -input-file %t/scandumpIF.output |
45 | | -// CHECK-REAL-NAME-IF-EXP-NOT: "swift": "XLogging" |
46 | | -// CHECK-REAL-NAME-IF-EXP-NOT: "moduleInterfacePath":{{.*}}XLogging.swiftinterface |
47 | | -// CHECK-REAL-NAME-IF-EXP: "swift": "AppleLoggingIF" |
48 | | -// CHECK-REAL-NAME-IF-EXP: "moduleInterfacePath":{{.*}}AppleLoggingIF.swiftinterface |
49 | | - |
50 | | - |
51 | 34 | // BEGIN FileLogging.swift |
52 | 35 | public struct Logger { |
53 | 36 | public init() {} |
|
0 commit comments