Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
seer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Fitinghoff
seer
Commits
bc5e76e1
Commit
bc5e76e1
authored
7 years ago
by
David Renshaw
Browse files
Options
Downloads
Patches
Plain Diff
use run-pass instead of mir-opt in compiletest, greatly speeding up 'cargo test'
parent
9ccc13ab
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/compiletest.rs
+4
-4
4 additions, 4 deletions
tests/compiletest.rs
with
4 additions
and
4 deletions
tests/compiletest.rs
+
4
−
4
View file @
bc5e76e1
...
...
@@ -37,16 +37,16 @@ fn run_pass() {
compiletest
::
run_tests
(
&
config
);
}
fn
miri
_pass
(
path
:
&
str
,
target
:
&
str
,
host
:
&
str
)
{
fn
seer
_pass
(
path
:
&
str
,
target
:
&
str
,
host
:
&
str
)
{
let
mut
config
=
compiletest
::
Config
::
default
();
config
.mode
=
"
mir-opt
"
.parse
()
.expect
(
"Invalid mode"
);
config
.mode
=
"
run-pass
"
.parse
()
.expect
(
"Invalid mode"
);
config
.src_base
=
PathBuf
::
from
(
path
);
config
.target
=
target
.to_owned
();
config
.host
=
host
.to_owned
();
config
.rustc_path
=
PathBuf
::
from
(
"target/debug/seer"
);
config
.target_rustcflags
=
Some
(
"--emit-error"
.into
());
// don't actually execute the final binary, it might be for other targets and we only care
// about running
miri
, not the binary.
// about running
seer
, not the binary.
config
.runtool
=
Some
(
"echo
\"\"
|| "
.to_owned
());
if
target
==
host
{
std
::
env
::
set_var
(
"MIRI_HOST_TARGET"
,
"yes"
);
...
...
@@ -200,7 +200,7 @@ fn compile_test() {
}
else
{
run_pass
();
for_all_targets
(
&
sysroot
,
|
target
|
{
miri
_pass
(
"tests/run-pass"
,
&
target
,
host
);
seer
_pass
(
"tests/run-pass"
,
&
target
,
host
);
});
compile_fail
(
&
sysroot
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment