From 7f15251e2fd6c729a1d8f4f524a4bb902c30cdad Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 16 Dec 2019 19:59:52 +0000 Subject: COMPMID-2986: Extend test framework options. Add the following option to the test framework: - delay: Allows run delay between tests in seconds. Signed-off-by: Georgios Pinitas Change-Id: Ib1b7a1d1ad83c9a99b23f353b1800db075b32bce Reviewed-on: https://review.mlplatform.org/c/2525 Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins --- tests/benchmark_examples/RunExample.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/benchmark_examples') diff --git a/tests/benchmark_examples/RunExample.cpp b/tests/benchmark_examples/RunExample.cpp index f3de308bef..613e985707 100644 --- a/tests/benchmark_examples/RunExample.cpp +++ b/tests/benchmark_examples/RunExample.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -156,7 +156,13 @@ int run_example(int argc, char **argv, std::unique_ptr example) } } - framework.init(options.instruments->value(), options.iterations->value(), framework::DatasetMode::ALL, "", "", options.log_level->value()); + // Initialize framework + framework::FrameworkConfig fconfig; + fconfig.instruments = options.instruments->value(); + fconfig.num_iterations = options.iterations->value(); + fconfig.log_level = options.log_level->value(); + framework.init(fconfig); + for(auto &p : printers) { framework.add_printer(p.get()); -- cgit v1.2.1