Skip to content

Commit 9f734c9

Browse files
committed
Add documentation of tool testing with x.py script
1 parent 259b06e commit 9f734c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/bootstrap/flags.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -359,19 +359,23 @@ Arguments:
359359
subcommand_help.push_str(
360360
"\n
361361
Arguments:
362-
This subcommand accepts a number of paths to directories to tests that
362+
This subcommand accepts a number of paths to test directories that
363363
should be compiled and run. For example:
364364
365365
./x.py test src/test/ui
366366
./x.py test src/libstd --test-args hash_map
367367
./x.py test src/libstd --stage 0 --no-doc
368368
./x.py test src/test/ui --bless
369369
./x.py test src/test/ui --compare-mode nll
370-
370+
371371
Note that `test src/test/* --stage N` does NOT depend on `build src/rustc --stage N`;
372372
just like `build src/libstd --stage N` it tests the compiler produced by the previous
373373
stage.
374374
375+
Execute tool tests with a tool name argument:
376+
377+
./x.py test tidy
378+
375379
If no arguments are passed then the complete artifacts for that stage are
376380
compiled and tested.
377381

0 commit comments

Comments
 (0)