Commit 08acc65
authored
Unrolled build for #146762
Rollup merge of #146762 - madsmtm:test-apple-sim, r=jieyouxu
Fix and provide instructions for running test suite on Apple simulators
The following now works:
```sh
./x test --host='' --target aarch64-apple-ios-sim --skip tests/debuginfo
./x test --host='' --target aarch64-apple-tvos-sim --skip tests/debuginfo
./x test --host='' --target aarch64-apple-watchos-sim --skip tests/debuginfo
./x test --host='' --target aarch64-apple-visionos-sim --skip tests/debuginfo
```
I have documented the setup I used [in the `rustc-dev-guide`](https://rustc-dev-guide.rust-lang.org/tests/running.html#testing-on-emulators), it's fairly standard use of `remote-test-server` (with a small fix to library load paths which I've made in the first commit).
I first tried the somewhat simpler `target.aarch64-apple-ios-sim.runner = "xcrun simctl spawn $UDID"`, but that doesn't work as required libraries etc. also need to be copied to the device.
The debuginfo tests fail, I think because the debug info in `.dSYM` isn't available. I am yet unsure exactly how to fix this, either we need to copy that directory to the target as well, or we need to configure `lldb` somehow to read it from the host.
I decided to not add this to our CI, since I suspect we wouldn't gain much from it? Running on the simulator still uses the host Darwin kernel, it's basically just configured to run in another mode with more restricted permissions and different system libraries.
r? jieyouxu
CC ``@simlay,`` you're a lot more familiar with `xcrun simctl` than I.File tree
33 files changed
+245
-77
lines changed- library/std
- src
- os/unix
- process
- sys/process/unix/unix
- tests
- src
- doc
- rustc-dev-guide/src/tests
- rustc/src/platform-support
- tools/remote-test-server/src
- tests/ui
- backtrace
- command
- compiletest-self-test
- cross-crate
- issues
- process
- runtime
- on-broken-pipe
33 files changed
+245
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
| 412 | + | |
411 | 413 | | |
412 | 414 | | |
413 | 415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| |||
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
| 552 | + | |
551 | 553 | | |
552 | 554 | | |
553 | 555 | | |
| |||
1348 | 1350 | | |
1349 | 1351 | | |
1350 | 1352 | | |
1351 | | - | |
| 1353 | + | |
1352 | 1354 | | |
1353 | 1355 | | |
1354 | 1356 | | |
| |||
1695 | 1697 | | |
1696 | 1698 | | |
1697 | 1699 | | |
1698 | | - | |
| 1700 | + | |
1699 | 1701 | | |
1700 | 1702 | | |
1701 | 1703 | | |
| |||
1724 | 1726 | | |
1725 | 1727 | | |
1726 | 1728 | | |
1727 | | - | |
| 1729 | + | |
1728 | 1730 | | |
1729 | 1731 | | |
1730 | 1732 | | |
| |||
1800 | 1802 | | |
1801 | 1803 | | |
1802 | 1804 | | |
1803 | | - | |
| 1805 | + | |
1804 | 1806 | | |
1805 | 1807 | | |
1806 | 1808 | | |
| |||
1907 | 1909 | | |
1908 | 1910 | | |
1909 | 1911 | | |
1910 | | - | |
| 1912 | + | |
1911 | 1913 | | |
1912 | 1914 | | |
1913 | 1915 | | |
| |||
1950 | 1952 | | |
1951 | 1953 | | |
1952 | 1954 | | |
1953 | | - | |
| 1955 | + | |
1954 | 1956 | | |
1955 | 1957 | | |
1956 | 1958 | | |
| |||
1975 | 1977 | | |
1976 | 1978 | | |
1977 | 1979 | | |
1978 | | - | |
| 1980 | + | |
1979 | 1981 | | |
1980 | 1982 | | |
1981 | 1983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
44 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
| |||
56 | 70 | | |
57 | 71 | | |
58 | 72 | | |
59 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| |||
80 | 97 | | |
81 | 98 | | |
82 | 99 | | |
83 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
84 | 104 | | |
85 | 105 | | |
86 | 106 | | |
| |||
94 | 114 | | |
95 | 115 | | |
96 | 116 | | |
97 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
98 | 122 | | |
99 | 123 | | |
100 | 124 | | |
| |||
116 | 140 | | |
117 | 141 | | |
118 | 142 | | |
119 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
120 | 148 | | |
121 | 149 | | |
122 | 150 | | |
| |||
134 | 162 | | |
135 | 163 | | |
136 | 164 | | |
137 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
138 | 169 | | |
139 | 170 | | |
140 | 171 | | |
| |||
165 | 196 | | |
166 | 197 | | |
167 | 198 | | |
168 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
169 | 203 | | |
170 | 204 | | |
171 | 205 | | |
| |||
191 | 225 | | |
192 | 226 | | |
193 | 227 | | |
194 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
195 | 232 | | |
196 | 233 | | |
197 | 234 | | |
| |||
206 | 243 | | |
207 | 244 | | |
208 | 245 | | |
209 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
210 | 250 | | |
211 | 251 | | |
212 | 252 | | |
| |||
221 | 261 | | |
222 | 262 | | |
223 | 263 | | |
224 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
225 | 268 | | |
226 | 269 | | |
227 | 270 | | |
| |||
232 | 275 | | |
233 | 276 | | |
234 | 277 | | |
235 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
236 | 282 | | |
237 | 283 | | |
238 | 284 | | |
| |||
244 | 290 | | |
245 | 291 | | |
246 | 292 | | |
247 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
248 | 297 | | |
249 | 298 | | |
250 | 299 | | |
| |||
279 | 328 | | |
280 | 329 | | |
281 | 330 | | |
282 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
283 | 335 | | |
284 | 336 | | |
285 | 337 | | |
| |||
302 | 354 | | |
303 | 355 | | |
304 | 356 | | |
305 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
306 | 361 | | |
307 | 362 | | |
308 | 363 | | |
| |||
314 | 369 | | |
315 | 370 | | |
316 | 371 | | |
317 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
318 | 376 | | |
319 | 377 | | |
320 | 378 | | |
| |||
378 | 436 | | |
379 | 437 | | |
380 | 438 | | |
381 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
382 | 443 | | |
383 | 444 | | |
384 | 445 | | |
| |||
387 | 448 | | |
388 | 449 | | |
389 | 450 | | |
390 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
391 | 455 | | |
392 | 456 | | |
393 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | | - | |
344 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
345 | 370 | | |
346 | 371 | | |
347 | 372 | | |
| |||
0 commit comments