]>
git.proxmox.com Git - pmg-log-tracker.git/blob - tests/tests_time_rfc3339.rs
2 use std
::io
::BufReader
;
3 use std
::process
::Command
;
8 fn after_queue_time_rfc3339_mixed() {
9 let output
= Command
::new(utils
::log_tracker_path())
12 .arg("2023-06-23 00:00:00")
14 .arg("2023-06-23 23:59:00")
16 .arg("tests/test_input_time_rfc3339_mixed")
18 .expect("failed to execute pmg-log-tracker");
21 File
::open("tests/test_output_time_rfc3339_mixed").expect("failed to open test_output");
23 let expected_output
= BufReader
::new(&expected_file
);
24 let output_reader
= BufReader
::new(&output
.stdout
[..]);
25 utils
::compare_output(output_reader
, expected_output
);