diff options
author | Nikolaj Jensen <nikolaj.jensen@arm.com> | 2023-07-03 09:44:42 +0100 |
---|---|---|
committer | Nikolaj Jensen <nikolaj.jensen@arm.com> | 2023-07-07 08:51:11 +0000 |
commit | acea4071a7f457bab696dc3c895ba47d60345541 (patch) | |
tree | 66a5f659f995ea110bcb8e217dc6a94e1f7ac47d /compute_kernel_writer/validation/tests/common/Common.h | |
parent | e86f992d26a79cad76244c4444d113e45afa9b88 (diff) | |
download | ComputeLibrary-acea4071a7f457bab696dc3c895ba47d60345541.tar.gz |
Fix code formatting in CKW
Signed-off-by: Nikolaj Jensen <nikolaj.jensen@arm.com>
Change-Id: I8064b345c1efd243f8bded12ed5d561afe7c339a
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9854
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/validation/tests/common/Common.h')
-rw-r--r-- | compute_kernel_writer/validation/tests/common/Common.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/compute_kernel_writer/validation/tests/common/Common.h b/compute_kernel_writer/validation/tests/common/Common.h index d33d7f6688..8573c42b88 100644 --- a/compute_kernel_writer/validation/tests/common/Common.h +++ b/compute_kernel_writer/validation/tests/common/Common.h @@ -32,32 +32,34 @@ namespace ckw { #define VALIDATE_ON_MSG(exp, msg) assert(((void)msg, exp)) -#define VALIDATE_TEST(exp, all_tests_passed, id_test) \ - do \ - { \ - if((exp) == true) \ - { \ - all_tests_passed &= true; \ +#define VALIDATE_TEST(exp, all_tests_passed, id_test) \ + do \ + { \ + if((exp) == true) \ + { \ + all_tests_passed &= true; \ const std::string msg = "TEST " + std::to_string((id_test)) + ": [PASSED]"; \ - std::cout << msg << std::endl; \ - } \ - else \ - { \ - all_tests_passed &= false; \ + std::cout << msg << std::endl; \ + } \ + else \ + { \ + all_tests_passed &= false; \ const std::string msg = "TEST " + std::to_string((id_test)) + ": [FAILED]"; \ - std::cout << msg << std::endl; \ - } \ + std::cout << msg << std::endl; \ + } \ } while(false) class ITest { public: virtual ~ITest() = default; + /** Method to run the test * * @return it returns true if all tests passed */ virtual bool run() = 0; + /** Name of the test * * @return it returns the name of the test |