Konstantinos Andrikopoulos
2d33d7bc62
Run tests for all specified targets
...
Currently cargo-miri uses the first target specified in the command
line. However, when multiple targets are specified in a `cargo build`
invocation, cargo will build for all of them.
Miri should match this behaviour to reduce surprises.
Fixes : #3460
2024-07-04 21:39:46 +02:00
David Carlier
887c130863
solarish platform add supports for available-parallelism.
2024-05-26 20:22:36 +00:00
David Carlier
7f5e0aade8
solaris add suport for threadname.
...
from std::unix:🧵 :set_name, pthread_setname_np is a weak symbol
(not always had been available). Other than that, similar to
linux only having twice of its buffer limit.
2024-05-23 23:14:28 +00:00
David Carlier
3f638a9291
solaris/illumos localtime_r / clock_getime support enabled.
...
clock_gettime support CLOCK_REALTIME/CLOCK_MONOTONIC clockid_t.
localtime_r is supported only tm struct is more limited than other
supported platforms.
2024-05-22 16:06:26 +00:00
Ralf Jung
5e41ff516f
various small nits
...
- share implementation with miri_starting_unwind
- make test use a custom unwinding class
- extend comments
- use NeedsUnwind more consistently
2024-05-19 19:31:52 +02:00
Ralf Jung
b8a7c73792
test wasm32-wasip2 instead of the deprecated wasm32-wasi target
2024-05-19 16:48:48 +02:00
Ralf Jung
844de64396
make basic things work on Android
2024-05-19 11:50:12 +02:00
Ralf Jung
6d314f3b11
alloc now works on wasi (and some formatting)
2024-05-16 11:25:44 +02:00
David Carlier
10acfd9f77
further illumos/solaris support.
...
fixing part of `miri test alloc/hashmap`.
2024-05-12 19:59:09 +00:00
Ralf Jung
e16f46cdab
make MIRI_TEST_TARGET entirely an internal thing
2024-05-09 11:27:22 +02:00
Ross Smyth
6e564ed9fd
Update CI script for the miri-script test changes
2024-05-08 18:05:28 -04:00
Ralf Jung
dd5437fdff
organize libc tests into a proper folder, and run some of them on Windows
2024-05-06 11:15:07 +02:00
David Carlier
fb84198387
solaris support start.
2024-05-05 21:08:39 +00:00
Ralf Jung
aaf5c5e742
move randomness tests into a single file and share the getrandom implementation across unices
2024-05-05 15:46:12 +02:00
Ralf Jung
352b21033a
move things out of libc-misc that have a better home; make libc-misc work on illumos
2024-05-05 15:45:28 +02:00
Ralf Jung
5b6df92d54
unix/thread: properly use pthread_t for thread IDs
2024-05-05 15:12:23 +02:00
David Carlier
b4011a08e8
illumos support.
2024-05-05 12:52:47 +01:00
Ralf Jung
6df585ade5
freebsd: test std threadname and fs APIs
...
also reorder foreign_items to fix the grouping, and reorder the tests_minimal invocations to be more consistent
2024-05-04 14:07:17 +02:00
Ralf Jung
52bf84f3cf
move some minimal targets over to the macOS runner, to even out CI times
2024-05-04 12:43:48 +02:00
Ralf Jung
502ed4965f
show time taken in run_tests_minimal
2024-05-04 11:46:52 +02:00
Ralf Jung
d130eaac1f
speed up Windows runner: don't run GC_STRESS test
2024-05-04 11:46:52 +02:00
Ralf Jung
f7a3aa9811
remove a hack that is no longer needed
2024-05-04 09:02:51 +02:00
Ralf Jung
6ce00aa992
make many-seeds a mode of ./miri run rather than a separate command
2024-05-04 08:23:05 +02:00
bors
d93f9ae3ee
Auto merge of #3514 - RalfJung:hyperfine, r=RalfJung
...
CI: run benches with hyperfine rather than bash
The hyperfine installation is cached so this should not cost a lot of CI time.
This is step 1/2 to getting rid of the BASH variable hack.
2024-04-25 09:16:32 +00:00
Ralf Jung
505e4dd7ba
CI: run benches with hyperfine rather than bash
2024-04-25 11:14:22 +02:00
Ralf Jung
247e82cb83
run many-seeds tests at least a few times on all tier 1 targets
2024-04-25 09:53:34 +02:00
Ralf Jung
3c306c750e
experiment with macOS M1 runners
2024-03-31 12:05:34 +02:00
Ralf Jung
a8edf26a61
move './miri check' for features to the style check job
2024-03-31 10:44:18 +02:00
Ralf Jung
540f2411e6
show the time that the main CI steps take
2024-03-31 10:38:49 +02:00
Ralf Jung
e9ee19004e
also control the cargo-miri env var test separately
2024-03-31 10:38:31 +02:00
Ralf Jung
836ea71d05
windows ci: run many-seeds test less often
2024-03-31 10:38:31 +02:00
Ralf Jung
9395e1fa6f
bash: use variable expansion that properly distinguishes null vs non-existing
2024-03-31 10:38:31 +02:00
Ralf Jung
5d1e92d132
ci: separetely control which host-only tests are run where
...
No functional change in this commit
2024-03-31 10:38:30 +02:00
bors
723acede10
Auto merge of #3434 - RalfJung:stacked-borrows-cache-consistency, r=RalfJung
...
cotrol stacked borrows consistency check with its own feature flag
Fixes https://github.com/rust-lang/miri/issues/3431
2024-03-30 22:57:13 +00:00
Ralf Jung
10217fdec6
cotrol stacked borrows consistency check with its own feature flag
2024-03-30 23:10:43 +01:00
Ralf Jung
7f6d89dae9
move tests away from the slow Windows builder
2024-03-30 18:45:38 +01:00
Ralf Jung
9f6c675238
run GC stress test only for host tests
2024-03-30 17:58:34 +01:00
bors
dcddf24626
Auto merge of #3402 - RalfJung:miri-script, r=RalfJung
...
miri script: build with stable toolchain
`./miri toolchain` sets up a `rustup override miri`. But then if something goes wrong and the `miri` toolchain doesn't work, one can't even run `./miri toolchain` again as building miri-script needs a toolchain...
So let's always use stable to build miri-script, making it override-independent. I assume everyone will have that installed.
2024-03-24 16:08:43 +00:00
Ralf Jung
a12decc07a
desperate hack: hard-code bash path on Windows
2024-03-24 16:07:20 +01:00
Ralf Jung
805f6eed46
try to fix many-seeds tests on Windows
2024-03-24 15:43:06 +01:00
Ben Kimock
48a19ffd5e
Improve sysroots notification
2024-03-13 20:10:10 -04:00
Ben Kimock
75f6694ce8
Use cargo miri clean in build-all-targets.sh
2024-03-04 10:13:49 -05:00
David Carlier
e47bb90928
add num_cpus test
2024-01-30 19:00:16 +00:00
Ralf Jung
cba1fdbff3
refactor extern static handling
2024-01-24 10:12:24 +01:00
Ralf Jung
a9bc7e99a3
disable freeBSD tests for now
2024-01-24 09:10:40 +01:00
Ben Kimock
7d5de709c8
Check if tier 2 targets build in the nightly cron job
2024-01-07 15:40:43 -05:00