Skip to content

Add reproducibility tests for -emit-module, -emit-sib, -emit-sibgen and -emit-tbd #9234

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
May 3, 2017
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
6 changes: 6 additions & 0 deletions test/reproducible-builds/swiftc-emit-module.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-build-swift -O -g -module-name foo -emit-module %s -o %t/run-1.module
// RUN: %target-build-swift -O -g -module-name foo -emit-module %s -o %t/run-2.module
// RUN: cmp %t/run-1.module %t/run-2.module
// RUN: cmp %t/run-1.swiftdoc %t/run-2.swiftdoc
print("foo")
5 changes: 5 additions & 0 deletions test/reproducible-builds/swiftc-emit-sib.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-build-swift -O -g -module-name foo -emit-sib %s -o %t/run-1.sib
// RUN: %target-build-swift -O -g -module-name foo -emit-sib %s -o %t/run-2.sib
// RUN: cmp %t/run-1.sib %t/run-2.sib
print("foo")
5 changes: 5 additions & 0 deletions test/reproducible-builds/swiftc-emit-sibgen.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-build-swift -O -g -module-name foo -emit-sibgen %s -o %t/run-1.sibgen
// RUN: %target-build-swift -O -g -module-name foo -emit-sibgen %s -o %t/run-2.sibgen
// RUN: cmp %t/run-1.sibgen %t/run-2.sibgen
print("foo")
5 changes: 5 additions & 0 deletions test/reproducible-builds/swiftc-emit-tbd.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-build-swift -O -g -module-name foo -emit-tbd %s -o %t/run-1.tbd
// RUN: %target-build-swift -O -g -module-name foo -emit-tbd %s -o %t/run-2.tbd
// RUN: diff -u %t/run-1.tbd %t/run-2.tbd
print("foo")