Skip to content

Commit 4b8507c

Browse files
committed
[test] Regenerate abi and source stability baseline and start running tests for them.
1 parent b3614a4 commit 4b8507c

8 files changed

+215100
-70249
lines changed

test/api-digester/Inputs/stdlib-stable-abi.json

Lines changed: 130652 additions & 0 deletions
Large diffs are not rendered by default.

test/api-digester/stdlib-stable.json renamed to test/api-digester/Inputs/stdlib-stable.json

Lines changed: 84400 additions & 70067 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
/* Generic Signature Changes */
3+
4+
/* RawRepresentable Changes */
5+
6+
/* Removed Decls */
7+
8+
/* Moved Decls */
9+
10+
/* Renamed Decls */
11+
12+
/* Type Changes */
13+
14+
/* Decl Attribute changes */
15+
16+
/* Protocol Requirement Changes */
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
/* Generic Signature Changes */
3+
4+
/* RawRepresentable Changes */
5+
6+
/* Removed Decls */
7+
8+
/* Moved Decls */
9+
10+
/* Renamed Decls */
11+
12+
/* Type Changes */
13+
14+
/* Decl Attribute changes */
15+
16+
/* Protocol Requirement Changes */

test/api-digester/source-stability.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/api-digester/source-stability.swift.expected

Lines changed: 0 additions & 173 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// REQUIRES: OS=macosx
2+
// RUN: %empty-directory(%t.tmp)
3+
// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk
4+
// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/current-stdlib.json -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -abi
5+
// RUN: %api-digester -diagnose-sdk -input-paths %S/Inputs/stdlib-stable-abi.json -input-paths %t.tmp/current-stdlib.json -abi >> %t.tmp/changes.txt
6+
// RUN: %clang -E -P -x c %S/Outputs/stability-stdlib-abi.swift.expected -o - | sed '/^\s*$/d' > %t.tmp/stability-stdlib-abi.swift.expected
7+
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' > %t.tmp/changes.txt.tmp
8+
// RUN: diff -u %t.tmp/stability-stdlib-abi.swift.expected %t.tmp/changes.txt.tmp
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// REQUIRES: OS=macosx
2+
// RUN: %empty-directory(%t.tmp)
3+
// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk
4+
// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/current-stdlib.json -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk
5+
// RUN: %api-digester -diagnose-sdk -input-paths %S/Inputs/stdlib-stable.json -input-paths %t.tmp/current-stdlib.json >> %t.tmp/changes.txt
6+
// RUN: %clang -E -P -x c %S/Outputs/stability-stdlib-source.swift.expected -o - | sed '/^\s*$/d' > %t.tmp/stability-stdlib-source.swift.expected
7+
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' > %t.tmp/changes.txt.tmp
8+
// RUN: diff -u %t.tmp/stability-stdlib-source.swift.expected %t.tmp/changes.txt.tmp

0 commit comments

Comments
 (0)