]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - host/shavs_test2.rb
clean up
[avr-crypto-lib.git] / host / shavs_test2.rb
index 18b547ae12171f770ab5a6127f61ec8bee1b55af..ab901927b4f5a4ec2bb4eec7d92f4506d05e8303 100644 (file)
@@ -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}"]}")