lsmem: sort tests
This commit is contained in:
@ -26,19 +26,6 @@ fn test_invalid_arg() {
|
|||||||
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_columns_table() {
|
|
||||||
sysroot_test_with_args("test_lsmem_columns_table.expected", &["-o", "block,size"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_columns_raw() {
|
|
||||||
sysroot_test_with_args(
|
|
||||||
"test_lsmem_columns_raw.expected",
|
|
||||||
&["-o", "block,size", "-r"],
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// FAILS, COMMENT FOR NOW - TODO
|
// FAILS, COMMENT FOR NOW - TODO
|
||||||
// #[test]
|
// #[test]
|
||||||
// fn test_columns_json() {
|
// fn test_columns_json() {
|
||||||
@ -56,6 +43,19 @@ fn test_columns_pairs() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_columns_raw() {
|
||||||
|
sysroot_test_with_args(
|
||||||
|
"test_lsmem_columns_raw.expected",
|
||||||
|
&["-o", "block,size", "-r"],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_columns_table() {
|
||||||
|
sysroot_test_with_args("test_lsmem_columns_table.expected", &["-o", "block,size"]);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_json() {
|
fn test_json() {
|
||||||
sysroot_test_with_args("test_lsmem_json.expected", &["-J"]);
|
sysroot_test_with_args("test_lsmem_json.expected", &["-J"]);
|
||||||
|
Reference in New Issue
Block a user