X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fshavs_test2.rb;h=ab901927b4f5a4ec2bb4eec7d92f4506d05e8303;hb=7b5401ab9ce23a5da1de8b6c7de3a1aa20ac4cf8;hp=18b547ae12171f770ab5a6127f61ec8bee1b55af;hpb=c88d9d78db096516eb8aa2aff12c8db1f590738b;p=avr-crypto-lib.git diff --git a/host/shavs_test2.rb b/host/shavs_test2.rb index 18b547a..ab90192 100644 --- a/host/shavs_test2.rb +++ b/host/shavs_test2.rb @@ -94,10 +94,10 @@ end def init_system(algo_select) $sp.print("echo off \r") print("DBG i: " + "echo off \r"+"\n") if $debug - sleep 1 + sleep 0.1 $sp.print("shavs_set #{algo_select}\r") print("DBG i: " + "shavs_set #{$algo_select} \r"+"\n") if $debug - sleep 1 + sleep 0.1 $sp.print("shavs_test1 \r") print("DBG i: " + "shavs_test1 \r"+"\n") if $debug begin @@ -205,7 +205,7 @@ end # MAIN # ################################################################################ -opts = Getopt::Std.getopts("s:f:i:hdca") +opts = Getopt::Std.getopts("s:f:i:j:hdca") conf = Hash.new conf = readconfigfile("/etc/testport.conf", conf) @@ -266,6 +266,7 @@ algo_tasks.each do |algoa| next else i=0 + i = opts["j"] if opts["j"] logfile=File.open(conf["PORT"]["testlogbase"]+algo+".txt", "a") while conf[algo]["file_#{i}"] != nil puts("Testing #{algo} with #{conf[algo]["file_#{i}"]}")