Skip to content

Commit

Permalink
[sfmDataIO] unittest: add abc and check all values
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Aug 17, 2021
1 parent 2876b71 commit 3ef5de8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/aliceVision/sfmDataIO/sfmDataIO_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ BOOST_AUTO_TEST_CASE(SfMData_IO_SAVE_LOAD)
{
std::vector<std::string> ext_Type = {"sfm", "json"};

#if ALICEVISION_IS_DEFINED(ALICEVISION_HAVE_ALEMBIC)
ext_Type.push_back("abc");
#endif

for(int i = 0; i < ext_Type.size(); ++i)
{
std::ostringstream os;
Expand All @@ -105,6 +109,8 @@ BOOST_AUTO_TEST_CASE(SfMData_IO_SAVE_LOAD)
BOOST_CHECK_EQUAL(sfmDataLoad.intrinsics.size(), sfmData.intrinsics.size());
BOOST_CHECK_EQUAL(sfmDataLoad.structure.size(), sfmData.structure.size());
BOOST_CHECK_EQUAL(sfmDataLoad.control_points.size(), sfmData.control_points.size());

BOOST_CHECK(sfmData == sfmDataLoad);
}

// LOAD (only a subpart: VIEWS)
Expand Down

0 comments on commit 3ef5de8

Please sign in to comment.