diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/benchmark_examples/RunExample.cpp | 13 | ||||
-rw-r--r-- | tests/main.cpp | 13 | ||||
-rw-r--r-- | tests/validate_examples/RunExample.cpp | 14 |
3 files changed, 40 insertions, 0 deletions
diff --git a/tests/benchmark_examples/RunExample.cpp b/tests/benchmark_examples/RunExample.cpp index de3e796d59..9bc0e4380a 100644 --- a/tests/benchmark_examples/RunExample.cpp +++ b/tests/benchmark_examples/RunExample.cpp @@ -46,6 +46,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 utils @@ -119,6 +131,7 @@ int run_example(int argc, char **argv, std::unique_ptr<Example> example) for(auto &p : printers) { p->print_entry("Version", build_information()); + p->print_entry("CommandLine", command_line(argc, argv)); #ifdef ARM_COMPUTE_CL if(opencl_is_available()) { 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()) diff --git a/tests/validate_examples/RunExample.cpp b/tests/validate_examples/RunExample.cpp index 9ce41c2768..41ed85138e 100644 --- a/tests/validate_examples/RunExample.cpp +++ b/tests/validate_examples/RunExample.cpp @@ -60,6 +60,18 @@ namespace utils static std::unique_ptr<ValidateExample> g_example = nullptr; static std::vector<char *> g_example_argv = {}; +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(); +} + template <bool validate> class ExampleTest : public arm_compute::test::framework::TestCase { @@ -94,6 +106,7 @@ private: bool _is_setup{ false }; }; +} // namespace int run_example(int argc, char **argv, std::unique_ptr<ValidateExample> example) { utils::CommandLineParser parser; @@ -139,6 +152,7 @@ int run_example(int argc, char **argv, std::unique_ptr<ValidateExample> example) 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()) |