tests: factor out expensive "pairs" code of misc/stty
authorBernhard Voelker <mail@bernhard-voelker.de>
Tue, 10 Apr 2012 08:10:50 +0000 (10:10 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 19 Apr 2012 17:31:48 +0000 (19:31 +0200)
commitfdf0a4496725d476243149cdef8549328c86f561
tree593b356192a94042020c0d2bd219887f69698494
parent26996738e453d98d68e8a03f6d9733b89f7cdcd6
tests: factor out expensive "pairs" code of misc/stty

* tests/Makefile.am (TESTS): Add misc/stty-pairs.
* tests/init.cfg (stty_reversible_init_): New function.
(stty_reversible_query_): New function.
* tests/misc/stty: Factor out expensive "pairs" code into new test.
Use new stty_reversible_* functions instead of evaluating static
REV_* variables.
* tests/misc/stty-pairs: Add new test.  Code added from misc/stty.
Mark this as an expensive test.  Skip 'parenb' and 'cread' options,
as these tests are known to fail.  Like in misc/stty, also use
the new stty_reversible_* functions.
tests/Makefile.am
tests/init.cfg
tests/misc/stty
tests/misc/stty-pairs [new file with mode: 0755]