Skip to content

Commit 57f7d80

Browse files
authored
Merge pull request #83042 from tshortli/use-llvm-read-tapi-in-tbdgen-tests
Tests: Use `llvm-readtapi` instead of `diff` in TBDGen tests
2 parents e3ab9a0 + b4b38b2 commit 57f7d80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/TBD/multi-file.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-wmo.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -wmo
99
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-incremental.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift
10-
// RUN: diff %t/TBD-wmo.tbd %t/TBD-incremental.tbd
10+
// RUN: %llvm-readtapi --compare %t/TBD-wmo.tbd %t/TBD-incremental.tbd
1111

1212
// -O, non-resilient
1313

@@ -16,7 +16,7 @@
1616

1717
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-wmo.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -wmo -O
1818
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-incremental.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -O
19-
// RUN: diff %t/TBD-wmo.tbd %t/TBD-incremental.tbd
19+
// RUN: %llvm-readtapi --compare %t/TBD-wmo.tbd %t/TBD-incremental.tbd
2020

2121
// -Onone, resilient
2222

@@ -25,7 +25,7 @@
2525

2626
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-wmo.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -wmo -enable-library-evolution
2727
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-incremental.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -enable-library-evolution
28-
// RUN: diff %t/TBD-wmo.tbd %t/TBD-incremental.tbd
28+
// RUN: %llvm-readtapi --compare %t/TBD-wmo.tbd %t/TBD-incremental.tbd
2929

3030
// -O, resilient
3131

@@ -34,7 +34,7 @@
3434

3535
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-wmo.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -wmo -O -enable-library-evolution
3636
// RUN: %target-build-swift -swift-version 4 -module-name multifile -Xfrontend -tbd-install_name -Xfrontend multifile -emit-tbd-path %t/TBD-incremental.tbd -emit-module-path %t/multifile.swiftmodule %s %S/Inputs/multi-file2.swift -O -enable-library-evolution
37-
// RUN: diff %t/TBD-wmo.tbd %t/TBD-incremental.tbd
37+
// RUN: %llvm-readtapi --compare %t/TBD-wmo.tbd %t/TBD-incremental.tbd
3838

3939
// REQUIRES: objc_interop
4040

0 commit comments

Comments
 (0)