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