Skip to content

[test] Use -build-module-from-parseable-interface to test overlays #21687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions validation-test/ParseableInterface/verify_all_overlays.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,14 @@
// generated.

// RUN: %empty-directory(%t)
// RUN: for x in %platform-sdk-overlay-dir/*.swiftinterface; do [[ $(basename "$x") = Swift.swiftinterface || $(basename "$x") = simd.swiftinterface || $(basename "$x") = SwiftLang.swiftinterface || $(basename "$x") = '*.swiftinterface' ]] && continue; %target-swift-frontend "$x" -emit-module -o %t/$(basename "$x" .swiftinterface).swiftmodule -disable-objc-attr-requires-foundation-module -enable-resilience -Fsystem %sdk/System/Library/PrivateFrameworks/ -swift-version 4 || echo '%target-os:' $(basename "$x") >> %t/failures.txt; done
// RUN: for x in %platform-sdk-overlay-dir/*.swiftinterface; do [[ $(basename "$x") = Swift.swiftinterface || $(basename "$x") = simd.swiftinterface || $(basename "$x") = SwiftLang.swiftinterface || $(basename "$x") = '*.swiftinterface' ]] && continue; %target-swift-frontend "$x" -build-module-from-parseable-interface -o %t/$(basename "$x" .swiftinterface).swiftmodule -Fsystem %sdk/System/Library/PrivateFrameworks/ || echo '%target-os:' $(basename "$x") >> %t/failures.txt; done
// RUN: test ! -e %t/failures.txt || diff <(grep '%target-os:' %s) <(sort -f %t/failures.txt)

// REQUIRES: nonexecutable_test

// The following parseable interfaces (in alphabetical order) are known not to
// work with these settings.

// Needs to be built as Swift 4.2.
macosx: CloudKit.swiftinterface
ios: CloudKit.swiftinterface
tvos: CloudKit.swiftinterface
watchos: CloudKit.swiftinterface

// Needs to be built as Swift 4.2.
ios: UIKit.swiftinterface
tvos: UIKit.swiftinterface
watchos: UIKit.swiftinterface

// Missing search path for XCTest.framework.
macosx: XCTest.swiftinterface
ios: XCTest.swiftinterface
Expand Down
27 changes: 0 additions & 27 deletions validation-test/ParseableInterface/verify_all_overlays_O.swift

This file was deleted.

3 changes: 1 addition & 2 deletions validation-test/ParseableInterface/verify_simd.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// generated.

// RUN: %empty-directory(%t)
// RUN: test ! -e %platform-sdk-overlay-dir/simd.swiftinterface || %target-swift-frontend %platform-sdk-overlay-dir/simd.swiftinterface -emit-module -o %t/simd.swiftmodule -enable-resilience -parse-stdlib -import-module Swift -swift-version 4
// RUN: test ! -e %platform-sdk-overlay-dir/simd.swiftinterface || %target-swift-frontend %platform-sdk-overlay-dir/simd.swiftinterface -emit-module -o %t/simd.swiftmodule -enable-resilience -parse-stdlib -import-module Swift -swift-version 4 -O
// RUN: test ! -e %platform-sdk-overlay-dir/simd.swiftinterface || %target-swift-frontend -build-module-from-parseable-interface %platform-sdk-overlay-dir/simd.swiftinterface -o %t/simd.swiftmodule

// REQUIRES: nonexecutable_test
// REQUIRES: objc_interop