cmdtest/t/bin/diff.rb
Johan Holmberg 6a7bdbdfe4 make tests more Windows-friendly
by using Ruby helper scripts instead fo relying
on the existence of Unix commands
2016-11-05 00:49:22 +01:00

11 lines
201 B
Ruby
Executable File

#!/usr/bin/ruby
a = File.read(ARGV[0], encoding: 'BINARY')
b = File.read(ARGV[1], encoding: 'BINARY')
if a == b
exit(0)
else
puts "file differ: %s and %s" % [ARGV[0], ARGV[1]]
exit(1)
end