[refactor] Unify all unit tests into one binary file (#8958)

1. solved the previous delayed unit test file size is too large (1.7G+) and the unit test link time is too long problem problems
2. Unify all unit tests into one file to significantly reduce unit test execution time to less than 3 mins
3. temporarily disable stream_load_test.cpp, metrics_action_test.cpp, load_channel_mgr_test.cpp because it will re-implement part of the code and affect other tests
This commit is contained in:
Zhengguo Yang
2022-04-12 15:30:40 +08:00
committed by GitHub
parent 66d2f4e1fd
commit 5a44eeaf62
349 changed files with 11447 additions and 14604 deletions

View File

@ -64,7 +64,7 @@ TEST_F(QuantileStateFunctionsTest, to_quantile_state) {
DoubleQuantileState state(compression);
state.add_value(5000);
StringVal expected = convert_quantile_state_to_string(ctx, state);
ASSERT_EQ(expected, result);
EXPECT_EQ(expected, result);
}
TEST_F(QuantileStateFunctionsTest, quantile_union) {
@ -105,7 +105,7 @@ TEST_F(QuantileStateFunctionsTest, quantile_union) {
StringVal result = QuantileStateFunctions::quantile_state_serialize(ctx, dst);
StringVal expected = convert_quantile_state_to_string(ctx, expect);
ASSERT_EQ(result, expected);
EXPECT_EQ(result, expected);
}
TEST_F(QuantileStateFunctionsTest, quantile_percent) {
@ -124,12 +124,7 @@ TEST_F(QuantileStateFunctionsTest, quantile_percent) {
StringVal input = convert_quantile_state_to_string(ctx, state);
DoubleVal result = QuantileStateFunctions::quantile_percent(ctx, input);
DoubleVal expected(3);
ASSERT_EQ(result, expected);
EXPECT_EQ(result, expected);
}
} // namespace doris
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}