-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move aio module from src/core/aio to src/aio (#533)
- Loading branch information
Showing
22 changed files
with
89 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ set(MY_PROJ_LIBS dsn_runtime) | |
set(MY_BINPLACES "") | ||
|
||
dsn_add_static_library() | ||
|
||
add_subdirectory(tests) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
set(MY_PROJ_NAME dsn_aio_test) | ||
|
||
# Source files under CURRENT project directory will be automatically included. | ||
# You can manually set MY_PROJ_SRC to include source files under other directories. | ||
set(MY_PROJ_SRC "") | ||
|
||
# Search mode for source files under CURRENT project directory? | ||
# "GLOB_RECURSE" for recursive search | ||
# "GLOB" for non-recursive search | ||
set(MY_SRC_SEARCH_MODE "GLOB") | ||
|
||
set(MY_PROJ_LIBS gtest dsn_runtime dsn_aio) | ||
|
||
set(MY_BOOST_LIBS Boost::system Boost::filesystem) | ||
|
||
# Extra files that will be installed | ||
set(MY_BINPLACES | ||
"${CMAKE_CURRENT_SOURCE_DIR}/config.ini" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/clear.sh" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/run.sh" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/copy_source.txt" | ||
) | ||
|
||
dsn_add_test() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
rm -rf data dsn_aio_test.xml copy_dest.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[apps..default] | ||
run = true | ||
count = 1 | ||
|
||
[apps.mimic] | ||
type = dsn.app.mimic | ||
arguments = | ||
ports = 20101 | ||
pools = THREAD_POOL_DEFAULT, THREAD_POOL_TEST_SERVER | ||
run = true | ||
count = 1 | ||
|
||
[threadpool.THREAD_POOL_TEST_SERVER] | ||
partitioned = false | ||
|
||
[core] | ||
enable_default_app_mimic = true | ||
tool = nativerun | ||
pause_on_start = false | ||
logging_start_level = LOG_LEVEL_DEBUG | ||
logging_factory_name = dsn::tools::simple_logger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
help | ||
help engine | ||
help unexist-cmd | ||
engine | ||
task-code | ||
config-dump config-dump.ini | ||
test-cmd this is test argument | ||
unexist-cmd arg1 arg2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) 2017-present, Xiaomi, Inc. All rights reserved. | ||
// This source code is licensed under the Apache License Version 2.0, which | ||
// can be found in the LICENSE file in the root directory of this source tree. | ||
|
||
#include <gtest/gtest.h> | ||
#include <dsn/service_api_cpp.h> | ||
|
||
GTEST_API_ int main(int argc, char **argv) | ||
{ | ||
testing::InitGoogleTest(&argc, argv); | ||
dsn_run_config("config.ini", false); | ||
return RUN_ALL_TESTS(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "${REPORT_DIR}" ]; then | ||
REPORT_DIR="." | ||
fi | ||
|
||
./clear.sh | ||
output_xml="${REPORT_DIR}/dsn_aio_test.xml" | ||
GTEST_OUTPUT="xml:${output_xml}" ./dsn_aio_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
rm -rf core* log.* nfs_test_dir* *.tmp command.copy.txt data | ||
rm -rf core* log.* nfs_test_dir* *.tmp data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters