add tests for capture and emulation

This commit is contained in:
Ferdinand Schober
2024-04-11 13:53:49 +02:00
parent 141ea2809d
commit f7edfecba9
7 changed files with 120 additions and 4 deletions

View File

@@ -59,6 +59,14 @@ struct CliArgs {
/// run only the service as a daemon without the frontend
#[arg(short, long)]
daemon: bool,
/// test input capture
#[arg(long)]
test_capture: bool,
/// test input emulation
#[arg(long)]
test_emulation: bool,
}
#[derive(Debug, PartialEq, Eq)]
@@ -74,6 +82,8 @@ pub struct Config {
pub clients: Vec<(TomlClient, Position)>,
pub daemon: bool,
pub release_bind: Vec<scancode::Linux>,
pub test_capture: bool,
pub test_emulation: bool,
}
pub struct ConfigClient {
@@ -169,6 +179,8 @@ impl Config {
}
let daemon = args.daemon;
let test_capture = args.test_capture;
let test_emulation = args.test_emulation;
Ok(Config {
daemon,
@@ -176,6 +188,8 @@ impl Config {
clients,
port,
release_bind,
test_capture,
test_emulation,
})
}