mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use a clean module cache in tests printing path to the swiftmodule/swiftinterface used as it may change depending on previous tests.
28 lines
1.1 KiB
Swift
28 lines
1.1 KiB
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %empty-directory(%t/cache)
|
|
// RUN: env SWIFT_LOADED_MODULE_TRACE_FILE=%t/trace %target-build-swift -module-name loaded_module_trace_env -c %s -o- -module-cache-path %t/cache > /dev/null
|
|
// RUN: %FileCheck %s < %t/trace
|
|
|
|
// CHECK: {
|
|
// CHECK: "version":2
|
|
// CHECK: "name":"loaded_module_trace_env"
|
|
// CHECK: "arch":"{{[^"]*}}"
|
|
// CHECK: "swiftmodules":[
|
|
// CHECK-DAG: "{{[^"]*\\[/\\]}}Swift.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK-DAG: "{{[^"]*\\[/\\]}}SwiftOnoneSupport.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK: ]
|
|
// CHECK: "swiftmodulesDetailedInfo":[
|
|
// CHECK: {
|
|
// CHECK-DAG: "name":"Swift"
|
|
// CHECK-DAG: "path":"{{[^"]*\\[/\\]}}Swift.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK-DAG: "isImportedDirectly":true
|
|
// CHECK-DAG: "supportsLibraryEvolution":true
|
|
// CHECK: }
|
|
// CHECK: {
|
|
// CHECK-DAG: "name":"SwiftOnoneSupport"
|
|
// CHECK-DAG: "path":"{{[^"]*\\[/\\]}}SwiftOnoneSupport.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
|
|
// CHECK-DAG: "isImportedDirectly":true
|
|
// CHECK-DAG: "supportsLibraryEvolution":true
|
|
// CHECK: }
|
|
// CHECK: ]
|