Skip to content

Commit 9a8ba24

Browse files
Merge pull request #9067 from practicalswift/reproducible-builds-ii
Add reproducibility tests for -emit-module, -emit-sib, -emit-sibgen, -emit-sil and -emit-tbd
2 parents ab167ac + 51978bc commit 9a8ba24

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-module %s -o %t/run-1.module
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-module %s -o %t/run-2.module
4+
// RUN: cmp %t/run-1.module %t/run-2.module
5+
// RUN: cmp %t/run-1.swiftdoc %t/run-2.swiftdoc
6+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-sib %s -o %t/run-1.sib
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-sib %s -o %t/run-2.sib
4+
// RUN: cmp %t/run-1.sib %t/run-2.sib
5+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-sibgen %s -o %t/run-1.sibgen
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-sibgen %s -o %t/run-2.sibgen
4+
// RUN: cmp %t/run-1.sibgen %t/run-2.sibgen
5+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-sil %s -o %t/run-1.sil
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-sil %s -o %t/run-2.sil
4+
// RUN: diff -u %t/run-1.sil %t/run-2.sil
5+
print("foo")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// RUN: %target-build-swift -O -g -module-name foo -emit-tbd %s -o %t/run-1.tbd
3+
// RUN: %target-build-swift -O -g -module-name foo -emit-tbd %s -o %t/run-2.tbd
4+
// RUN: diff -u %t/run-1.tbd %t/run-2.tbd
5+
print("foo")

0 commit comments

Comments
 (0)