summaryrefslogtreecommitdiffstats
path: root/integration-tests.patch
blob: f7ef7320af4d1c6e91e37cda34f471ded9f21c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
--- swift-integration-tests/test-foundation-package/test-foundation-package.txt.orig	2018-06-25 16:26:12.887466459 -0500
+++ swift-integration-tests/test-foundation-package/test-foundation-package.txt	2018-06-25 16:26:12.887466459 -0500
@@ -2,6 +2,7 @@
 //
 //
 // Make a sandbox dir.
+// RUN: export SWIFT_BUILD_FOR_FEDORA=1
 // RUN: rm -rf %t.dir
 // RUN: mkdir -p %t.dir/tool
 // RUN: cp %s %t.dir/tool/Package.swift
--- swift-integration-tests/test-import-glibc/test-import-glibc.py.orig	2018-06-25 16:26:12.888466459 -0500
+++ swift-integration-tests/test-import-glibc/test-import-glibc.py	2018-06-25 16:26:12.888466459 -0500
@@ -2,6 +2,7 @@
 #
 # REQUIRES: platform=Linux
 
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: rm -rf %t.dir
 # RUN: mkdir %t.dir
 # RUN: cp %S/import-glibc.swift %t.dir/import-glibc.swift
--- swift-integration-tests/test-multi-compile-glibc/swift-multi-compile-glibc.py.orig	2018-06-25 16:26:12.893466459 -0500
+++ swift-integration-tests/test-multi-compile-glibc/swift-multi-compile-glibc.py	2018-06-25 16:26:12.893466459 -0500
@@ -1,6 +1,7 @@
 # Tests that multiple files are compiled correctly
 #
 # REQUIRES: platform=Linux
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: rm -rf %t.dir
 # RUN: mkdir %t.dir
 # RUN: cp %S/hello.swift %t.dir/hello.swift
--- swift-integration-tests/test-multi-compile/swift-multi-compile.py.orig	2018-06-25 16:26:12.895466459 -0500
+++ swift-integration-tests/test-multi-compile/swift-multi-compile.py	2018-06-25 16:26:12.896466459 -0500
@@ -1,5 +1,6 @@
 # Tests that compiling multiple swift files works.
 #
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: rm -rf %t.dir
 # RUN: mkdir %t.dir
 # RUN: cp %S/hello.swift %t.dir/hello.swift
--- swift-integration-tests/test-static-lib/test-static-lib.py.orig	2018-06-25 16:26:12.896466459 -0500
+++ swift-integration-tests/test-static-lib/test-static-lib.py	2018-06-25 16:26:12.896466459 -0500
@@ -1,5 +1,6 @@
 # Tests that creating a static lib and importing it into a file works
 
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: rm -rf %t.dir
 # RUN: mkdir %t.dir
 # RUN: cp %S/staticLib.swift %t.dir/staticLib.swift
--- swift-integration-tests/test-xctest-package/test-xctest-package.txt.orig	2018-06-25 16:26:12.897466459 -0500
+++ swift-integration-tests/test-xctest-package/test-xctest-package.txt	2018-06-25 16:26:12.897466459 -0500
@@ -7,6 +7,7 @@
 // REQUIRES: platform=Linux
 //
 // Make a sandbox dir.
+// RUN: export SWIFT_BUILD_FOR_FEDORA=1
 // RUN: rm -rf %t.dir
 // RUN: mkdir -p %t.dir/tool
 // RUN: cp %s %t.dir/tool/Package.swift
--- swift-integration-tests/test-complex-xctest-package/test-xctest-package.txt.orig	2018-06-25 16:26:12.897466459 -0500
+++ swift-integration-tests/test-complex-xctest-package/test-xctest-package.txt	2018-06-25 16:26:12.897466459 -0500
@@ -1,6 +1,7 @@
 // Check if test modules can import Swift modules which depend on C module.
 //
 // Make a sandbox dir.
+// RUN: export SWIFT_BUILD_FOR_FEDORA=1
 // RUN: rm -rf %t.dir
 // RUN: mkdir -p %t.dir
 // RUN: cp -r %S/SwiftCMixed %t.dir/
