Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

http: move http as a submodule of dist #266

Merged
merged 2 commits into from
Jul 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ echo "################################# start testing ##########################
if [ -z "$TEST_MODULE" ]
then
# supported test module
TEST_MODULE="dsn.core.tests,dsn.tests,dsn_nfs_test,dsn.replication.simple_kv,dsn.rep_tests.simple_kv,dsn.meta.test,dsn.replica.test"
TEST_MODULE="dsn.core.tests,dsn.tests,dsn_nfs_test,dsn.replication.simple_kv,dsn.rep_tests.simple_kv,dsn.meta.test,dsn.replica.test,dsn_http_test"
fi

echo "TEST_MODULE=$TEST_MODULE"
Expand Down
1 change: 0 additions & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ add_library(dsn_runtime STATIC
$<TARGET_OBJECTS:dsn.tools.common>
$<TARGET_OBJECTS:dsn.tools.hpc>
$<TARGET_OBJECTS:dsn.tools.simulator>
$<TARGET_OBJECTS:dsn.tools.http>
)
install(TARGETS dsn_runtime DESTINATION "lib")
1 change: 0 additions & 1 deletion src/core/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
add_subdirectory(common)
add_subdirectory(simulator)
add_subdirectory(hpc)
add_subdirectory(http)
1 change: 1 addition & 0 deletions src/dist/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ add_subdirectory(failure_detector_multimaster)
add_subdirectory(block_service)
add_subdirectory(nfs)
add_subdirectory(cli)
add_subdirectory(http)
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
set(MY_PROJ_NAME dsn.tools.http)
set(MY_PROJ_NAME dsn_http)

set(MY_PROJ_SRC "")

set(MY_SRC_SEARCH_MODE "GLOB")

set(MY_PROJ_LIBS "")

dsn_add_object()
dsn_add_static_library()

add_subdirectory(test)
19 changes: 19 additions & 0 deletions src/dist/http/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
set(MY_PROJ_NAME dsn_http_test)

set(MY_PROJ_SRC "")

set(MY_SRC_SEARCH_MODE "GLOB")

set(MY_PROJ_LIBS
dsn_http
gtest
gtest_main
)

set(MY_BOOST_PACKAGES system filesystem)

set(MY_BINPLACES
"${CMAKE_CURRENT_SOURCE_DIR}/run.sh"
)

dsn_add_test()
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <dsn/tool-api/http_server.h>
#include <gtest/gtest.h>

#include "core/tools/http/http_message_parser.h"
#include "dist/http/http_message_parser.h"

namespace dsn {

Expand Down
8 changes: 8 additions & 0 deletions src/dist/http/test/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

if [ -z "${REPORT_DIR}" ]; then
REPORT_DIR="."
fi

output_xml="${REPORT_DIR}/dsn_http_test.xml"
GTEST_OUTPUT="xml:${output_xml}" ./dsn_http_test
1 change: 1 addition & 0 deletions src/dist/replication/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ set(MY_PROJ_LIBS
dsn.failure_detector.multimaster
dsn_nfs
dsn_cli
dsn_http
)

set(MY_PROJ_LIB_PATH "")
Expand Down
1 change: 1 addition & 0 deletions src/dist/replication/meta_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set(MY_PROJ_LIBS
dsn.failure_detector
dsn.replication.zookeeper_provider
dsn_cli
dsn_http
zookeeper_mt
galaxy-fds-sdk-cpp
PocoNet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set(MY_PROJ_LIBS dsn.replication.zookeeper_provider
dsn.block_service.fds
dsn.failure_detector
dsn_cli
dsn_http
zookeeper_mt
galaxy-fds-sdk-cpp
PocoNet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set(MY_PROJ_LIBS dsn_meta_server
dsn.block_service.local
dsn.block_service.fds
dsn.failure_detector
dsn_http
zookeeper_mt
galaxy-fds-sdk-cpp
PocoNet
Expand Down