X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fshavs_test.rb;h=99553ff47bb3e49047188b58b6a5c6a0c83bb6bd;hb=402f8b98e8bd4ca12bbac8fe6ccd07e594015a63;hp=e6a90d1555d5975a934138ade5d46c21437dd6dd;hpb=55961d766375e8415baf7bc1e74fe9ba087e18ad;p=avr-crypto-lib.git diff --git a/host/shavs_test.rb b/host/shavs_test.rb index e6a90d1..99553ff 100644 --- a/host/shavs_test.rb +++ b/host/shavs_test.rb @@ -57,7 +57,7 @@ def send_md(md_string) $sp.print(md_string[i].chr) # print("DBG s: "+ md_string[i].chr) if $debug if(i%20==19) - sleep(0.01) + sleep(0.015) end end end @@ -92,7 +92,7 @@ def run_test(filename) b = (/[\s]*MD[\s]*=[\s]*([0-9a-fA-F]*).*/.match(avr_md))[1]; a.upcase! b.upcase! - printf("\n%4d: ", line) if (pos%$linewidth==0 and $linewidth!=0) + printf("\n%4d (%4d): ", line, (line-1)*$linewidth) if (pos%$linewidth==0 and $linewidth!=0) line += 1 if (pos%$linewidth==0 and $linewidth!=0) #putc((a==b)?'*':'!') if(a==b)