From 39c3054d09961ab427bab59e53db2deebf29a54a Mon Sep 17 00:00:00 2001 From: ivanzhukov Date: Fri, 13 Jan 2017 21:26:51 +0300 Subject: [PATCH] Add base file for PerformanceTest --- dbms/src/Client/PerformanceTest.cpp | 33 +++++++++++++++++++++++++++++ dbms/src/Server/main.cpp | 4 +++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 dbms/src/Client/PerformanceTest.cpp diff --git a/dbms/src/Client/PerformanceTest.cpp b/dbms/src/Client/PerformanceTest.cpp new file mode 100644 index 00000000000..9a19db621f0 --- /dev/null +++ b/dbms/src/Client/PerformanceTest.cpp @@ -0,0 +1,33 @@ +#include + +/** Tests launcher for ClickHouse. + * The tool walks through given or default folder in order to find files with + * tests' description and launches it. + */ + +namespace DB +{ + +namespace ErrorCodes +{ + extern const int POCO_EXCEPTION; + extern const int STD_EXCEPTION; + extern const int UNKNOWN_EXCEPTION; +} + +class PerformanceTest +{ +public: + PerformanceTest() + { + // std::cerr << std::fixed << std::setprecision(3); + } + +private: +}; + +} + +int mainEntryClickhousePerformanceTest(int argc, char ** argv) { + return 0; +} diff --git a/dbms/src/Server/main.cpp b/dbms/src/Server/main.cpp index 24b728dcec5..62c411bfbdf 100644 --- a/dbms/src/Server/main.cpp +++ b/dbms/src/Server/main.cpp @@ -11,9 +11,9 @@ int mainEntryClickHouseServer(int argc, char ** argv); int mainEntryClickHouseClient(int argc, char ** argv); int mainEntryClickHouseLocal(int argc, char ** argv); int mainEntryClickHouseBenchmark(int argc, char ** argv); +int mainEntryClickhousePerformanceTest(int argc, char ** argv); int mainEntryClickHouseExtractFromConfig(int argc, char ** argv); - static bool isClickhouseApp(const std::string & app_suffix, std::vector & argv) { std::string arg_mode_app = "--" + app_suffix; @@ -54,6 +54,8 @@ int main(int argc_, char ** argv_) main_func = mainEntryClickHouseBenchmark; else if (isClickhouseApp("server", argv)) /// --server arg should be cut main_func = mainEntryClickHouseServer; + else if (isClickhouseApp("performance-test", argv)) + main_func = mainEntryClickhousePerformanceTest; else if (isClickhouseApp("extract-from-config", argv)) main_func = mainEntryClickHouseExtractFromConfig;