Home | History | Annotate | Download | only in hpgl
      1 #!/usr/bin/perl
      2 #
      3 # Test Reading HP GL images
      4 #
      5 # Contributed by Bob Friesenhahn <bfriesen (at] simple.dallas.tx.us>
      6 #
      7 
      8 BEGIN { $| = 1; $test=1; print "1..1\n"; }
      9 END {print "not ok $test\n" unless $loaded;}
     10 use Image::Magick;
     11 $loaded=1;
     12 
     13 require 't/subroutines.pl';
     14 
     15 chdir 't/hpgl' || die 'Cd failed';
     16 
     17 #
     18 # 1) Test reading HP GL
     19 #
     20 $image=Image::Magick->new;
     21 $x=$image->ReadImage('input.hpgl');
     22 if( "$x" ) {
     23   print "ReadImage: $x\n";
     24   print "not ok $test\n";
     25 } else {
     26     print "ok $test\n";
     27 }
     28 
     29 undef $image;
     30