vmstat: add simple tests

This commit is contained in:
Bluemangoo
2025-03-27 12:55:02 +00:00
parent ccb2b43a9c
commit b5f44f3fa1
2 changed files with 20 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// This file is part of the uutils procps package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use crate::common::util::TestScenario;
#[test]
fn test_simple() {
new_ucmd!().succeeds();
}
#[test]
fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
+4
View File
@@ -49,6 +49,10 @@ mod test_pidwait;
#[path = "by-util/test_top.rs"]
mod test_top;
#[cfg(feature = "vmstat")]
#[path = "by-util/test_vmstat.rs"]
mod test_vmstat;
#[cfg(feature = "snice")]
#[path = "by-util/test_snice.rs"]
mod test_snice;