lsmem: Impl lsmem

This commit is contained in:
Yang Hau
2024-08-02 21:47:29 +08:00
parent 52dd5ec293
commit 1783f0250a
7 changed files with 766 additions and 4 deletions
+7
View File
@@ -2,3 +2,10 @@
//
// 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_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
+4
View File
@@ -9,6 +9,10 @@ mod common;
#[path = "by-util/test_lscpu.rs"]
mod test_lscpu;
#[cfg(feature = "lsmem")]
#[path = "by-util/test_lsmem.rs"]
mod test_lsmem;
#[cfg(feature = "mountpoint")]
#[path = "by-util/test_mountpoint.rs"]
mod test_mountpoint;