No longer require unstable for jsondocck, only build it for json tests
This commit is contained in:
parent
728ffc8c03
commit
ba6803e6b4
5 changed files with 12 additions and 7 deletions
|
|
@ -199,7 +199,7 @@ pub struct Config {
|
|||
pub docck_python: String,
|
||||
|
||||
/// The jsondocck executable.
|
||||
pub jsondocck_path: String,
|
||||
pub jsondocck_path: Option<String>,
|
||||
|
||||
/// The LLVM `FileCheck` binary path.
|
||||
pub llvm_filecheck: Option<PathBuf>,
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
|
|||
.optopt("", "rust-demangler-path", "path to rust-demangler to use in tests", "PATH")
|
||||
.reqopt("", "lldb-python", "path to python to use for doc tests", "PATH")
|
||||
.reqopt("", "docck-python", "path to python to use for doc tests", "PATH")
|
||||
.reqopt("", "jsondocck-path", "path to jsondocck to use for doc tests", "PATH")
|
||||
.optopt("", "jsondocck-path", "path to jsondocck to use for doc tests", "PATH")
|
||||
.optopt("", "valgrind-path", "path to Valgrind executable for Valgrind tests", "PROGRAM")
|
||||
.optflag("", "force-valgrind", "fail if Valgrind tests cannot be run under Valgrind")
|
||||
.optopt("", "run-clang-based-tests-with", "path to Clang executable", "PATH")
|
||||
|
|
@ -208,7 +208,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
|
|||
rust_demangler_path: matches.opt_str("rust-demangler-path").map(PathBuf::from),
|
||||
lldb_python: matches.opt_str("lldb-python").unwrap(),
|
||||
docck_python: matches.opt_str("docck-python").unwrap(),
|
||||
jsondocck_path: matches.opt_str("jsondocck-path").unwrap(),
|
||||
jsondocck_path: matches.opt_str("jsondocck-path"),
|
||||
valgrind_path: matches.opt_str("valgrind-path"),
|
||||
force_valgrind: matches.opt_present("force-valgrind"),
|
||||
run_clang_based_tests_with: matches.opt_str("run-clang-based-tests-with"),
|
||||
|
|
|
|||
|
|
@ -2490,7 +2490,7 @@ impl<'test> TestCx<'test> {
|
|||
let mut json_out = out_dir.join(self.testpaths.file.file_stem().unwrap());
|
||||
json_out.set_extension("json");
|
||||
let res = self.cmd2procres(
|
||||
Command::new(&self.config.jsondocck_path)
|
||||
Command::new(self.config.jsondocck_path.as_ref().unwrap())
|
||||
.arg("--doc-dir")
|
||||
.arg(root.join(&out_dir))
|
||||
.arg("--template")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue