From a23702caebb68ce3c89a5845d3db1571ee2456b6 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 25 Jun 2022 22:37:28 +0200 Subject: [PATCH] add some simple tests to stty (still failing) --- tests/by-util/test_stty.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/by-util/test_stty.rs diff --git a/tests/by-util/test_stty.rs b/tests/by-util/test_stty.rs new file mode 100644 index 000000000..544d20afe --- /dev/null +++ b/tests/by-util/test_stty.rs @@ -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); + } +}