aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
Diffstat (limited to 'checks')
-rw-r--r--checks/check.cpp14
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");