diff --git a/tests/googletest b/tests/googletest new file mode 160000 index 00000000..9a32aee2 --- /dev/null +++ b/tests/googletest @@ -0,0 +1 @@ +Subproject commit 9a32aee22d771387c494be2d8519fbdf46a713b2 diff --git a/tests/test_volk_32fc_x2_multiply_32fc.cc b/tests/test_volk_32fc_x2_multiply_32fc.cc index 77daebeb..f23131d3 100644 --- a/tests/test_volk_32fc_x2_multiply_32fc.cc +++ b/tests/test_volk_32fc_x2_multiply_32fc.cc @@ -51,6 +51,7 @@ class volk_32fc_x2_multiply_32fc_test : public VolkTest { volk_32fc_x2_multiply_32fc_manual( result.data(), vec0.data(), vec1.data(), vector_length, impl_name.c_str()); + EXPECT_TRUE(AreComplexFloatingPointArraysAlmostEqual(expected, result)); } void execute_unaligned(const std::string impl_name) @@ -91,6 +92,9 @@ TEST_P(volk_32fc_x2_multiply_32fc_test, aligned) TEST_P(volk_32fc_x2_multiply_32fc_test, unaligned) { for (auto name : unaligned_impl_names) { + RecordProperty("aligned", false); + RecordProperty("implementation", name); + RecordProperty("size", vector_length); fmt::print( "test unaligned implementation: {:>12}, size={} ...", name, vector_length); auto start = std::chrono::steady_clock::now(); @@ -106,4 +110,9 @@ TEST_P(volk_32fc_x2_multiply_32fc_test, unaligned) INSTANTIATE_TEST_SUITE_P(volk_32fc_x2_multiply_32fc, volk_32fc_x2_multiply_32fc_test, - testing::Values(7, 32, 128, 1023, 131071)); + testing::Values(7, 32, 128, 1023, 131071), + testing::PrintToStringParamName() + // [](const testing::TestParamInfo& info) { + // return fmt::format("{}", info.param); + // } + ); diff --git a/tests/volk_test.cc b/tests/volk_test.cc index ac580b40..d53f651a 100644 --- a/tests/volk_test.cc +++ b/tests/volk_test.cc @@ -12,6 +12,7 @@ #include #include #include +#include template