Real.t 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Before "make install", this script should be runnable with "make test".
  2. # After "make install" it should work as "perl t/Real.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::Real;
  8. $loaded = 1;
  9. print "ok 1\n";
  10. use t::TestLib;
  11. my $testname = 'Real';
  12. my $testnum = 1;
  13. # test 2: Extract information from a RealMedia file
  14. {
  15. ++$testnum;
  16. my $exifTool = new Image::ExifTool;
  17. my $info = $exifTool->ImageInfo('t/images/Real.rm');
  18. print 'not ' unless check($exifTool, $info, $testname, $testnum);
  19. print "ok $testnum\n";
  20. }
  21. # test 3: Extract information from a RealAudio file
  22. {
  23. ++$testnum;
  24. my $exifTool = new Image::ExifTool;
  25. my $info = $exifTool->ImageInfo('t/images/Real.ra');
  26. print 'not ' unless check($exifTool, $info, $testname, $testnum);
  27. print "ok $testnum\n";
  28. }
  29. # test 4: Extract information from a RealAudio Metafile
  30. {
  31. ++$testnum;
  32. my $exifTool = new Image::ExifTool;
  33. my $info = $exifTool->ImageInfo('t/images/Real.ram');
  34. print 'not ' unless check($exifTool, $info, $testname, $testnum);
  35. print "ok $testnum\n";
  36. }
  37. # end