aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/ExecutionFrameTest.cpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2021-06-10 18:24:34 +0100
committerSadik Armagan <sadik.armagan@arm.com>2021-06-11 10:33:16 +0000
commit1625efc870f1a8b7c6e6382277ddbb245f91a294 (patch)
tree39fbbaa15ed7eb81337b082c2d20b0af68b91c02 /src/armnn/test/ExecutionFrameTest.cpp
parent958e0ba61e940a8d11955cf2a10f681c7c47e1fa (diff)
downloadarmnn-1625efc870f1a8b7c6e6382277ddbb245f91a294.tar.gz
IVGCVSW-5963 'Move unit tests to new framework'
* Used doctest in ArmNN unit tests Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ia9cf5fc72775878885c5f864abf2c56b3a935f1a
Diffstat (limited to 'src/armnn/test/ExecutionFrameTest.cpp')
-rw-r--r--src/armnn/test/ExecutionFrameTest.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/armnn/test/ExecutionFrameTest.cpp b/src/armnn/test/ExecutionFrameTest.cpp
index c3480217a8..59accb45b7 100644
--- a/src/armnn/test/ExecutionFrameTest.cpp
+++ b/src/armnn/test/ExecutionFrameTest.cpp
@@ -3,7 +3,7 @@
// SPDX-License-Identifier: MIT
//
-#include <boost/test/unit_test.hpp>
+#include <doctest/doctest.h>
#include <ExecutionFrame.hpp>
@@ -14,7 +14,9 @@
// B
// |
// C
-BOOST_AUTO_TEST_CASE(NextExecutionFrameTest)
+TEST_SUITE("NextExecutionFrameTestSuite")
+{
+TEST_CASE("NextExecutionFrameTest")
{
armnn::ExecutionFrame executionFrameA;
armnn::ExecutionFrame executionFrameB;
@@ -28,11 +30,12 @@ BOOST_AUTO_TEST_CASE(NextExecutionFrameTest)
auto nextExecutionFrameB = executionFrameB.ExecuteWorkloads(&executionFrameA);
auto nextExecutionFrameC = executionFrameC.ExecuteWorkloads(&executionFrameB);
- BOOST_CHECK_EQUAL(nextExecutionFrameA, &executionFrameB);
- BOOST_CHECK_EQUAL(nextExecutionFrameB, &executionFrameC);
+ CHECK_EQ(nextExecutionFrameA, &executionFrameB);
+ CHECK_EQ(nextExecutionFrameB, &executionFrameC);
- BOOST_CHECK(!nextExecutionFrameC);
+ CHECK(!nextExecutionFrameC);
- BOOST_CHECK_NE(nextExecutionFrameA, &executionFrameC);
+ CHECK_NE(nextExecutionFrameA, &executionFrameC);
+}
}