mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The API digester tests were being run only for macOS, mainly because they were not using %target-swift consistently. Lift the unnecessary restriction so we run these tests more widely.
13 lines
610 B
Swift
13 lines
610 B
Swift
// REQUIRES: OS=macosx
|
|
|
|
// RUN: %empty-directory(%t.mod1)
|
|
// RUN: %empty-directory(%t.mod2)
|
|
// RUN: %empty-directory(%t.sdk)
|
|
// RUN: %empty-directory(%t.module-cache)
|
|
|
|
// RUN: %api-digester -diagnose-sdk -print-module -module-list-file %S/Inputs/mock-sdk-modules.txt -sdk %S/Inputs/mock-sdk.sdk -bsdk %S/Inputs/mock-sdk-baseline.sdk -module-cache-path %t.module-cache -o %t.result -abort-on-module-fail
|
|
|
|
// RUN: %clang -E -P -x c %S/Outputs/mock-sdk-api.txt -o - | sed '/^\s*$/d' > %t.expected
|
|
// RUN: %clang -E -P -x c %t.result -o - | sed '/^\s*$/d' > %t.result.tmp
|
|
// RUN: diff -u %t.expected %t.result.tmp
|