Add back the default database path.

Allow default server_name when testing.

Default to smoke test vector when testing.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-09-27 15:49:46 +00:00
parent 292b601755
commit ae52676e33
6 changed files with 57 additions and 11 deletions

View File

@@ -149,6 +149,18 @@ pub struct Args {
pub gc_muzzy: Option<bool>,
}
impl Args {
#[must_use]
pub fn default_test(name: &str) -> Self {
let mut args = Self::default();
args.test.push(name.into());
args.option
.push("server_name=\"localhost\"".into());
args
}
}
impl Default for Args {
fn default() -> Self { Self::parse() }
}