1 #!/usr/bin/perl 2 # 3 # Test Reading Xfig files 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/xfig' || die 'Cd failed'; 16 17 # 18 # 1) Test reading Xfig 19 # 20 $image=Image::Magick->new; 21 $x=$image->ReadImage('input.fig'); 22 if( "$x" ) { 23 print "ReadImage: $x\n"; 24 print "not ok $test\n"; 25 } else { 26 print "ok $test\n"; 27 } 28 undef $image; 29