mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
add some simple tests to stty (still failing)
This commit is contained in:
parent
600cab0bd8
commit
a23702caeb
1 changed files with 18 additions and 0 deletions
18
tests/by-util/test_stty.rs
Normal file
18
tests/by-util/test_stty.rs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
use crate::common::util::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn runs() {
|
||||||
|
new_ucmd!().succeeds();
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn print_all() {
|
||||||
|
let res = new_ucmd!().succeeds();
|
||||||
|
|
||||||
|
// Random selection of flags to check for
|
||||||
|
for flag in [
|
||||||
|
"parenb", "parmrk", "ixany", "iuclc", "onlcr", "ofdel", "icanon", "noflsh",
|
||||||
|
] {
|
||||||
|
res.stdout_contains(flag);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue