Commit Graph

152 Commits

Author SHA1 Message Date
Ellen Arteca
88a7882615 C FFI support for functions with int args and returns 2022-08-26 00:53:23 +00:00
Oli Scherer
fb071a14bd Use ui_test from crates.io instead of having it in-tree 2022-08-25 15:34:57 +00:00
Ralf Jung
0c3ad68a5a add ./miri cargo for RA to invoke 2022-08-19 23:46:17 -04:00
Ralf Jung
b36b5e38b7 fix rustc lints in Miri 2022-08-07 10:17:02 -04:00
Ralf Jung
366d11b2d8 enable rustc lints
(but not in cargo-miri and ui_test)
2022-08-07 09:45:42 -04:00
Ralf Jung
04744a2935 fix CI benchmark checks 2022-08-06 22:47:29 -04:00
Ralf Jung
d905901d65 make miri a better RUSTC by default inside cargo-miri
this requires a change in sysroot handling: miri driver now requires
MIRI_SYSROOT to be set when it is in 'target' mode, rather than relying on
`--sysroot` always being present.
2022-07-24 13:30:32 -04:00
Ralf Jung
b93fcd99e8 avoid spurious 'Preparing a sysroot for Miri...' in 'cargo miri setup --print-sysroot'
also clean up sysroot building printing logic a bit
2022-07-23 18:04:06 -04:00
Oli Scherer
bfa2ff646c Use a MIRI namespaced env var name for auto ops 2022-07-21 15:04:02 +00:00
Ralf Jung
7c30ba183c fix auto-toolchain pwd 2022-07-21 07:19:56 -04:00
Ralf Jung
4d4eeca8a8 fix miri script 2022-07-20 20:38:08 -04:00
Oli Scherer
517e1d78b8 Add a scheme for always using the default toolchain, running clippy and fmt before running any other command 2022-07-20 20:38:08 -04:00
Ralf Jung
bfd148b783 use env vars, not Cargo.toml, to configure out dev profile 2022-07-18 17:48:45 -04:00
Oli Scherer
43100f5f4b Remove --offline from ./miri install as otherwise we can't add more dependencies to miri as CI will fail.
if you want this locally, pass it to your invocation.
2022-07-17 07:46:02 +00:00
Ralf Jung
fa7811bbe1 use the cargo default for debug/release builds 2022-07-14 13:19:44 -04:00
Ralf Jung
efc76af134 don't forcefully enable debug assertions, but make -debug mode usable
still set those flags on CI though, we want to catch overflow there
2022-07-14 13:00:35 -04:00
Ralf Jung
52abae6826 fix comment in ./miri 2022-07-07 08:20:24 -04:00
Ralf Jung
d7a9989f52 add command to run our benchmarks 2022-07-04 15:23:31 -04:00
Ralf Jung
e71f8b0630 fix ./miri run with MIRI_TEST_TARGET 2022-07-03 08:35:44 -04:00
Ralf Jung
733b141789 ./miri many-seeds: also print the seed before we try it 2022-07-02 16:06:23 -04:00
Ralf Jung
9bc7938bc2 more tweaks 2022-07-01 10:01:00 -04:00
Ralf Jung
7d09313727 add './miri many-seeds', and respect MIRIFLAGS in './miri run' 2022-07-01 09:55:02 -04:00
Ralf Jung
a1fabb9478 make miri script work from other working directories 2022-07-01 07:54:43 -04:00
Ralf Jung
e33efc7517 make ui_test pass clippy 2022-06-29 18:17:36 -04:00
Ralf Jung
02f8cb2d55 add ./miri clippy 2022-06-29 18:17:36 -04:00
David Tolnay
2cbc461389
Add './miri fmt' and use it in CI 2022-06-23 13:08:45 -07:00
Ralf Jung
b9d79a25ba also 'check' the test suite 2022-05-30 12:30:54 +02:00
Oli Scherer
3832227734 Forward CARGO_BUILD_FLAGS to ui_test test suite 2022-05-30 07:26:47 +00:00
Oli Scherer
1b7e278922 Reintroduce path filters 2022-05-27 11:43:14 +00:00
Oli Scherer
e4d6c00aa2 Run tests for ui_test together with miri test 2022-05-25 18:26:33 +00:00
Oli Scherer
f1756c3ddd Add a custom ui test runner and move all tests to it 2022-05-25 13:31:26 +00:00
Ralf Jung
82411c5840 stop relying on python being in the PATH 2022-05-10 12:20:55 +02:00
Ralf Jung
a9dd9b9571 macOS-compatible realpath 2021-12-20 23:14:17 +01:00
Ralf Jung
5d71528e4d hack to work around RA quirk 2021-11-25 17:37:36 -05:00
Ralf Jung
16491aef42 Use bash to make sure &> works 2020-10-27 14:21:59 +01:00
Camelid
60a2c9b1f8 Hide readlink error in ./miri
`./miri` is just testing whether the platform supports `readlink -e`,
but it didn't hide properly hide the stderr output. This fixes that.
2020-10-23 13:00:33 -07:00
Ralf Jung
10f58b3eab fix Miri script on macOS 2020-09-17 17:29:19 +02:00
Ralf Jung
2b3b83eb2c canonicalize miri's directory 2020-09-17 17:29:19 +02:00
Ralf Jung
e310e2f0b9 set --target when building miri
This helps cargo tell apart `./miri` builds and `cargo check` (e.g. through rust-analyzer).
See https://github.com/rust-lang/cargo/issues/8440.
2020-07-03 11:18:47 +02:00
Ralf Jung
35964b10b0 no workspace as that is incompatible with the rustc submodule 2020-05-28 08:53:44 +02:00
Ralf Jung
b71fea710c just respect existing RUSTFLAGS instead of providing another override 2020-05-28 08:53:44 +02:00
Ralf Jung
0790f75ae4 make cargo-miri a separate crate in a workspace 2020-05-28 08:53:44 +02:00
Ralf Jung
3554f54173 make just ./miri print help text without 'unknown command' 2020-04-06 09:34:27 +02:00
Ralf Jung
0b07f6f5d3 set CARGO_INCREMENTAL=0 on CI, it's just a waste of time there 2020-04-02 09:49:48 +02:00
Ralf Jung
f751688396 miri build script: use incremental builds 2020-03-28 10:29:17 +01:00
Ralf Jung
eb3be2f97d ./miri check 2020-03-21 17:43:28 +01:00
Ralf Jung
274e72996e miri script does not need to handle locally built rustc any more 2019-11-23 10:36:23 +01:00
Ralf Jung
324fed316f print sysroot without any escaping 2019-10-19 16:38:37 +02:00
Ralf Jung
6ef7c0886c deny warnings on CI 2019-08-15 11:14:45 +02:00
Ralf Jung
68d7e4ebb0 local rustc builds now also need a sysroot built
With the test-miri flag gone, the libstd of local builds isn't good enough for Miri any more.
2019-08-09 11:29:12 +02:00