add support to TestMode plugin for forcing conf vars to be treated as absolute or...
[sgn.git] / t / solcyc_live.t
blob7a8e2678a008a16f97c372499c60bab4f651c35a
1 use strict;
2 use warnings;
5 our @urls;
6 our $tests_per_url;
7 BEGIN {
8     @urls =  ( "http://solcyc.sgn.cornell.edu",
9                "http://solcyc.sgn.cornell.edu/LYCO/substring-search?type=NIL&object=carotenoid",
10              );
11     $tests_per_url = 3;
14 use Test::More $ENV{TEST_SOLCYC_LIVE} ? ( tests => scalar(@urls)*$tests_per_url )
15                                            : ( skip_all => "set TEST_SOLCYC_LIVE=1 to test the solcyc live site" );
17 use Test::WWW::Mechanize;
19 my $mech = Test::WWW::Mechanize->new;
20 for my $url (@urls ) {
21     $mech->get_ok( $url );
22     $mech->content_like( qr/generated by SRI International/i, "i see the footer, page seems to be fully generated" );
23     $mech->content_unlike( qr/timed out/i, "page did not time out");