Commit e7bbc2ec authored by Rob Latham's avatar Rob Latham

a simple test to stand up mobject server

parent d065c121
check_PROGRAMS += \
tests/mobject-connect-test
tests/mobject-connect-test \
tests/mobject-server
if HAVE_RADOS
check_PROGRAMS += \
......@@ -13,6 +14,9 @@ tests_mobject_connect_test_SOURCES = tests/mobject-connect-test.c
tests_mobject_connect_test_CPPFLAGS = -I${srcdir}/include
tests_mobject_connect_test_LDADD = src/libmobject-store.la
tests_mobject_server_CPPFLAGS = -I${srcdir}/include
tests_mobject_server_LDADD = ${LIBS} src/libmobject-store-server.la
if HAVE_RADOS
tests_rados_mobject_connect_test_SOURCES = tests/mobject-connect-test.c
tests_rados_mobject_connect_test_CFLAGS = -DUSE_RADOS
......
#include <margo.h>
#include <mobject-server.h>
/* the SDS-keyval and bake-bulk tests should still work, even if there is a higher-level protocol */
int main(int argc, char **argv)
{
mobject_server_register(argc, argv);
margo_wait_for_finalize();
margo_server_deregister();
margo_instance_id mid;
mid = margo_init(argv[1], MARGO_SERVER_MODE, 0, -1);
mobject_server_register(argv[2], argv[3]);
margo_wait_for_finalize(mid);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment