|
From: doug s. <hig...@ho...> - 2013-05-18 21:01:44
|
> 3. Compare - perl script that compares Record vs Playback snapshots for a given test file
> -- there might be several snapshots for a given test file run, named by the frame#
> -- calls the platform file compare function
> --- in ms windows its fc file1 file2
.
The perl I have on my windows XP has compare(f1,f2)
So this works with text and binary files:
#!/usr/bin/env perl
use File::Compare;
if (compare("file1.rgb","file2.rgb") == 0) {
print "They're equal\n";
}else{
print "They're different\n";
}
-Doug
more...
-IIRC I downloaded the Activestate perl from http://www.perl.org/get.html
|