~ubuntu-branches/ubuntu/raring/bioperl/raring

« back to all changes in this revision

Viewing changes to t/abi.t

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2008-03-18 14:44:57 UTC
  • mfrom: (4 hardy)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20080318144457-1jjoztrvqwf0gruk
* debian/control:
  - Removed MIA Matt Hope (dopey) from the Uploaders field.
    Thank you for your work, Matt. I hope you are doing well.
  - Downgraded some recommended package to the 'Suggests' priority,
    according to the following discussion on Upstream's mail list.
    http://bioperl.org/pipermail/bioperl-l/2008-March/027379.html
    (Closes: #448890)
* debian/copyright converted to machine-readable format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*-Perl-*-
 
2
# $Id: abi.t,v 1.4 2005/09/17 02:11:21 bosborne Exp $
 
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'
 
5
 
 
6
use strict;
 
7
use vars qw($error $NUMTESTS);
 
8
BEGIN {
 
9
        $NUMTESTS = 3;
 
10
        $error = 0;
 
11
        # to handle systems with no installed Test module
 
12
        # we include the t dir (where a copy of Test.pm is located)
 
13
        # as a fallback
 
14
        eval { require Test; };
 
15
        if ( $@ ) {
 
16
                use lib 't';
 
17
        }
 
18
        # SeqIO modules abi.pm, ctf.pm, exp.pm, pln.pm, ztr.pm
 
19
        # all require Bio::SeqIO::staden::read, part of bioperl-ext
 
20
        eval {
 
21
                require Bio::SeqIO::staden::read;
 
22
        };
 
23
        if ( $@ ) {
 
24
                $error = 1;
 
25
                warn "Bio::SeqIO::staden::read from bioperl-ext is not installed or is installed incorrectly - skipping abi.t tests\n";
 
26
   }
 
27
        use Test;
 
28
        plan tests => $NUMTESTS;
 
29
}
 
30
 
 
31
END { 
 
32
        foreach ( $Test::ntest..$NUMTESTS) {
 
33
                skip('Unable to run all of the abi tests',1);
 
34
   }
 
35
}
 
36
 
 
37
exit(0) if ( $error == 1 );
 
38
 
 
39
use Bio::SeqIO::abi;
 
40
use Bio::Root::IO;
 
41
 
 
42
my $verbose = $ENV{'BIOPERLDEBUG'};
 
43
ok(1);
 
44
 
 
45
my $io = Bio::SeqIO->new(-format => 'abi',
 
46
                                                                 -verbose => $verbose,
 
47
                                                                 -file => Bio::Root::IO->catfile
 
48
                                                                 (qw(t data readtest.abi) ));
 
49
ok(my $seq = $io->next_seq);
 
50
ok($seq->seq, "GCNTATGACGTGGATTNCGAATTCTNNNNNCGGTAGNNGAAAATCCCCGGNCAAGNTTNNCCCTGCAAANGGAANAANNTGGCCGAGCGCTACGGGCTGATCTGGGTGTGCCTGTTTCCCCCGGCCGGGGGGAGNGATGCAGGACATCCAAGTATCCCGCCNATGGNGGGCTGAGGACGAGGACGGCTTCCATCAGATCAGTGTGCCCGGNCTTCGACATCGGCGGCAGCGCCGCGCGCCAACTGGAAGGCTTCATCGACGTGNAGCATTTTGNCTTCNTGCGCACCGCTACCTTCACCCANCCGGACAAGCGCNAANTGCNGNCCTACACCACCACNGAAACACCGACCGGNTTNAATGCCGATTACCTGAGNNGCGTGGCAAATTATTCGGNGGACNTGCCGCTGNCGGACGTGGACCCGAACTTCCAATGGCTGCGTCATTNCTAGGTGAATCTGCCTTTCACCGCCACGCTCACCATCCACTTCCCGGTGCCGGGCAAGCGGTTGGTGATNATGAATGCCGCCAGACCGGTGTCCAAGCACACCANCCGCCTGNTGGTGCCGATCGNCCGCTAATTTCGACACCCATCTGCCNGNGGGAAGACGTACATGNGTTCAACCTTGCACNTNGTTCNAAAAAAACCNTGCCATGGTGGNAANCGCAAGCGGNCCGGAAATATCNGCCGGNTTGACCCGCNTGNTTGGAAAGTGCATATTCCCCNCCGATNCNCAATTTCGAT");
 
51