--- swift-integration-tests/basic.py.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/basic.py	2018-06-25 16:26:12.892466459 -0500
@@ -1,5 +1,6 @@
 # Basic sanity check.
 #
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: %{swiftc} --version > %t.out
 # RUN: %{FileCheck} --input-file %t.out %s
 #
--- swift-integration-tests/swift-package-init-lib.md.orig	2018-06-25 16:26:12.890466459 -0500
+++ swift-integration-tests/swift-package-init-lib.md	2018-06-25 16:26:12.893466459 -0500
@@ -6,6 +6,7 @@
 ```
 RUN: rm -rf %t.dir
 RUN: mkdir -p %t.dir/Project
+RUN: export SWIFT_BUILD_FOR_FEDORA=1
 RUN: %{swift} package --package-path %t.dir/Project init --type library
 RUN: %{swift} build --package-path %t.dir/Project 2>&1 | tee %t.build-log
 RUN: %{swift} test --package-path %t.dir/Project 2>&1 | tee %t.test-log
--- swift-integration-tests/swift-build-self-host.py.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/swift-build-self-host.py	2018-06-25 16:26:12.892466459 -0500
@@ -12,6 +12,7 @@
 # RUN: cp -R %{swiftpm_srcdir} %t.dir/swiftpm
 
 # RUN: rm -rf %t.dir/swiftpm/.build
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: %{swift} build --package-path %t.dir/swiftpm 2>&1 | tee %t.build-log
 
 # Check the build log.
--- swift-integration-tests/swift-package-with-spaces.txt.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/swift-package-with-spaces.txt	2018-06-25 16:26:12.892466459 -0500
@@ -6,6 +6,7 @@
 // RUN: cp %s %t.dir/more\ spaces/special\ tool/Package.swift
 // RUN: echo 'foo()' > %t.dir/more\ spaces/special\ tool/main.swift
 // RUN: echo 'func foo() { print("HI") }' > %t.dir/more\ spaces/special\ tool/some\ file.swift
+// RUN: export SWIFT_BUILD_FOR_FEDORA=1
 // RUN: %{swift} build --package-path %t.dir/more\ spaces/special\ tool -v 2>&1 | tee %t.build-log
 //
 // Check the build log.
--- swift-integration-tests/swift-build.txt.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/swift-build.txt	2018-06-25 16:26:12.892466459 -0500
@@ -1,6 +1,7 @@
 // Trivial test for Swift build.
 //
 // Make a sandbox dir.
+// RUN: export SWIFT_BUILD_FOR_FEDORA=1
 // RUN: rm -rf %t.dir
 // RUN: mkdir -p %t.dir/tool
 // RUN: cp %s %t.dir/tool/Package.swift
--- swift-integration-tests/swift-run.md.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/swift-run.md	2018-06-25 16:26:12.892466459 -0500
@@ -3,6 +3,7 @@
 ## Create a new package with an echo executable.
 
 ```
+RUN: export SWIFT_BUILD_FOR_FEDORA=1
 RUN: rm -rf %t.dir
 RUN: mkdir -p %t.dir/secho
 RUN: %{swift} package --package-path %t.dir/secho init --type executable
@@ -20,4 +21,4 @@
 CHECK-BUILD-LOG: Compile Swift Module 'secho'
 CHECK-BUILD-LOG: Linking {{.*}}secho
 CHECK-BUILD-LOG: 1 two
-```
\ No newline at end of file
+```
--- swift-integration-tests/swift-package-init-exec.md.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/swift-package-init-exec.md	2018-06-25 16:26:12.892466459 -0500
@@ -3,6 +3,7 @@
 ## Create a new package with an executable target.
 
 ```
+RUN: export SWIFT_BUILD_FOR_FEDORA=1
 RUN: rm -rf %t.dir
 RUN: mkdir -p %t.dir/Project
 RUN: %{swift} package --package-path %t.dir/Project init --type executable
--- swift-integration-tests/swift-compiler.py.orig	2018-06-25 16:26:12.891466459 -0500
+++ swift-integration-tests/swift-compiler.py	2018-06-25 16:26:12.892466459 -0500
@@ -1,4 +1,5 @@
 #
+# RUN: export SWIFT_BUILD_FOR_FEDORA=1
 # RUN: rm -rf %t.dir
 # RUN: mkdir -p %t.dir
 # RUN: touch %t.dir/hello.swift