Supply TEMPLATE and SUFFIX for temporary query sequence files.
[bioperl-run.git] / t / Primate.t
blob0251a94513710b21842002ff3252e088295dba18
1 ## Bioperl Test Harness Script for Modules
3 # Before `make install' is performed this script should be runnable with
4 # `make test'. After `make install' it should work as `perl test.t'
6 use strict;
8 BEGIN {
9     use Bio::Root::Test;
10     test_begin(-tests => 8);
11         use_ok('Bio::Tools::Run::Primate'); 
12         use_ok('Bio::SeqIO');
15 my $verbose = 0;
17 my $query = test_input_file('primate_query.fa');
18 my $target= test_input_file('primate_target.fa');
20 my @params = ("query" => $query,"target" => $target,"m"=>0,"b"=>"TRUE");
21 my $fact = Bio::Tools::Run::Primate->new(@params);
23 SKIP: {
24     test_skip(-requires_executable => $fact,
25               -tests => 6);
26         
27         isa_ok($fact,"Bio::Tools::Run::Primate");
28         my @feat = $fact->search;
29         
30         isa_ok ($feat[0],"Bio::SeqFeature::Generic");
31         
32         is ($feat[2]->start,11);
33         is ($feat[5]->end,33);
34         is ($feat[6]->seq->seq,"TATTTCTAC");
35         is ($feat[12]->strand,-1);