Re: [Catalyst] Test server as a child process

2007-08-01 Thread Matt S Trout
On Tue, Jul 31, 2007 at 12:33:52PM +0400, Ivan Fomichev wrote: Hello, I intend to write a script, that would start the test server as a child process and then run tests. Why not just use Test::WWW::Mechanize::Catalyst which embeds a server instance in the test script? Using the test server

[Catalyst] Test server as a child process

2007-07-31 Thread Ivan Fomichev
Hello, I intend to write a script, that would start the test server as a child process and then run tests. The thing I'm failing to do is to get output from the test server in order to determine, when the server has started. The problem is that test server doesn't print its prompt (You can

RE: [Catalyst] Test server as a child process

2007-07-31 Thread Peter Edwards
: [Catalyst] Test server as a child process Hello, I intend to write a script, that would start the test server as a child process and then run tests. The thing I'm failing to do is to get output from the test server in order to determine, when the server has started. The problem is that test server

Re: [Catalyst] Test server as a child process

2007-07-31 Thread Jon Schutz
On Tue, 2007-07-31 at 12:33 +0400, Ivan Fomichev wrote: Hello, I intend to write a script, that would start the test server as a child process and then run tests. The thing I'm failing to do is to get output from the test server in order to determine, when the server has started. The

Re: [Catalyst] Test server as a child process

2007-07-31 Thread Ivan Fomichev
2007/7/31, Peter Edwards [EMAIL PROTECTED]: Try using IPC::Run. I can see the You can connect message when using it to run scripts/myapp_server.pl (I guess it goes through ptys?) I've found the root of the evil. IPC::Run won't help here :-( The pipe is not autoflushed. If you put '$|++' in

Re: [Catalyst] Test server as a child process

2007-07-31 Thread Jason Kohles
On Jul 31, 2007, at 7:15 AM, Ivan Fomichev wrote: 2007/7/31, Peter Edwards [EMAIL PROTECTED]: Try using IPC::Run. I can see the You can connect message when using it to run scripts/myapp_server.pl (I guess it goes through ptys?) I've found the root of the evil. IPC::Run won't help here :-(