mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test(uname): Add uname tests
This commit is contained in:
committed by
Roy Ivy III
parent
ecfb42ba6c
commit
4c1774e918
@@ -205,6 +205,7 @@ TEST_PROGS := \
|
||||
true \
|
||||
truncate \
|
||||
tsort \
|
||||
uname \
|
||||
unexpand \
|
||||
uniq \
|
||||
unlink \
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
use common::util::*;
|
||||
|
||||
#[test]
|
||||
fn test_uname_compatible() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
let result = ucmd.arg("-a").run();
|
||||
assert!(result.success);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_uname_name() {
|
||||
let (_, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
let result = ucmd.arg("-n").run();
|
||||
assert!(result.success);
|
||||
}
|
||||
@@ -29,6 +29,7 @@ unix_only! {
|
||||
"pathchk", test_pathchk;
|
||||
"pinky", test_pinky;
|
||||
"stdbuf", test_stdbuf;
|
||||
"uname", test_uname;
|
||||
"unlink", test_unlink;
|
||||
"who", test_who;
|
||||
// Be aware of the trailing semicolon after the last item
|
||||
|
||||
Reference in New Issue
Block a user