Sha256: 78c57ef95df4a8a4cbd7df36e68137c74e635eb01da92fe7dea43ea6a0b2bf9d
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
#!/usr/bin/env ruby require 'bundler/setup' require 'efivalidate' require 'optionparser' if ARGV.count != 2 puts "efivalidate EFI_FILE EALF_FILE" exit(-1) end efi = ARGV[0] ealf = ARGV[1] parser = EFIValidate::EALFParser.read ealf validator = EFIValidate::EFIValidator.new parser, efi validator.validate if validator.valid? puts "EFI file matches EALF baseline. (#{parser.rows.count} hashes match)" else puts "EFI file matched #{parser.rows.count - validator.errors.count} hashes from EALF.\n" puts "EFI file has #{validator.errors.count} hash errors:\n\n" validator.errors.each do |error| puts "Actual Hash: #{error.hash}" puts "Expected Hash from EALF:\n#{error.row}\n\n" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
efivalidate-1.2.0 | exe/efivalidate |