perkeep/server/sigserver/test/00-start.t

21 lines
453 B
Perl
Raw Normal View History

2010-11-15 03:27:41 +00:00
#!/usr/bin/perl
use strict;
use Test::More;
use FindBin;
use lib "$FindBin::Bin";
use CamsigdTest;
my $server = CamsigdTest::start();
2010-11-15 04:05:20 +00:00
ok($server, "Started the server") or BAIL_OUT("can't start the server");
2010-11-15 03:27:41 +00:00
2010-11-15 04:05:20 +00:00
my $ua = LWP::UserAgent->new;
my $req = HTTP::Request->new("GET", $server->root . "/");
my $res = $ua->request($req);
ok($res, "got an HTTP response") or done_testing();
2010-11-15 04:31:21 +00:00
ok($res->is_success, "HTTP response is successful");
2010-11-15 04:05:20 +00:00
done_testing(3);
2010-11-15 04:31:21 +00:00