RIFF.t 790 B

12345678910111213141516171819202122232425262728293031
  1. # Before "make install", this script should be runnable with "make test".
  2. # After "make install" it should work as "perl t/RIFF.t".
  3. BEGIN { $| = 1; print "1..4\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::RIFF;
  8. $loaded = 1;
  9. print "ok 1\n";
  10. use t::TestLib;
  11. my $testname = 'RIFF';
  12. my $testnum = 1;
  13. # tests 2-4: Extract information from RIFF.wav, RIFF.avi and RIFF.webp
  14. {
  15. my $ext;
  16. foreach $ext (qw(wav avi webp)) {
  17. ++$testnum;
  18. my $exifTool = new Image::ExifTool;
  19. my $info = $exifTool->ImageInfo("t/images/RIFF.$ext");
  20. print 'not ' unless check($exifTool, $info, $testname, $testnum);
  21. print "ok $testnum\n";
  22. }
  23. }
  24. # end