X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fnessie_check.rb;h=3af1dfa3dbb3b99a6e023d57ae3463db7cd2be66;hb=HEAD;hp=33eb4a383447dcb67cf10f6d0d6e663abef45dad;hpb=bd9d6731486cac11f6b294b3c84681eb65947f3d;p=avr-crypto-lib.git diff --git a/host/nessie_check.rb b/host/nessie_check.rb index 33eb4a3..3af1dfa 100644 --- a/host/nessie_check.rb +++ b/host/nessie_check.rb @@ -2,7 +2,7 @@ # nessie_check.rb =begin This file is part of the AVR-Crypto-Lib. - Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,18 +18,24 @@ along with this program. If not, see . =end +$debug = true + def skip_header(file) begin l = file.gets().strip + l = '' if !l end until /[*]{10,}.*/.match(l) begin l = file.gets().strip + l = '' if !l end until /[*]{10,}.*/.match(l) begin l = file.gets().strip + l = '' if !l end until /[=]{5,}.*/.match(l) begin l = file.gets().strip + l = '' if !l end until /[=]{5,}.*/.match(l) end @@ -85,8 +91,8 @@ def compare(fname1, fname2) end if(a!=b and a!=nil and b!=nil) $error += 1 -# puts("a key: "+a[0]+" value: "+a[1]) -# puts("b key: "+b[0]+" value: "+b[1]) + puts("a key: "+a[0]+" value: "+a[1]) if $debug + puts("b key: "+b[0]+" value: "+b[1]) if $debug end end until a==nil or b==nil end