Skip to content

Commit 139edf9

Browse files
committed
also test parts of std
1 parent 4a36dfb commit 139edf9

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

library/std/benches/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Disabling in Miri as these would take too long.
2+
#![cfg(not(miri))]
13
#![feature(test)]
24

35
extern crate test;

src/bootstrap/mk/Makefile.in

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,24 @@ check-aux:
5757
library/core \
5858
library/alloc \
5959
--no-doc
60+
# Some doctests have intentional memory leaks.
6061
$(Q)MIRIFLAGS="-Zmiri-ignore-leaks -Zmiri-disable-isolation" \
6162
$(BOOTSTRAP) miri --stage 2 \
6263
library/core \
6364
library/alloc \
6465
--doc
66+
# In `std` we cannot test everything, sowe test the most target-dependent modules.
67+
# We cover all main OSes and three different architectures.
68+
$(Q)MIRIFLAGS="-Zmiri-disable-isolation" \
69+
$(BOOTSTRAP) miri --stage 2 library/std \
70+
--target x86_64-unknown-linux-gnu,aarch64-apple-darwin,i686-pc-windows-gnu \
71+
--no-doc -- \
72+
time:: sync:: thread:: env::
73+
$(Q)MIRIFLAGS="-Zmiri-ignore-leaks -Zmiri-disable-isolation" \
74+
$(BOOTSTRAP) miri --stage 2 library/std \
75+
--target x86_64-unknown-linux-gnu,aarch64-apple-darwin,i686-pc-windows-gnu \
76+
--doc -- \
77+
time:: sync:: thread:: env::
6578
dist:
6679
$(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
6780
distcheck:

0 commit comments

Comments
 (0)