From: Garrett C. <yan...@gm...> - 2013-01-07 03:27:42
|
On Jan 3, 2013, at 3:23 AM, ch...@su... wrote: > Hi! >> I am using LTP drop released on ltp-full-20120104 version. >> I have written a testcase to get user input data and call that testcase using "runltp", the command I use to get user input data is "read -t 10 response" >> But, when enter user input after running "runltp" it is not working. The same testcase is working fine getting user input from command line. >> Can any one help me why it is not working in LTP, is there any work around on this? > > Apart form this being a silly idea (LTP is automatic testsuite, you > install it, run it and go away till it's finished) the tests are > executed by the test driver process (ltp-pan) that is a process group > leader so there is no way they could read from standard in. > > [This is second attempt to send this mail, the first seems to have > disapeared somewhere between our mailserver and ltp mailing list] I agree that putting a testcase into ltp that can't be automated is a showstopper, but I'm curious as to what he op had in mind for this test as there might be some utility to testing some I/O behavior with stdin, stdout, etc. Fwiw, using pan as-is with the read shell builtin probably won't work though without adding in some more shell-like syntax ;). Thanks, -Garrett |