From 1625efc870f1a8b7c6e6382277ddbb245f91a294 Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Thu, 10 Jun 2021 18:24:34 +0100 Subject: IVGCVSW-5963 'Move unit tests to new framework' * Used doctest in ArmNN unit tests Signed-off-by: Sadik Armagan Change-Id: Ia9cf5fc72775878885c5f864abf2c56b3a935f1a --- src/armnn/test/optimizations/MovePermuteUpTests.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/armnn/test/optimizations/MovePermuteUpTests.cpp') diff --git a/src/armnn/test/optimizations/MovePermuteUpTests.cpp b/src/armnn/test/optimizations/MovePermuteUpTests.cpp index 13c692670a..38a65a6173 100644 --- a/src/armnn/test/optimizations/MovePermuteUpTests.cpp +++ b/src/armnn/test/optimizations/MovePermuteUpTests.cpp @@ -7,12 +7,13 @@ #include -#include +#include -BOOST_AUTO_TEST_SUITE(Optimizer) +TEST_SUITE("Optimizer") +{ using namespace armnn::optimizations; -BOOST_AUTO_TEST_CASE(MovePermuteUpTest) +TEST_CASE("MovePermuteUpTest") { const armnn::TensorInfo info({ 1, 5, 2, 3 }, armnn::DataType::Float32); const armnn::TensorInfo permuted({ 1, 3, 5, 2 }, armnn::DataType::Float32); @@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE(MovePermuteUpTest) ->GetOutputHandler() .SetTensorInfo(info); - BOOST_TEST(CheckSequence(graph.cbegin(), graph.cend(), &IsLayerOfType, + CHECK(CheckSequence(graph.cbegin(), graph.cend(), &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, @@ -76,7 +77,7 @@ BOOST_AUTO_TEST_CASE(MovePermuteUpTest) armnn::Optimizer::Pass(graph, armnn::MakeOptimizations(MovePermuteUp())); // The permute is moved to the top. New permutes for layers with multiple inputs. - BOOST_TEST(CheckSequence(graph.cbegin(), graph.cend(), &IsLayerOfType, + CHECK(CheckSequence(graph.cbegin(), graph.cend(), &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, &IsLayerOfType, @@ -86,7 +87,7 @@ BOOST_AUTO_TEST_CASE(MovePermuteUpTest) std::list testRelatedLayers = { permuteLayerName }; - BOOST_TEST(CheckRelatedLayers(graph, testRelatedLayers)); + CHECK(CheckRelatedLayers(graph, testRelatedLayers)); } -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file +} \ No newline at end of file -- cgit v1.2.1