use strict; local $^W = 0; our $jobname; require './t/defs.pm'; use Test::More tests => 2; use Cwd; my $orec=''; while () { chop; $orec .= $_; } $orec =~ s|.*||; $orec =~ s|.*||; $orec =~ tr/\n\t //d; my $olen=length($orec); my $onodes=0; while ( $orec =~ m/ /dev/null 2> /dev/null"); system("perl \"-Iblib/lib\" blib/script/combine --baseconfig $confdir --jobname $jobname --harvest http://combine.it.lth.se/CombineTests/InstallationTest.html"); open(REC,"perl \"-Iblib/lib\" blib/script/combineExport --baseconfig $confdir --jobname $jobname |"); my $rec=''; while () { chop; $rec .= $_; } close(REC); $rec =~ s|.*||; $rec =~ s|.*||; $rec =~ tr/\n\t //d; my $len=length($rec); my $nodes=0; while ( $rec =~ m/||s; $rec =~ s|||s; is(length($orec),length($rec), 'Size of XML match (after removal of originalDocument)'); } #print "O: $orec\n\nN: $rec\n"; #if (($OK == 0) && ($orec eq $rec)) { print "All tests OK\n"; } #else { print "There might be some problem with your Combine Installation\n"; } __END__ 2006-12-05 13:20:25 2006-10-03 9:06:42 Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.3 http://combine.it.lth.se/CombineTests/InstallationTest.html H4sIAAAAAAAAA4WQsU7DMBCG9zzF4bmpBV2QcDKQVKJSKR2CEKObXBSrjm3sSyFvT0yCQGJgusG/ //u+E1flU1G9HrfwUD3u4fh8v98VwFLOXzYF52VVzg+b9Q3n2wPLE9FRr+NA2UyDFGnMdyaQ1FqS sgYIA0FrPRS2PymDgs+hRPRIEozsMWNnHN+tbwKD2hpCQxkrpDfqYr0dAjgtDYUVlN4G9HIFB3RT qMPAvns6Ipfi26Au09e5I61Gh78aCT+IR947qDvpA1I2UJvexg6+CJxsM0ad6/8kpkQiXB5XSWUC BNsj/GGG4LBWrarhSw+0OiOIidZjmzGPeh15WL6ICS7zFUjT/AiuBXeRbwHj870/AeRYaTupAQAA
Installation test for Combine
Contains some Carnivorous plant specific words like Drosera , and Nepenthes.
Installation test for Combine text/html text/html; charset=iso-8859-1 Carnivorous plants Drosera Nepenthes Drosera http://combine.it.lth.se/CombineTests/rel.html se 1 Sweden en ALL CP.Drosera drosera CP.Nepenthes nepenthe CP carnivorous plant carnivor