X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Engine-STOMP.git;a=blobdiff_plain;f=t%2Fserver.pl;fp=t%2Fserver.pl;h=0000000000000000000000000000000000000000;hp=bc77af93f49e77e025d27992d1ed0fa0a7d65fe4;hb=8edb2b469643bd6e63e67d4846bafd3ac3927ba8;hpb=edb41ed13117249bf9993a1a7166763d134c788d diff --git a/t/server.pl b/t/server.pl deleted file mode 100644 index bc77af9..0000000 --- a/t/server.pl +++ /dev/null @@ -1,32 +0,0 @@ -use Alien::ActiveMQ; -my $ACTIVEMQ_VERSION = '5.2.0'; - -eval { - $stomp = Net::Stomp->new( { hostname => 'localhost', port => 61613 } ); -}; -if ($@) { - - unless (Alien::ActiveMQ->is_version_installed($ACTIVEMQ_VERSION)) { - plan 'skip_all' => 'No ActiveMQ server installed by Alien::ActiveMQ, try running the "install-activemq" command'; - exit; - } - - $mq = Alien::ActiveMQ->run_server($ACTIVEMQ_VERSION); - - eval { - $stomp = Net::Stomp->new( { hostname => 'localhost', port => 61613 } ); - }; - if ($@) { - plan 'skip_all' => 'No ActiveMQ server listening on 61613: ' . $@; - exit; - } -} - -$SIG{CHLD} = 'IGNORE'; -unless (fork()) { - system("$^X -Ilib -Itestapp/lib testapp/script/stomptestapp_stomp.pl --oneshot"); - exit 0; -} -print STDERR "server started, waiting for spinup..."; -sleep 20; -