Add base file for PerformanceTest

This commit is contained in:
ivanzhukov 2017-01-13 21:26:51 +03:00
parent 842ebadc0e
commit 39c3054d09
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,33 @@
#include <iostream>
/** 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;
}

View File

@ -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<char *> & 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;