From a58d3303f29c245899cd6549661606ff37763309 Mon Sep 17 00:00:00 2001 From: Ryan Thomas Date: Mon, 1 Feb 2016 17:04:39 +1100 Subject: [PATCH 1/3] Update docs about how to run specific tests --- CONTRIBUTING.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e4870aa6a8980..f4d9c724877e1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -131,8 +131,10 @@ Some common make targets are: & everything builds in the correct manner. - `make check-stage1-std NO_REBUILD=1` - test the standard library without rebuilding the entire compiler -- `make check TESTNAME=.rs` - Run a single test file -- `make check-stage1-rpass TESTNAME=.rs` - Run a single +- `make check TESTNAME=` - Run a single test file + - `TESTNAME` should be the fully qualified name of the test function, e.g. + `TESTNAME=collections::hash::map::test_map::test_capacity_not_less_than_len` +- `make check-stage1-rpass TESTNAME=` - Run a single rpass test with the stage1 compiler (this will be quicker than running the command above as we only build the stage1 compiler, not the entire thing). You can also leave off the `-rpass` to run all stage1 test types. From a5e491fa9249d15876c85cf356910588b49fb257 Mon Sep 17 00:00:00 2001 From: Ryan Thomas Date: Tue, 2 Feb 2016 10:57:24 +1100 Subject: [PATCH 2/3] Update TESTNAME matching description --- CONTRIBUTING.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f4d9c724877e1..3f9a5a0430554 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -131,10 +131,12 @@ Some common make targets are: & everything builds in the correct manner. - `make check-stage1-std NO_REBUILD=1` - test the standard library without rebuilding the entire compiler -- `make check TESTNAME=` - Run a single test file - - `TESTNAME` should be the fully qualified name of the test function, e.g. +- `make check TESTNAME=` - Run a single test file + - `TESTNAME` should be a substring of the tests to match against e.g. it could + be the fully qualified test name, or just a part of it. `TESTNAME=collections::hash::map::test_map::test_capacity_not_less_than_len` -- `make check-stage1-rpass TESTNAME=` - Run a single + or `TESTNAME=test_capacity_not_less_than_len`. +- `make check-stage1-rpass TESTNAME=` - Run a single rpass test with the stage1 compiler (this will be quicker than running the command above as we only build the stage1 compiler, not the entire thing). You can also leave off the `-rpass` to run all stage1 test types. From df31868cac5befd9dc3e653747f06de67831b03b Mon Sep 17 00:00:00 2001 From: Ryan Thomas Date: Tue, 2 Feb 2016 10:58:59 +1100 Subject: [PATCH 3/3] Update TESTNAME description --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f9a5a0430554..609bf03fb6c91 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -131,7 +131,7 @@ Some common make targets are: & everything builds in the correct manner. - `make check-stage1-std NO_REBUILD=1` - test the standard library without rebuilding the entire compiler -- `make check TESTNAME=` - Run a single test file +- `make check TESTNAME=` - Run a matching set of tests. - `TESTNAME` should be a substring of the tests to match against e.g. it could be the fully qualified test name, or just a part of it. `TESTNAME=collections::hash::map::test_map::test_capacity_not_less_than_len`