aboutsummaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-08-23 15:44:20 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit1fa17c2edc51e53c6bd388b332d825208f6562e8 (patch)
treec190ad30c3b23c20eac2b9bfa708c3e7fd9b4fa8 /tests/main.cpp
parentcedb78f24d68a5f4ad3483d21c14798653705f2f (diff)
downloadComputeLibrary-1fa17c2edc51e53c6bd388b332d825208f6562e8.tar.gz
COMPMID-1246: Print arguments passed to the tests / benchmarks
Change-Id: I2f872a34b37e3b667881045d60bd49f148ea4db6 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145424 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index f57b206e5a..13f5aff14a 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -53,6 +53,18 @@
using namespace arm_compute;
using namespace arm_compute::test;
+namespace
+{
+std::string command_line(int argc, char **argv)
+{
+ std::stringstream ss;
+ for(int i = 0; i < argc; i++)
+ {
+ ss << argv[i] << " ";
+ }
+ return ss.str();
+}
+} // namespace
namespace arm_compute
{
namespace test
@@ -168,6 +180,7 @@ int main(int argc, char **argv)
for(auto &p : printers)
{
p->print_entry("Version", build_information());
+ p->print_entry("CommandLine", command_line(argc, argv));
p->print_entry("Seed", support::cpp11::to_string(seed->value()));
#ifdef ARM_COMPUTE_CL
if(opencl_is_available())