2019-04-12 12:58:45 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
|
|
// Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
|
|
// Proprietary and confidential.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2019-04-12 13:16:56 +00:00
|
|
|
#include <gtest/gtest.h>
|
2019-04-12 12:58:45 +00:00
|
|
|
#include <gmock/gmock.h>
|
2019-04-14 11:46:25 +00:00
|
|
|
#include <easylogging++.h>
|
|
|
|
|
2019-04-29 03:09:57 +00:00
|
|
|
#include "server/ServerConfig.h"
|
2019-04-29 04:31:48 +00:00
|
|
|
#include "utils/CommonUtil.h"
|
2019-04-29 03:09:57 +00:00
|
|
|
|
2019-04-14 11:46:25 +00:00
|
|
|
INITIALIZE_EASYLOGGINGPP
|
2019-04-12 12:58:45 +00:00
|
|
|
|
2019-04-29 04:31:48 +00:00
|
|
|
using namespace zilliz::vecwise;
|
|
|
|
|
2019-04-12 12:58:45 +00:00
|
|
|
int main(int argc, char **argv) {
|
2019-04-29 04:31:48 +00:00
|
|
|
std::string exe_path = server::CommonUtil::GetExePath();
|
2019-04-29 08:20:21 +00:00
|
|
|
std::string config_filename = exe_path + "/../../../conf/server_config.yaml";
|
2019-04-29 03:09:57 +00:00
|
|
|
zilliz::vecwise::server::ServerConfig& config = zilliz::vecwise::server::ServerConfig::GetInstance();
|
|
|
|
config.LoadConfigFile(config_filename);
|
2019-04-29 04:31:48 +00:00
|
|
|
std::cout << "Load config file form: " << config_filename << std::endl;
|
2019-04-29 03:09:57 +00:00
|
|
|
|
2019-04-12 12:58:45 +00:00
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|