#!/usr/bin/perl -w use strict; use HTTPTest; ############################################################################### my $mainpage = < Main Page Title Secondary Page EOF my $subpage = < Secondary Page Title Broken Link EOF # code, msg, headers, content my %urls = ( '/index.html' => { code => "200", msg => "Dontcare", headers => { "Content-type" => "text/html", }, content => $mainpage, }, '/subpage.html' => { code => "200", msg => "Dontcare", headers => { "Content-type" => "text/html", }, content => $subpage, }, ); my $cmdline = "wget --spider -r http://localhost:8080/"; my $expected_error_code = 0; my %expected_downloaded_files = ( ); ############################################################################### my $the_test = HTTPTest->new (name => "Test8", input => \%urls, cmdline => $cmdline, errcode => $expected_error_code, output => \%expected_downloaded_files); $the_test->run(); # vim: et ts=4 sw=4