From d0b2ab0f29e0db0d544c198a412e8dccda8dcb83 Mon Sep 17 00:00:00 2001 From: Vladyslav Usenko Date: Fri, 7 Jun 2019 16:25:21 +0200 Subject: [PATCH] switched to other test discovery --- test/CMakeLists.txt | 13 +++++++++---- test/src/test_vio.cpp | 8 ++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 052b543..e42737a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -22,7 +22,12 @@ enable_testing() include(GoogleTest) -gtest_discover_tests(test_image DISCOVERY_TIMEOUT 60) -gtest_discover_tests(test_spline_opt DISCOVERY_TIMEOUT 60) -gtest_discover_tests(test_vio DISCOVERY_TIMEOUT 60) -gtest_discover_tests(test_nfr DISCOVERY_TIMEOUT 60) +#gtest_discover_tests(test_image DISCOVERY_TIMEOUT 60) +#gtest_discover_tests(test_spline_opt DISCOVERY_TIMEOUT 60) +#gtest_discover_tests(test_vio DISCOVERY_TIMEOUT 60) +#gtest_discover_tests(test_nfr DISCOVERY_TIMEOUT 60) + +gtest_add_tests(TARGET test_image AUTO) +gtest_add_tests(TARGET test_spline_opt AUTO) +gtest_add_tests(TARGET test_vio AUTO) +gtest_add_tests(TARGET test_nfr AUTO) diff --git a/test/src/test_vio.cpp b/test/src/test_vio.cpp index 68b9a90..7f72f65 100644 --- a/test/src/test_vio.cpp +++ b/test/src/test_vio.cpp @@ -21,7 +21,7 @@ std::mt19937 gen{rd()}; std::normal_distribution<> gyro_noise_dist{0, gyro_std_dev}; std::normal_distribution<> accel_noise_dist{0, accel_std_dev}; -TEST(PreIntegrationTestSuite, ImuNullspace2Test) { +TEST(VioTestSuite, ImuNullspace2Test) { int num_knots = 15; Eigen::Vector3d bg, ba; @@ -146,7 +146,7 @@ TEST(PreIntegrationTestSuite, ImuNullspace2Test) { EXPECT_LE(std::abs(null_res[5]), 1e-6); } -TEST(PreIntegrationTestSuite, ImuNullspace3Test) { +TEST(VioTestSuite, ImuNullspace3Test) { int num_knots = 15; Eigen::Vector3d bg, ba; @@ -287,7 +287,7 @@ TEST(PreIntegrationTestSuite, ImuNullspace3Test) { EXPECT_LE(std::abs(null_res[5]), 1e-6); } -TEST(PreIntegrationTestSuite, RelPoseTest) { +TEST(VioTestSuite, RelPoseTest) { Sophus::SE3d T_w_i_h = Sophus::expd(Sophus::Vector6d::Random()); Sophus::SE3d T_w_i_t = Sophus::expd(Sophus::Vector6d::Random()); @@ -335,7 +335,7 @@ TEST(PreIntegrationTestSuite, RelPoseTest) { } } -TEST(PreIntegrationTestSuite, LinearizePointsTest) { +TEST(VioTestSuite, LinearizePointsTest) { basalt::ExtendedUnifiedCamera cam = basalt::ExtendedUnifiedCamera::getTestProjections()[0];