NFC: Add -parse-as-library and dedicated module caches to APIJSON tests.

This commit is contained in:
Allan Shortlidge
2023-10-04 17:44:22 -07:00
parent f7a8bc2e04
commit ea1ba1387d
7 changed files with 20 additions and 14 deletions

View File

@@ -1,7 +1,8 @@
// REQUIRES: objc_interop, OS=macosx
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
// RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
// RUN: %empty-directory(%t/ModuleCache)
// RUN: %target-swift-frontend %s -typecheck -parse-as-library -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
// RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t/ModuleCache | %FileCheck %s
// Struct has no objc data.
@available(macOS 10.13, *)