Stty: Implemented input and output baud rate setting for stty
There's two other open stty PR's: https://github.com/uutils/coreutils/pull/9490 and https://github.com/uutils/coreutils/pull/9516 . Once those two are merged all of the stty tests pass except for the bad-speed test. This test overrides cfsetispeed and checks to see if it is called. Currently our implementation of stty only overrides the cfsetospeed. The support to do both in GNU existed for a while. I changed the enum and parser to treat the ispeed and ospeed seperately and I added integration tests that compare that using those new flags matches the input and output of the GNU implementation.
GNU testsuite comparison:
Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
GNU testsuite comparison:
Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
GNU testsuite comparison:
Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
Hmm an issue with one of the baud rate integration tests came up, was covered up by the seq failure before
Darn so it used to be back before 9.2 that it would except invalid arguments without failing?
GNU testsuite comparison:
Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)
CodSpeed Performance Report
Merging #9517 will not alter performance
Comparing ChrisDryden:stty_input_and_output_speed (970fef3) with main (2000af8)
Summary
✅ 127 untouched
⏩ 6 skipped[^skipped]
[^skipped]: 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.
GNU testsuite comparison:
Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)
GNU testsuite comparison:
Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)
GNU testsuite comparison:
Congrats! The gnu test tests/stty/bad-speed is now passing!
GNU testsuite comparison:
Congrats! The gnu test tests/stty/bad-speed is now passing!