[Catalyst] Test server as a child process

Peter Edwards peter at dragonstaff.com
Tue Jul 31 10:18:22 GMT 2007


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?)

Regards, Peter

-----Original Message-----
From: Ivan Fomichev [mailto:ifomichev at gmail.com] 
Sent: 31 July 2007 09:34
To: catalyst at lists.rawmode.org
Subject: [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 doesn't print its prompt ("You can
connect to your server at http://localhost:3000") when run as a child
process :-(

I dug Catalyst's sources, but didn't understood much. I put 'sleep' in
parent process for now, but I don't like it. Could anyone suggest an
adequate work-around? Thank you in advance.





More information about the Catalyst mailing list