diff options
author | lloyd <[email protected]> | 2006-09-26 16:11:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-26 16:11:19 +0000 |
commit | a8d24f65fbe2f5f5085ff2340d86a05b4e66d8e0 (patch) | |
tree | 7ba6c90bfdde1104b54f186d9de3be7ecb2d2746 /checks | |
parent | 5d2328198dd9264990dcc51ce0617f1a1142c4c8 (diff) |
Allow --bench-algo to take multiple arguments
Diffstat (limited to 'checks')
-rw-r--r-- | checks/check.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/checks/check.cpp b/checks/check.cpp index 0f6fc3c70..577e469c5 100644 --- a/checks/check.cpp +++ b/checks/check.cpp @@ -61,10 +61,16 @@ int main(int argc, char* argv[]) if(opts.is_set("bench-algo")) { - const std::string alg = opts.value("bench-algo"); - u32bit found = bench_algo(alg, seconds); - if(!found) // maybe it's a PK algorithm - bench_pk(alg, false, seconds); + std::vector<std::string> algs = + Botan::split_on(opts.value("bench-algo"), ','); + + for(u32bit j = 0; j != algs.size(); j++) + { + const std::string alg = algs[j]; + u32bit found = bench_algo(alg, seconds); + if(!found) // maybe it's a PK algorithm + bench_pk(alg, false, seconds); + } } const bool html = opts.is_set("html"); |