forked from torrust/torrust-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtracker_checker.rs
More file actions
25 lines (20 loc) · 763 Bytes
/
Copy pathtracker_checker.rs
File metadata and controls
25 lines (20 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! Integration tests for the `tracker_client check` command.
//!
//! These tests verify the CLI I/O contract:
//! - stderr receives a JSON error envelope on configuration errors
//! - exit code 2 is returned for configuration errors
//! - exit code 0 is returned when the binary runs successfully (even if tracker checks fail)
//!
//! Reference: [Tracker CLI I/O Contract](../docs/contracts/tracker-cli-io-contract.md)
mod common;
use std::process::Command;
fn tracker_client_check_bin() -> Command {
let mut command = Command::new(common::resolve_tracker_client_binary());
command.arg("check");
command.arg("--");
command
}
#[path = "tracker_checker/configuration.rs"]
mod configuration;
#[path = "tracker_checker/monitor.rs"]
mod monitor;