From 259b06e33f533096f0b46beca8719fd4afceb78b Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Mon, 9 Mar 2020 21:55:56 -0400 Subject: add documentation of x.py tool testing --- src/bootstrap/README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/bootstrap') diff --git a/src/bootstrap/README.md b/src/bootstrap/README.md index c501378bff5..87da7327fe6 100644 --- a/src/bootstrap/README.md +++ b/src/bootstrap/README.md @@ -55,6 +55,9 @@ The script accepts commands, flags, and arguments to determine what to do: # run all unit tests ./x.py test + # execute tool tests + ./x.py test tidy + # execute the UI test suite ./x.py test src/test/ui -- cgit 1.4.1-3-g733a5 From 9f734c978c4c32eea552d45fef582804c1d2b9bf Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Mon, 9 Mar 2020 22:04:59 -0400 Subject: Add documentation of tool testing with x.py script --- src/bootstrap/flags.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index 516be6a30c2..a8b76c44f79 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -359,7 +359,7 @@ Arguments: subcommand_help.push_str( "\n Arguments: - This subcommand accepts a number of paths to directories to tests that + This subcommand accepts a number of paths to test directories that should be compiled and run. For example: ./x.py test src/test/ui @@ -367,11 +367,15 @@ Arguments: ./x.py test src/libstd --stage 0 --no-doc ./x.py test src/test/ui --bless ./x.py test src/test/ui --compare-mode nll - + Note that `test src/test/* --stage N` does NOT depend on `build src/rustc --stage N`; just like `build src/libstd --stage N` it tests the compiler produced by the previous stage. + Execute tool tests with a tool name argument: + + ./x.py test tidy + If no arguments are passed then the complete artifacts for that stage are compiled and tested. -- cgit 1.4.1-3-g733a5 From 4922b683de170c70260b73426ccf16172fa63b7f Mon Sep 17 00:00:00 2001 From: Chris Simpkins Date: Mon, 9 Mar 2020 22:15:41 -0400 Subject: remove trailing whitespace (tidy) --- src/bootstrap/flags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index a8b76c44f79..4b04ee84c31 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -367,7 +367,7 @@ Arguments: ./x.py test src/libstd --stage 0 --no-doc ./x.py test src/test/ui --bless ./x.py test src/test/ui --compare-mode nll - + Note that `test src/test/* --stage N` does NOT depend on `build src/rustc --stage N`; just like `build src/libstd --stage N` it tests the compiler produced by the previous stage. -- cgit 1.4.1-3-g733a5