morningman closed pull request #260: Add more BE unit run in run-ut.sh
URL: https://github.com/apache/incubator-doris/pull/260
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..34e5034
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*.swp
+*.pyc
+be/output
+be/build
+output
+docs/build
+gensrc/build
+fe/target
diff --git a/be/test/http/stream_load_test.cpp 
b/be/test/http/stream_load_test.cpp
index ca7dbb9..bc53de3 100644
--- a/be/test/http/stream_load_test.cpp
+++ b/be/test/http/stream_load_test.cpp
@@ -16,6 +16,9 @@
 #include "http/action/stream_load.h"
 
 #include <gtest/gtest.h>
+
+#include <event2/http.h>
+#include <event2/http_struct.h>
 #include <rapidjson/document.h>
 
 #include "exec/schema_scanner/frontend_helper.h"
@@ -123,6 +126,11 @@ TEST_F(StreamLoadActionTest, normal) {
     StreamLoadAction action(&env);
 
     HttpRequest request;
+
+    struct evhttp_request ev_req;
+    ev_req.remote_host = nullptr;
+    request._ev_req = &ev_req;
+
     request._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
     request._headers.emplace(HttpHeaders::CONTENT_LENGTH, "0");
     action.on_header(&request);
@@ -139,6 +147,11 @@ TEST_F(StreamLoadActionTest, put_fail) {
     StreamLoadAction action(&env);
 
     HttpRequest request;
+
+    struct evhttp_request ev_req;
+    ev_req.remote_host = nullptr;
+    request._ev_req = &ev_req;
+
     request._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
     request._headers.emplace(HttpHeaders::CONTENT_LENGTH, "16");
     Status status("TestFail");
@@ -157,6 +170,9 @@ TEST_F(StreamLoadActionTest, commit_fail) {
     StreamLoadAction action(&env);
 
     HttpRequest request;
+    struct evhttp_request ev_req;
+    ev_req.remote_host = nullptr;
+    request._ev_req = &ev_req;
     request._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
     request._headers.emplace(HttpHeaders::CONTENT_LENGTH, "16");
     Status status("TestFail");
@@ -175,6 +191,9 @@ TEST_F(StreamLoadActionTest, begin_fail) {
     StreamLoadAction action(&env);
 
     HttpRequest request;
+    struct evhttp_request ev_req;
+    ev_req.remote_host = nullptr;
+    request._ev_req = &ev_req;
     request._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
     request._headers.emplace(HttpHeaders::CONTENT_LENGTH, "16");
     Status status("TestFail");
@@ -211,6 +230,9 @@ TEST_F(StreamLoadActionTest, plan_fail) {
     StreamLoadAction action(&env);
 
     HttpRequest request;
+    struct evhttp_request ev_req;
+    ev_req.remote_host = nullptr;
+    request._ev_req = &ev_req;
     request._headers.emplace(HttpHeaders::AUTHORIZATION, "Basic cm9vdDo=");
     request._headers.emplace(HttpHeaders::CONTENT_LENGTH, "16");
     k_stream_load_plan_status = Status("TestFail");
diff --git a/run-ut.sh b/run-ut.sh
index fd72d12..9054798 100755
--- a/run-ut.sh
+++ b/run-ut.sh
@@ -141,11 +141,11 @@ ${DORIS_TEST_BINARY_DIR}/util/new_metrics_test
 ${DORIS_TEST_BINARY_DIR}/util/palo_metrics_test
 ${DORIS_TEST_BINARY_DIR}/util/system_metrics_test
 ${DORIS_TEST_BINARY_DIR}/util/core_local_test
-# ${DORIS_TEST_BINARY_DIR}/util/arena_test
-# ${DORIS_TEST_BINARY_DIR}/util/types_test
-# ${DORIS_TEST_BINARY_DIR}/util/json_util_test
-# ${DORIS_TEST_BINARY_DIR}/util/byte_buffer_test2
-# ${DORIS_TEST_BINARY_DIR}/util/uid_util_test
+${DORIS_TEST_BINARY_DIR}/util/arena_test
+${DORIS_TEST_BINARY_DIR}/util/types_test
+${DORIS_TEST_BINARY_DIR}/util/json_util_test
+${DORIS_TEST_BINARY_DIR}/util/byte_buffer_test2
+${DORIS_TEST_BINARY_DIR}/util/uid_util_test
 
 ## Running common Unittest
 ${DORIS_TEST_BINARY_DIR}/common/resource_tls_test
@@ -156,10 +156,10 @@ 
${DORIS_TEST_BINARY_DIR}/exec/plain_text_line_reader_gzip_test
 ${DORIS_TEST_BINARY_DIR}/exec/plain_text_line_reader_bzip_test
 ${DORIS_TEST_BINARY_DIR}/exec/plain_text_line_reader_lz4frame_test
 ${DORIS_TEST_BINARY_DIR}/exec/plain_text_line_reader_lzop_test
-# ${DORIS_TEST_BINARY_DIR}/exec/broker_scanner_test
-# ${DORIS_TEST_BINARY_DIR}/exec/broker_scan_node_test
-# ${DORIS_TEST_BINARY_DIR}/exec/olap_table_info_test
-# ${DORIS_TEST_BINARY_DIR}/exec/olap_table_sink_test
+${DORIS_TEST_BINARY_DIR}/exec/broker_scanner_test
+${DORIS_TEST_BINARY_DIR}/exec/broker_scan_node_test
+${DORIS_TEST_BINARY_DIR}/exec/olap_table_info_test
+${DORIS_TEST_BINARY_DIR}/exec/olap_table_sink_test
 
 ## Running runtime Unittest
 ${DORIS_TEST_BINARY_DIR}/runtime/fragment_mgr_test
@@ -169,18 +169,17 @@ ${DORIS_TEST_BINARY_DIR}/runtime/large_int_value_test
 ${DORIS_TEST_BINARY_DIR}/runtime/string_value_test
 ${DORIS_TEST_BINARY_DIR}/runtime/free_list_test
 ${DORIS_TEST_BINARY_DIR}/runtime/string_buffer_test
-# ${DORIS_TEST_BINARY_DIR}/runtime/stream_load_pipe_test
-# ${DORIS_TEST_BINARY_DIR}/runtime/tablet_writer_mgr_test
+${DORIS_TEST_BINARY_DIR}/runtime/stream_load_pipe_test
+${DORIS_TEST_BINARY_DIR}/runtime/tablet_writer_mgr_test
 ## Running expr Unittest
 ${DORIS_TEST_BINARY_DIR}/runtime/snapshot_loader_test
 
 # Running http
 ${DORIS_TEST_BINARY_DIR}/http/metrics_action_test
-# ${DORIS_TEST_BINARY_DIR}/http/http_utils_test
-#${DORIS_TEST_BINARY_DIR}/http/stream_load_test
+${DORIS_TEST_BINARY_DIR}/http/http_utils_test
+${DORIS_TEST_BINARY_DIR}/http/stream_load_test
 
 # Running OLAPEngine Unittest
-#${DORIS_TEST_BINARY_DIR}/olap/command_executor_test
 ${DORIS_TEST_BINARY_DIR}/olap/bit_field_test
 ${DORIS_TEST_BINARY_DIR}/olap/byte_buffer_test
 ${DORIS_TEST_BINARY_DIR}/olap/run_length_byte_test
@@ -195,14 +194,14 @@ ${DORIS_TEST_BINARY_DIR}/olap/in_list_predicate_test
 ${DORIS_TEST_BINARY_DIR}/olap/null_predicate_test
 ${DORIS_TEST_BINARY_DIR}/olap/file_helper_test
 ${DORIS_TEST_BINARY_DIR}/olap/file_utils_test
-# ${DORIS_TEST_BINARY_DIR}/olap/delete_handler_test
-# ${DORIS_TEST_BINARY_DIR}/olap/column_reader_test
-# ${DORIS_TEST_BINARY_DIR}/olap/row_cursor_test
-# ${DORIS_TEST_BINARY_DIR}/olap/skiplist_test
-# ${DORIS_TEST_BINARY_DIR}/olap/serialize_test
-# ${DORIS_TEST_BINARY_DIR}/olap/olap_header_manager_test
-# ${DORIS_TEST_BINARY_DIR}/olap/olap_meta_test
-# ${DORIS_TEST_BINARY_DIR}/olap/delta_writer_test
+${DORIS_TEST_BINARY_DIR}/olap/delete_handler_test
+${DORIS_TEST_BINARY_DIR}/olap/column_reader_test
+${DORIS_TEST_BINARY_DIR}/olap/row_cursor_test
+${DORIS_TEST_BINARY_DIR}/olap/skiplist_test
+${DORIS_TEST_BINARY_DIR}/olap/serialize_test
+${DORIS_TEST_BINARY_DIR}/olap/olap_header_manager_test
+${DORIS_TEST_BINARY_DIR}/olap/olap_meta_test
+${DORIS_TEST_BINARY_DIR}/olap/delta_writer_test
 
 ## Running agent unittest
 # Prepare agent testdata


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to