Add documentation of tool testing with x.py script · rust-lang/rust@9f734c9 (original) (raw)

Original file line number Diff line number Diff line change
@@ -359,19 +359,23 @@ Arguments:
359 359 subcommand_help.push_str(
360 360 "\n
361 361 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
363 363 should be compiled and run. For example:
364 364
365 365 ./x.py test src/test/ui
366 366 ./x.py test src/libstd --test-args hash_map
367 367 ./x.py test src/libstd --stage 0 --no-doc
368 368 ./x.py test src/test/ui --bless
369 369 ./x.py test src/test/ui --compare-mode nll
370 -
370 +
371 371 Note that `test src/test/* --stage N` does NOT depend on `build src/rustc --stage N`;
372 372 just like `build src/libstd --stage N` it tests the compiler produced by the previous
373 373 stage.
374 374
375 + Execute tool tests with a tool name argument:
376 +
377 + ./x.py test tidy
378 +
375 379 If no arguments are passed then the complete artifacts for that stage are
376 380 compiled and tested.
377 381