From 9150bff63a690caa743c471943afe509ebed1044 Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Wed, 26 May 2021 15:40:53 +0100 Subject: IVGCVSW-4618 'Transition Units Test Suites' * Used doctest in android-nn-driver unit tests. Signed-off-by: Sadik Armagan Change-Id: I9b5d4dfd77d53c7ebee7f8c43628a1d6ff74d1a3 --- test/Concurrent.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'test/Concurrent.cpp') diff --git a/test/Concurrent.cpp b/test/Concurrent.cpp index 50ba0e9f..2ea6eb06 100644 --- a/test/Concurrent.cpp +++ b/test/Concurrent.cpp @@ -6,12 +6,11 @@ #include "../1.0/HalPolicy.hpp" -#include - +#include #include -BOOST_AUTO_TEST_SUITE(ConcurrentDriverTests) - +TEST_SUITE("ConcurrentDriverTests") +{ using ArmnnDriver = armnn_driver::ArmnnDriver; using DriverOptions = armnn_driver::DriverOptions; using HalPolicy = armnn_driver::hal_1_0::HalPolicy; @@ -26,7 +25,7 @@ using namespace armnn_driver; // The main point of this test is to check that multiple requests can be // executed without waiting for the callback from previous execution. // The operations performed are not significant. -BOOST_AUTO_TEST_CASE(ConcurrentExecute) +TEST_CASE("ConcurrentExecute") { ALOGI("ConcurrentExecute: entry"); @@ -64,7 +63,7 @@ BOOST_AUTO_TEST_CASE(ConcurrentExecute) } } - BOOST_TEST(maxRequests == preparedModelsSize); + CHECK(maxRequests == preparedModelsSize); // construct the request data V1_0::DataLocation inloc = {}; @@ -119,9 +118,9 @@ BOOST_AUTO_TEST_CASE(ConcurrentExecute) ALOGI("ConcurrentExecute: validating results"); for (size_t i = 0; i < maxRequests; ++i) { - BOOST_TEST(outdata[i][0] == 152); + CHECK(outdata[i][0] == 152); } ALOGI("ConcurrentExecute: exit"); } -BOOST_AUTO_TEST_SUITE_END() +} -- cgit v1.2.1