From bf0e7226ef0ba5ee3e5c7144368c4c9c379b0330 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Thu, 20 Jun 2019 17:17:45 +0100 Subject: IVGCVSW-3267 Add more code coverage to the PReLU layer * Added more unit tests to cover all code branches * Moved the InferOutput tests to separate files * Created convenience ARMNN_SIMPLE_TEST_CASE macro * Created TestUtils file for common utility functions Change-Id: Id971d3cf77005397d1f0b2783fab68b1f0bf9dfc Signed-off-by: Matteo Martincigh --- src/armnn/test/UnitTests.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/armnn/test/UnitTests.hpp') diff --git a/src/armnn/test/UnitTests.hpp b/src/armnn/test/UnitTests.hpp index 04e91ad85e..dc97f90ba9 100644 --- a/src/armnn/test/UnitTests.hpp +++ b/src/armnn/test/UnitTests.hpp @@ -73,6 +73,12 @@ void RunTestFunction(const char* testName, TFuncPtr testFunction, Args... args) CompareTestResultIfSupported(testName, testResult); } +#define ARMNN_SIMPLE_TEST_CASE(TestName, TestFunction) \ + BOOST_AUTO_TEST_CASE(TestName) \ + { \ + TestFunction(); \ + } + #define ARMNN_AUTO_TEST_CASE(TestName, TestFunction, ...) \ BOOST_AUTO_TEST_CASE(TestName) \ { \ -- cgit v1.2.1