~ubuntu-branches/ubuntu/trusty/bioperl/trusty-proposed

« back to all changes in this revision

Viewing changes to t/Tree/TreeIO/svggraph.t

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*-Perl-*- Test Harness script for Bioperl
 
2
# $Id: TreeIO.t 14580 2008-03-01 17:01:30Z cjfields $
 
3
 
 
4
use strict;
 
5
 
 
6
BEGIN {
 
7
    use lib '.';
 
8
    use Bio::Root::Test;
 
9
    
 
10
    test_begin(-tests => 4);
 
11
    use_ok('Bio::TreeIO');
 
12
}
 
13
 
 
14
my $verbose = test_debug();
 
15
 
 
16
my $treeio = Bio::TreeIO->new(-verbose => $verbose,
 
17
                          -file   => test_input_file('test.nhx'));
 
18
my $tree = $treeio->next_tree;
 
19
 
 
20
SKIP: {
 
21
        test_skip(-tests => 3, -requires_module => 'SVG::Graph');
 
22
        my $FILE3 = test_output_file();
 
23
        my $treeout3 = Bio::TreeIO->new(-format => 'svggraph',
 
24
                                        -file => ">$FILE3");
 
25
        ok($treeout3);
 
26
        eval {$treeout3->write_tree($tree);};
 
27
        ok(!$@);
 
28
        ok (-s $FILE3);
 
29
}