|
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 should contain real name AppleLogging |
| 13 | +/// Scaned dependencies with implicit builds 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 | + |
21 | 29 | /// Create AppleLoggingIF.swiftinterface by aliasing XLogging
|
22 | 30 | ///
|
23 | 31 | // 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
|
24 | 32 | // RUN: test -f %t/AppleLoggingIF.swiftinterface
|
25 | 33 |
|
26 |
| -/// Scaned dependencies should contain real name AppleLoggingIF |
| 34 | +/// Scaned dependencies with implicit builds should contain real name AppleLoggingIF |
27 | 35 | // RUN: %target-swift-frontend -scan-dependencies %t/FileLib.swift -module-alias XLogging=AppleLoggingIF -I %t > %t/scandumpIF.output
|
28 | 36 | // RUN: %FileCheck %s -check-prefix=CHECK-REAL-NAME-IF -input-file %t/scandumpIF.output
|
29 | 37 | // CHECK-REAL-NAME-IF-NOT: "swift": "XLogging"
|
30 | 38 | // CHECK-REAL-NAME-IF-NOT: "moduleInterfacePath":{{.*}}XLogging.swiftinterface
|
31 | 39 | // CHECK-REAL-NAME-IF: "swift": "AppleLoggingIF"
|
32 | 40 | // CHECK-REAL-NAME-IF: "moduleInterfacePath":{{.*}}AppleLoggingIF.swiftinterface
|
33 | 41 |
|
| 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 | + |
34 | 51 | // BEGIN FileLogging.swift
|
35 | 52 | public struct Logger {
|
36 | 53 | public init() {}
|
|
0 commit comments