diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2021-06-10 18:24:34 +0100 |
---|---|---|
committer | Sadik Armagan <sadik.armagan@arm.com> | 2021-06-11 10:33:16 +0000 |
commit | 1625efc870f1a8b7c6e6382277ddbb245f91a294 (patch) | |
tree | 39fbbaa15ed7eb81337b082c2d20b0af68b91c02 /src/armnnOnnxParser/test/ProtoxtFixture.cpp | |
parent | 958e0ba61e940a8d11955cf2a10f681c7c47e1fa (diff) | |
download | armnn-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/armnnOnnxParser/test/ProtoxtFixture.cpp')
-rw-r--r-- | src/armnnOnnxParser/test/ProtoxtFixture.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/armnnOnnxParser/test/ProtoxtFixture.cpp b/src/armnnOnnxParser/test/ProtoxtFixture.cpp index 917f6f036b..067b440990 100644 --- a/src/armnnOnnxParser/test/ProtoxtFixture.cpp +++ b/src/armnnOnnxParser/test/ProtoxtFixture.cpp @@ -3,12 +3,11 @@ // SPDX-License-Identifier: MIT // -#include <boost/test/unit_test.hpp> #include "armnnOnnxParser/IOnnxParser.hpp" #include "ParserPrototxtFixture.hpp" -BOOST_AUTO_TEST_SUITE(OnnxParser) - +TEST_SUITE("OnnxParser_PrototxtFixture") +{ struct ProtoxtTestFixture : public armnnUtils::ParserPrototxtFixture<armnnOnnxParser::IOnnxParser> { ProtoxtTestFixture() @@ -65,17 +64,17 @@ struct ProtoxtTestFixture : public armnnUtils::ParserPrototxtFixture<armnnOnnxPa }; -BOOST_FIXTURE_TEST_CASE(ProtoxtTest, ProtoxtTestFixture) +TEST_CASE_FIXTURE(ProtoxtTestFixture, "ProtoxtTest") { //TODO : add a test to check if the inputs and outputs are correctly inferred. } -BOOST_FIXTURE_TEST_CASE(ProtoxtTestWithBadInputs, ProtoxtTestFixture) +TEST_CASE_FIXTURE(ProtoxtTestFixture, "ProtoxtTestWithBadInputs") { - // BOOST_CHECK_THROW(RunTest<4>({{ "InexistantInput" , {0.0, 1.0, 2.0, 3.0}}}, + // CHECK_THROWS_AS(RunTest<4>({{ "InexistantInput" , {0.0, 1.0, 2.0, 3.0}}}, // {{ "InexistantOutput" , {0.0, 1.0, 2.0, 3.0}}}), // armnn::InvalidArgumentException ); } -BOOST_AUTO_TEST_SUITE_END() +} |