I want to do it move coerce_match{,_calls} and related tests into run-pass-valgrind · Issue #21696 · rust-lang/rust · GitHub
I search and follow links on the rust/CONTRIBUTING.md at master · rust-lang/rust · GitHub. The Makefile generated from configure also suggest
// Added a run-pass test? Use this to test running your test
make check-stage1-rpass TESTNAME=my-shiny-new-test
I finally find TESTNAME mean is in https://github.com/rust-lang-nursery/rust-forge/blob/master/test-suite.md
but the result very weired, for example one:
~/github/wuranbo/rust (master ) ᐅ make check TESTNAME=test/run-pass/yield.rs cfg: version 1.12.0-dev (92400cf8d 2016-07-19) cfg: build triple x86_64-apple-darwin cfg: host triples x86_64-apple-darwin cfg: target triples x86_64-apple-darwin cfg: host for x86_64-apple-darwin is x86_64 cfg: os for x86_64-apple-darwin is apple-darwin cfg: have good valgrind for x86_64-apple-darwin cfg: using CC=clang (CFG_CC) cfg: using CXX=clang++ (CFG_CXX) cfg: disabling valgrind run-pass tests cfg: including test rules cfg: lexer tooling not available, skipping lexer test... run rpass [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
run rfail [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
run cfail [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
run pfail [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
run rpass-valgrind [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
run rmake [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
run rustdocck [x86_64-apple-darwin]: x86_64-apple-darwin/stage2/bin/compiletest
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/stdtest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/stdtest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/termtest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/termtest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/getoptstest-x86_64-apple-darwin
run: x86_64-apple-darwin/stage2/test/getoptstest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/collectionstest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/collectionstest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/testtest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/testtest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/randtest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/randtest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/alloctest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/alloctest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/rustc_bitflagstest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/rustc_bitflagstest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/unwindtest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/unwindtest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/collectionstesttest-x86_64-apple-darwin run: x86_64-apple-darwin/stage2/test/collectionstesttest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/coretesttest-x86_64-apple-darwin
run: x86_64-apple-darwin/stage2/test/coretesttest-x86_64-apple-darwin
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
rustc: x86_64-apple-darwin/stage2/test/syntaxtest-x86_64-apple-darwin
^Cmake: *** [x86_64-apple-darwin/stage2/test/syntaxtest-x86_64-apple-darwin] Interrupt: 2
the tests are always running 0 tests, and not stop, I finally Ctrl-C to stop it.
most are just nothing to be done:
make check-stage1-rfail TESTNAME=test/run-fail/assert-macro-static.rs fg: version 1.12.0-dev (92400cf8d 2016-07-19) cfg: build triple x86_64-apple-darwin cfg: host triples x86_64-apple-darwin cfg: target triples x86_64-apple-darwin cfg: host for x86_64-apple-darwin is x86_64 cfg: os for x86_64-apple-darwin is apple-darwin cfg: have good valgrind for x86_64-apple-darwin cfg: using CC=clang (CFG_CC) cfg: using CXX=clang++ (CFG_CXX) cfg: disabling valgrind run-pass tests cfg: including test rules cfg: lexer tooling not available, skipping lexer test... make: Nothing to be done for `check-stage1-rfail'.
How should I sepecific a right TESTNAME?