X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fshavs_test.rb;h=8405a3f9a70fdde74345155fc5b6463f744a1291;hb=ed07adb6f2aeaf61da0e482cec328120bfeb860e;hp=225c38133b0907b8723582865490f87885c18f1d;hpb=600e82c981df8a6e446c6469e7e6be627ec027de;p=avr-crypto-lib.git diff --git a/host/shavs_test.rb b/host/shavs_test.rb index 225c381..8405a3f 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.1) + sleep(0.01) end end end @@ -92,13 +92,14 @@ 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) putc('*') else putc('!') + # printf("\nshould: %s\ngot: %s\n",lb,avr_md) errors += 1; end pos += 1