33 lines
847 B
C++
33 lines
847 B
C++
#include "lib/os/os.h"
|
|
#include "lib/logging/logging.h"
|
|
|
|
#include "lib/config/config.h"
|
|
#include "lib/config/protos/logging.pb.h"
|
|
#include "lib/config/protos/Executor.pb.h"
|
|
#include "lib/utils/init_spark_lib.h"
|
|
#include "setup/BootstrapActor.h"
|
|
#include "fabric/Domain.h"
|
|
#include "testing/catch_test_runner.h"
|
|
|
|
int main( int argc, char*argv [] )
|
|
{
|
|
using namespace bts;
|
|
os::set_thread_name("main");
|
|
|
|
if (argc > 1 && std::string(argv[1]) == "test")
|
|
bts::run_tests(--argc, ++argv);
|
|
else {
|
|
utils::init_spark_lib();
|
|
auto executor_cfg = config::get<config::ExecutorCfg> ();
|
|
|
|
fabric::Domain d (executor_cfg,std::make_unique<setup::BootstrapActor>(executor_cfg));
|
|
std::this_thread::sleep_until(std::chrono::time_point<std::chrono::system_clock>::max());
|
|
utils::finit_spark_lib();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|