Commit Graph

136 Commits

Author SHA1 Message Date
Ralf Jung
650411492c also test getrandom directly 2021-04-04 11:09:40 +02:00
hyd-dev
6d5ce21c92
Cleanup test-cargo-miri/run-test.py 2021-02-28 18:13:33 +08:00
hyd-dev
46af1890a5
Drop MIRIFLAGS from "no rebuild" test 2021-02-28 16:10:35 +08:00
hyd-dev
49cd383537
Create stub .d files 2021-02-28 04:56:20 +08:00
Ralf Jung
3e987e127c create more fake files for cdylibs and staticlibs 2021-02-27 13:07:40 +01:00
Ralf Jung
f85bb0fb09 test for unnecessary rebuilds in 'cargo miri run' 2021-02-27 12:24:58 +01:00
hyd-dev
1923044705
Add a cdylib-only crate test 2021-02-15 20:43:29 +08:00
hyd-dev
51c6f51c36
Use the issue-1567 dependency in the test 2021-02-15 20:43:28 +08:00
hyd-dev
c0eb13ba2a
Patch --extern arguments in phase_cargo_rustc as well 2021-02-15 20:43:27 +08:00
hyd-dev
0737de86f7
Revert the lock file version change 2021-02-14 19:09:22 +08:00
hyd-dev
304cd3e410
Make the test more consistent with other tests 2021-02-14 19:08:47 +08:00
hyd-dev
80112820fd
[cargo-miri] Don't skip rlib crates 2021-02-14 16:27:20 +08:00
Ralf Jung
b3757d0e51 add regression test for #1567 2021-02-13 19:41:01 +01:00
hyd-dev
28577924e7
Add a test for unit test of proc-macro crate 2021-01-24 23:48:17 +08:00
Ralf Jung
7e198147df panicing now works with -Zmiri-track-raw-pointers 2020-12-31 00:17:08 +01:00
Ralf Jung
6dc353c091 test test suite harness with raw-ptr tracking 2020-12-21 11:36:40 +01:00
Ralf Jung
05fcf86f11 rename test ref files for proper names 2020-12-21 11:31:57 +01:00
Ralf Jung
ba0d229752 rustup + cargo-miri 'cargo update' 2020-12-21 10:53:55 +01:00
Ralf Jung
0c67ec2057 test formerly broken serde_derive dependency 2020-09-21 15:47:09 +02:00
Ralf Jung
055e90dd6f 'cargo update' test-cargo-miri 2020-09-18 12:12:02 +02:00
Ralf Jung
db067f4a3e test-cargo-miri: normalize slashes before comparing paths 2020-09-17 17:33:47 +02:00
Ralf Jung
05f5c3d078 make sure tests pass even with RUST_TEST_NOCAPTURE set 2020-09-17 17:33:47 +02:00
Ralf Jung
18483b4d5e make (not yet actually used) doctest actually use the crate, and fix a comment 2020-09-17 17:33:47 +02:00
Ralf Jung
192b535adc cleaner output for cargo-miri-test harness 2020-09-17 17:33:47 +02:00
Ralf Jung
b244a2ddaa make sure subcrate tests have the right cwd 2020-09-17 17:33:47 +02:00
Ralf Jung
c99fb102b8 test 'cargo miri run' CWD, also for subcrate in a workspace 2020-09-17 17:33:47 +02:00
Ralf Jung
113a335c3e test propagating env vars from build.rs to binary 2020-09-17 17:33:47 +02:00
Ralf Jung
33c669679e test 'harness=false' tests 2020-09-17 17:33:47 +02:00
Ralf Jung
93bedd0a09 fix cargo-miri-test for cross-runs 2020-09-17 17:33:47 +02:00
Ralf Jung
2205ed5bbb show proper warning about not running doctests 2020-09-17 17:33:47 +02:00
Ralf Jung
504c617cd4 test reading from stdin 2020-09-17 17:33:47 +02:00
Ralf Jung
119bf4d607 forward build-time env vars to binary, and test that we do 2020-09-17 17:33:46 +02:00
Ralf Jung
ee7d589530 test respecting 'test=false', and what happens with doctests 2020-09-17 17:29:19 +02:00
Ralf Jung
c41a039c56 patch --extern and --emit; test suite passes now! 2020-09-17 17:29:19 +02:00
Aaron Hill
93c31e7790
Enable some panic tests on Windows 2020-09-17 09:42:04 -04:00
David Cook
5d9d75fc1f Test cargo miri target selection 2020-08-28 23:12:11 -05:00
Ralf Jung
7406c1224b adjust for asm -> llvm_asm rename 2020-04-20 10:38:38 +02:00
Ralf Jung
280394d366 cargo update 2020-04-10 10:28:45 +02:00
Ralf Jung
b843de6dd2 run-test.py: also print what we are testing for 2020-03-22 09:04:10 +01:00
Ralf Jung
d85f09c4e4 platform -> target 2020-03-22 08:55:39 +01:00
Ralf Jung
a555e1ec25 cargo update 2020-02-23 22:44:16 +01:00
Ralf Jung
0e7e5b9655 fix test-cargo-miri 2020-02-21 11:03:52 +01:00
Ralf Jung
b883c11caa use recommended test exclusion technique in test 2019-12-07 11:55:19 +01:00
Ralf Jung
f1cde6d80b also test built-in panics via should_panic 2019-12-02 16:04:31 +01:00
Ralf Jung
3de5bd7dec run-test: make sure the sysroot building output does not distort our tests 2019-12-01 12:57:09 +01:00
Ralf Jung
6363bc4975 test should_panic checking the panic string 2019-11-30 10:31:53 +01:00
Aaron Hill
6fe89e45f4
Disable #[should_panic] test on Windows
We should re-enable this once
https://github.com/rust-lang/miri/issues/1059 is fixed
2019-11-19 15:59:42 -05:00
Aaron Hill
660cd55cc7
Update captured test output 2019-11-17 11:49:31 -05:00
Aaron Hill
b5235dea7f
Add #[should_panic] test 2019-11-17 11:09:16 -05:00
Ralf Jung
524624297d test-cargo-miri: cargo update, re-enable windows num_cpus test 2019-11-15 15:59:19 +01:00
Ralf Jung
a90ac3b0ec disable num_cpus on Windows for now 2019-11-08 09:16:44 +01:00
Ralf Jung
505b02fc99 cargo update cargo-miri-test 2019-10-23 10:32:08 +02:00
Ralf Jung
49fa8bfd72 cargo update for test-cargo-miri 2019-09-28 12:10:38 -04:00
Christian Poveda
814fe99516 Add cargo-miri test for no isolation 2019-08-29 10:13:02 -05:00
Ralf Jung
7faa329f11 more implicit 2019-08-28 09:27:19 +02:00
Ralf Jung
71aae4ffa5 test that build scripts do not run in Miri 2019-08-28 09:15:31 +02:00
Ralf Jung
0340806127 cargo update 2019-08-26 19:38:47 +02:00
Ralf Jung
c73b13fc58 test-cargo-miri: cargo update 2019-08-06 12:50:22 +02:00
Ralf Jung
70a5bb7dbb force pointers before reborrowing; fixes cargo miri test suite 2019-07-10 14:36:56 +02:00
Ralf Jung
b3c3c33ebf bump the version of getrandom that we test 2019-07-06 10:07:21 +02:00
Ralf Jung
6c58d40a8d temporarily disable validation for 'cargo miri test' testing 2019-07-05 19:21:42 +02:00
Ralf Jung
0fac868685 support num_cpus and test that 2019-06-29 14:34:08 +02:00
Ralf Jung
4df5c6ac83 bump rand to released 0.7 2019-06-28 11:29:24 +02:00
Ralf Jung
f72f53c3ad bump rand so that the test passes 2019-06-12 18:30:05 +02:00
Ralf Jung
8f670e6b8b test rand a bit more 2019-06-12 18:19:50 +02:00
Ralf Jung
8212314441 fix tests 2019-05-17 15:03:34 +02:00
Ralf Jung
3618992a39 deduplicate tests 2019-05-15 18:12:58 +02:00
Ralf Jung
b7314369e2 make run-test runnable from other directories 2019-04-22 11:11:06 +02:00
Ralf Jung
8cb0b23c08 no need to allow any more 2019-04-22 11:08:53 +02:00
Ralf Jung
703b7f8a7e implement SecRandomCopyBytes for macOS RNG 2019-04-22 11:08:23 +02:00
Ralf Jung
7bb461362e Travis: test cargo miri on foreign arch 2019-04-21 22:35:47 +02:00
Ralf Jung
36e99a1bda remove some unneeded 'extern crate' 2019-04-18 16:16:32 +02:00
Ralf Jung
54039cafa8 try to really fix tests on macOS 2019-04-16 20:36:33 +02:00
Ralf Jung
341798f09d fix tests on macOS 2019-04-16 20:14:23 +02:00
Ralf Jung
59541d446a pick better test names 2019-04-16 20:12:55 +02:00
Ralf Jung
5761a0bf61 fix ref file 2019-04-16 19:55:22 +02:00
Ralf Jung
ba567d19f0 stub out pthread_atfork to that we support thread_rng() 2019-04-16 19:53:10 +02:00
Ralf Jung
bd4a772e1a update cargo miri test to test rng crate a bit; this currently fails 2019-04-16 19:13:53 +02:00
Ralf Jung
35ed590075 also enable passing arguments through from cargo-miri 2019-02-09 20:00:40 +01:00
Ralf Jung
0802b3a108 implement passing arguments to the interpreted program 2019-02-09 20:00:40 +01:00
Ralf Jung
5766b32871 update test for cargo-miri 2019-02-07 13:03:03 +01:00
Ralf Jung
e10a26fd3c add a test for excluding tests on miri 2018-12-19 11:11:01 +01:00
Ralf Jung
bf846a637c test-cargo-miri: be more clear that and why the test failed 2018-12-19 11:05:21 +01:00
Ralf Jung
3e603c38d7 bump Rust version, fix test-cargo-miri and it no longer needs to disable validation 2018-12-18 18:40:06 +01:00
Ralf Jung
3fda8294bd test cargo miri test output when testing cargo miri 2018-12-11 17:43:12 +01:00
Ralf Jung
f044205b5f the test suite assumes a libstd with full MIR; run test suite on xargo-built foreign libstds 2018-12-10 10:04:55 +01:00