MP3.t 710 B

1234567891011121314151617181920212223242526272829
  1. # Before "make install", this script should be runnable with "make test".
  2. # After "make install" it should work as "perl t/MP3.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::ID3;
  8. use Image::ExifTool::MPEG;
  9. $loaded = 1;
  10. print "ok 1\n";
  11. use t::TestLib;
  12. my $testname = 'MP3';
  13. my $testnum = 1;
  14. # test 2: Extract information from test image
  15. {
  16. ++$testnum;
  17. my $exifTool = new Image::ExifTool;
  18. my $info = $exifTool->ImageInfo('t/images/MP3.mp3');
  19. print 'not ' unless check($exifTool, $info, $testname, $testnum);
  20. print "ok $testnum\n";
  21. }
  22. # end