X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=host%2Fnessie_check.rb;h=33eb4a383447dcb67cf10f6d0d6e663abef45dad;hp=d0f2b55a237473155d21a3a0910396c25505bc14;hb=bd9d6731486cac11f6b294b3c84681eb65947f3d;hpb=83398013d7fefe3600b771be65317a330a140ffb diff --git a/host/nessie_check.rb b/host/nessie_check.rb index d0f2b55..33eb4a3 100644 --- a/host/nessie_check.rb +++ b/host/nessie_check.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/ruby # nessie_check.rb =begin This file is part of the AVR-Crypto-Lib. @@ -84,10 +84,10 @@ def compare(fname1, fname2) pos +=1 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]) - end + $error += 1 +# puts("a key: "+a[0]+" value: "+a[1]) +# puts("b key: "+b[0]+" value: "+b[1]) + end end until a==nil or b==nil end @@ -112,9 +112,13 @@ else f1 = ARGV[0] f2 = ARGV[1] end - + puts("compare("+f1+", "+f2+")") compare(f1, f2) -puts($error==0?"[ok]":"[failed]") +if $error!=0 + puts("[failed] ("+$error.to_s()+")") +else + puts("[ok]") +end exit($error)