Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLEASE_BENCH is broken #22291

Closed
nagisa opened this issue Feb 13, 2015 · 5 comments
Closed

PLEASE_BENCH is broken #22291

nagisa opened this issue Feb 13, 2015 · 5 comments

Comments

@nagisa
Copy link
Member

nagisa commented Feb 13, 2015

~> set -x PLEASE_BENCH 1
~> make check-stage1
cfg: version 1.0.0-dev (d2516fc09 2015-02-13 20:50:31 +0200)
cfg: build triple x86_64-unknown-linux-gnu
…
rustc: x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustdoc
run rpass-full [x86_64-unknown-linux-gnu]: x86_64-unknown-linux-gnu/stage1/bin/compiletest
thread '<main>' panicked at 'UnrecognizedOption("bench")', /home/nagisa/files/rust/rust/src/compiletest/compiletest.rs:107
/home/nagisa/files/rust/rust/mk/tests.mk:702: recipe for target 'tmp/check-stage1-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass-full.ok' failed
make: *** [tmp/check-stage1-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass-full.ok] Error 101
@Gankra
Copy link
Contributor

Gankra commented Feb 13, 2015

Can confirm. Saw this a week or so ago but assumed my local install was busted.

@bluss
Copy link
Member

bluss commented Feb 14, 2015

I've used it successfully with make check-stage1 PLEASE_BENCH=1. Is there a difference?

@nagisa
Copy link
Member Author

nagisa commented Feb 14, 2015

Yes, make check-stage1 PLEASE_BENCH=1 is the same thing as make check-stage1, because for this particular variable our scripts react to environment variable, not the make argument.

EDIT: I was wrong, make check-stage1 PLEASE_BENCH=1 fails exactly the same way as it does with an environment variable.

@Gankra
Copy link
Contributor

Gankra commented Feb 14, 2015

Oh wait, I was getting this failure while using make check PLEASE_BENCH=1

@fhahn
Copy link
Contributor

fhahn commented Feb 14, 2015

I had a closer look at this issue. PLEASE_BENCH=1 adds --bench to the arguments passed to the executable to be tested. At the moment, compiletest does not accept a --bench argument, because it is not needed for any test in src/test/, even the tests in src/test/bench do not use #[bench].

I have updated the makefile to only add the --bench flag for crate tests. I do not think that changing compiletest add --bench to the run arguments of all compile tests makes sense, because it would mess up tests which check command line arguments. Also the bench option can be added as comment in a compile test as well.

Manishearth added a commit to Manishearth/rust that referenced this issue Feb 17, 2015
…excrichton

This is a patch for rust-lang#22291.

PLEASE_BENCH=1 adds --bench to the arguments passed to the executable to be tested. At the moment, compiletest does not accept a --bench argument, because it is not needed for any test in src/test/, even the tests in src/test/bench do not use #[bench].

I have updated the makefile to only add the --bench flag for crate tests. I do not think that changing compiletest add --bench to the run arguments of all compile tests makes sense, because it would mess up tests which check command line arguments. Also the bench option can be added as comment in a compile test as well.
@bors bors closed this as completed in ff1181d Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants