Let's provide a function rlFakeTerm which simulates a terminal to the application being tested, so that we could run RHTS tests conveniently for such tty-dependent applications as well. Suggested syntax: rlFakeTerm command [terminal] Options: * command - a command to run in fake terminal * terminal - optional terminal type (default VT100) Return value: Exit status of the command, no asserts. Ideas, opinions, hints?
What about this syntax? rlFakeTerm command [input] [sleep] [terminal] Options: command - command to run in terminal input - simulate input from keyboard, space separated sleep - sleep between 2 inputs terminal - optional terminal (default VT100) Please write your suggestions.
(In reply to comment #1) > input - simulate input from keyboard, space separated How do I send 'space' then? :)
$ x="a b c \x20 " $ for f in $x; do echo -e _"$f"_; done _a_ _b_ _c_ _ _
(In reply to comment #1) > What about this syntax? > > rlFakeTerm command [input] [sleep] [terminal] Sounds fine to me, including the "\x20" space hack. What will be the default sleep? What about 3 seconds? Looking forward to having this in production! :-)
If anyone starts implementing this, please assign this bug to yourself and flip to ASSIGNED.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
It seems there are no consumers. Can be done using expect/unbuffered. If needed create beaker library.