Rename --runtool and --runtool-arg

This renames `--runtool` and `--runtool-arg` to `--test-runtool` and
`--test-runtool-arg` to maintain consistency with other `--test-*`
arguments.
This commit is contained in:
Eric Huss 2025-02-15 10:50:47 -08:00
parent 0340a865b9
commit ec25e3300b
9 changed files with 29 additions and 29 deletions

View file

@ -1,4 +1,4 @@
// Tests behavior of rustdoc `--runtool`.
// Tests behavior of rustdoc `--test-runtool`.
use std::path::PathBuf;
@ -11,7 +11,7 @@ fn mkdir(name: &str) -> PathBuf {
dir
}
// Behavior with --runtool with relative paths and --test-run-directory.
// Behavior with --test-runtool with relative paths and --test-run-directory.
fn main() {
let run_dir_name = "rundir";
let run_dir = mkdir(run_dir_name);
@ -27,7 +27,7 @@ fn main() {
.arg("--test")
.arg("--test-run-directory")
.arg(run_dir_name)
.arg("--runtool")
.arg("--test-runtool")
.arg(&run_tool_binary)
.extern_("t", "libt.rlib")
.run();

View file

@ -141,9 +141,9 @@ Options:
--enable-per-target-ignores
parse ignore-foo for ignoring doctests on a per-target
basis
--runtool The tool to run tests with when building for a different target than host
--test-runtool The tool to run tests with when building for a different target than host
--runtool-arg One (of possibly many) arguments to pass to the runtool
--test-runtool-arg One (of possibly many) arguments to pass to the runtool
--test-builder PATH
The rustc-like binary to use as the test builder

View file

@ -1,10 +1,10 @@
// Tests that the --runtool argument works.
// Tests that the --test-runtool argument works.
//@ ignore-cross-compile
//@ aux-bin: doctest-runtool.rs
//@ compile-flags: --test
//@ compile-flags: --runtool=auxiliary/bin/doctest-runtool
//@ compile-flags: --runtool-arg=arg1 --runtool-arg
//@ compile-flags: --test-runtool=auxiliary/bin/doctest-runtool
//@ compile-flags: --test-runtool-arg=arg1 --test-runtool-arg
//@ compile-flags: 'arg2 with space'
//@ compile-flags: -Zunstable-options