Skip to content

Commit

Permalink
core: remove useless test suites (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
shengofsun authored and qinzuoyan committed Jul 13, 2018
1 parent 392ac59 commit 2ad8cf6
Show file tree
Hide file tree
Showing 97 changed files with 1 addition and 4,766 deletions.
193 changes: 0 additions & 193 deletions include/dsn/cpp/perf_test_helper.h

This file was deleted.

1 change: 0 additions & 1 deletion include/dsn/service_api_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@
#include <dsn/cpp/serverlet.h>
#include <dsn/cpp/service_app.h>
#include <dsn/tool-api/rpc_address.h>
#include <dsn/cpp/perf_test_helper.h>
42 changes: 0 additions & 42 deletions src/apps/echo/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ delay_seconds = 0
; path of a dynamic library which implement this app role, and register itself upon loaded
dmodule =

;

; thread pools need to be started
pools = THREAD_POOL_DEFAULT

Expand All @@ -52,34 +50,6 @@ run = true
type = client


[apps.client.perf.echo]
; arguments for the app instances
arguments = localhost 27001

; count of app instances for this type (ports are automatically calculated accordingly to avoid confliction)
count = 1

; delay seconds for when the apps should be started
delay_seconds = 0

; path of a dynamic library which implement this app role, and register itself upon loaded
dmodule =

;

; thread pools need to be started
pools = THREAD_POOL_DEFAULT

; RPC server listening ports needed for this app
ports =

; whether to run the app instances or not
run = true

; app type name, as given when registering by dsn_register_app_role
type = client.perf.echo


[apps.server]
; arguments for the app instances
arguments =
Expand All @@ -93,8 +63,6 @@ delay_seconds = 0
; path of a dynamic library which implement this app role, and register itself upon loaded
dmodule =

;

; thread pools need to be started
pools = THREAD_POOL_DEFAULT

Expand Down Expand Up @@ -154,7 +122,6 @@ logging_start_level = LOG_LEVEL_WARNING

; logging provider
; logging_factory_name = dsn::tools::screen_logger
; logging_factory_name = dsn::tools::hpc_tail_logger
logging_factory_name = dsn::tools::simple_logger

; memory management provider
Expand Down Expand Up @@ -228,12 +195,6 @@ is_profile = true
;
is_trace = true

; byte size of each rpc request test
perf_test_payload_bytes =

; timeout (ms) for each rpc call
perf_test_timeouts_ms =

; thread pool to execute the task
pool_code =

Expand Down Expand Up @@ -436,7 +397,6 @@ rpc_timeout_milliseconds = 5000
; whether the task can be executed inlined with the caller task
allow_inline = false


;
is_profile = false

Expand Down Expand Up @@ -507,10 +467,8 @@ allow_inline = false


; byte size of each rpc request test
perf_test_payload_bytes =

; timeout (ms) for each rpc call
perf_test_timeouts_ms =

; thread pool to execute the task
pool_code =
Expand Down
38 changes: 0 additions & 38 deletions src/apps/echo/echo.app.example.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#pragma once
#include <dsn/tool-api/task_tracker.h>
#include "echo.client.h"
#include "echo.client.perf.h"
#include "echo.server.h"

namespace dsn {
Expand Down Expand Up @@ -111,42 +110,5 @@ class echo_client_app : public ::dsn::service_app

std::unique_ptr<echo_client> _echo_client;
};

class echo_perf_test_client_app : public ::dsn::service_app
{
public:
echo_perf_test_client_app(const service_app_info *info) : ::dsn::service_app(info)
{
_echo_client = nullptr;
}

~echo_perf_test_client_app() { stop(); }

virtual ::dsn::error_code start(const std::vector<std::string> &args)
{
if (args.size() < 2)
return ::dsn::ERR_INVALID_PARAMETERS;

_server.assign_ipv4(args[1].c_str(), (uint16_t)atoi(args[2].c_str()));

_echo_client = new echo_perf_test_client(_server);
_echo_client->start_test("echo.perf-test.case", 1);
return ::dsn::ERR_OK;
}

virtual ::dsn::error_code stop(bool cleanup = false)
{
if (_echo_client != nullptr) {
delete _echo_client;
_echo_client = nullptr;
}

return ::dsn::ERR_OK;
}

private:
echo_perf_test_client *_echo_client;
::dsn::rpc_address _server;
};
}
}
Loading

0 comments on commit 2ad8cf6

Please sign in to comment.