FlashPix.t 855 B

123456789101112131415161718192021222324252627282930
  1. # Before "make install", this script should be runnable with "make test".
  2. # After "make install" it should work as "perl t/FlashPix.t".
  3. BEGIN { $| = 1; print "1..2\n"; $Image::ExifTool::noConfig = 1; }
  4. END {print "not ok 1\n" unless $loaded;}
  5. # test 1: Load the module(s)
  6. use Image::ExifTool 'ImageInfo';
  7. use Image::ExifTool::FlashPix;
  8. $loaded = 1;
  9. print "ok 1\n";
  10. use t::TestLib;
  11. my $testname = 'FlashPix';
  12. my $testnum = 1;
  13. # test 2: Extract information from FlashPix.ppt
  14. {
  15. ++$testnum;
  16. my $exifTool = new Image::ExifTool;
  17. # omit FileSize since file is 9.5kB exactly and rounding errors
  18. # in Windows Cygwin Perl 5.8.2 round this down to 9kB in printout
  19. my $info = $exifTool->ImageInfo('t/images/FlashPix.ppt','-filesize');
  20. print 'not ' unless check($exifTool, $info, $testname, $testnum);
  21. print "ok $testnum\n";
  22. }
  23. # end