From 1b387c896e528b8c41da2808a992318b3de65ca4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=EC=A7=80=EC=98=81/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 1 Jul 2019 12:44:43 +0900 Subject: [PATCH] [kbenchmark] Separate the result file if it is not html reporter type (#5361) This patch separates the result files if it is not html reporter type. Becuase other reporters store only one test result in one file. Signed-off-by: Jiyoung Yun --- tools/kbenchmark/Driver.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/kbenchmark/Driver.cc b/tools/kbenchmark/Driver.cc index 006fe9e..376a851 100644 --- a/tools/kbenchmark/Driver.cc +++ b/tools/kbenchmark/Driver.cc @@ -106,6 +106,7 @@ int main(int argc, char *argv[]) cfg.verbose = args.verbose(); cfg.title = test_name; cfg.output_file = test_name + ext; + cfg.summary = true; // Create ConfigFile object from config file ConfigFile cf(args.config()); @@ -121,6 +122,13 @@ int main(int argc, char *argv[]) { for (auto &c : cf) { + if (reporter != "html") + { + std::string temp_name{test_name + std::string{"_"} + std::to_string(c.first)}; + cfg.title = temp_name; + cfg.output_file = temp_name + ext; + } + nonius::parameters op_params = opl[cf.name()]->params(c.second); cfg.params.map = cfg.params.map.merged(op_params); -- 2.7.4