Skip to content

Commit a58d330

Browse files
committed
Update docs about how to run specific tests
1 parent 094c5b0 commit a58d330

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ Some common make targets are:
131131
& everything builds in the correct manner.
132132
- `make check-stage1-std NO_REBUILD=1` - test the standard library without
133133
rebuilding the entire compiler
134-
- `make check TESTNAME=<path-to-test-file>.rs` - Run a single test file
135-
- `make check-stage1-rpass TESTNAME=<path-to-test-file>.rs` - Run a single
134+
- `make check TESTNAME=<name-of-test-to-run>` - Run a single test file
135+
- `TESTNAME` should be the fully qualified name of the test function, e.g.
136+
`TESTNAME=collections::hash::map::test_map::test_capacity_not_less_than_len`
137+
- `make check-stage1-rpass TESTNAME=<name-of-test-to-run>` - Run a single
136138
rpass test with the stage1 compiler (this will be quicker than running the
137139
command above as we only build the stage1 compiler, not the entire thing).
138140
You can also leave off the `-rpass` to run all stage1 test types.

0 commit comments

Comments
 (0)