43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#include "lib/os/os.h"
|
|
#include "lib/utils/init_spark_lib.h"
|
|
#include "server/sparkd/cmds/CmdRegistry.h"
|
|
|
|
// to add a command add the header here and the the REGISTER call below
|
|
// don't touch this file except to add commands.
|
|
#include "server/sparkd/cmds/Benchmark.h"
|
|
#include "server/sparkd/cmds/ConfigCheck.h"
|
|
#include "server/sparkd/cmds/Help.h"
|
|
#include "server/sparkd/cmds/Md.h"
|
|
#include "server/sparkd/cmds/Run.h"
|
|
#include "server/sparkd/cmds/RunSim.h"
|
|
#include "server/sparkd/cmds/Test.h"
|
|
#include "server/sparkd/cmds/TestCeloxica.h"
|
|
#include "server/sparkd/cmds/AutoCert.h"
|
|
#include "server/sparkd/cmds/QuickTest.h"
|
|
#include "server/sparkd/cmds/Span.h"
|
|
#include "server/sparkd/cmds/Web.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
using namespace bts;
|
|
|
|
os::set_thread_name("main");
|
|
utils::init_spark_lib();
|
|
BEGIN_CMD;
|
|
REGISTER(Test);
|
|
REGISTER(Help);
|
|
REGISTER(Run);
|
|
REGISTER(Md);
|
|
REGISTER(TestCeloxica);
|
|
REGISTER(ConfigCheck);
|
|
REGISTER(RunSim);
|
|
REGISTER(Benchmark);
|
|
REGISTER(QuickTest);
|
|
REGISTER(AutoCert);
|
|
REGISTER(Span);
|
|
REGISTER(Web);
|
|
END_CMD;
|
|
|
|
utils::finit_spark_lib();
|
|
return 0;
|
|
}
|