]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commitdiff
CA-38105: add a simple CLI and stresstest to test the fe daemon.
authorDavid Scott <dave.scott@eu.citrix.com>
Mon, 8 Mar 2010 11:28:56 +0000 (11:28 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Mon, 8 Mar 2010 11:28:56 +0000 (11:28 +0000)
Signed-off-by: David Scott <dave.scott@eu.citrix.com>
stdext/Makefile

index 3ba7b303d64b7c1162e5c763e2d49d89aef519d0..44237308e30a51006f42dd0044b1668ef9267aa9 100644 (file)
@@ -27,7 +27,7 @@ STDEXT_OBJS = fun listext filenameext stringext arrayext hashtblext pervasiveext
 INTF = $(foreach obj, $(STDEXT_OBJS),$(obj).cmi)
 LIBS = stdext.cma stdext.cmxa
 
-PROGRAMS = base64pp
+PROGRAMS = base64pp fe_cli fe_test
 
 DOCDIR = /myrepos/xen-api-libs.hg/doc
 
@@ -40,6 +40,12 @@ libs: $(LIBS)
 base64pp: base64_main.ml all libstdext_stubs.a
        ocamlfind $(OCAMLOPT) $(OCAMLOPTFLAGS) stdext.cmxa -linkpkg -o $@ $< -ccopt -L.
 
+fe_cli: fe_cli.ml all libstdext_stubs.a
+       ocamlfind $(OCAMLOPT) $(OCAMLOPTFLAGS) unix.cmxa ../uuid/uuid.cmxa ../rpc-light/rpc.cmx ../rpc-light/jsonrpc.cmx stdext.cmxa -linkpkg -o $@ $< -ccopt -L.
+
+fe_test: fe_test.ml all libstdext_stubs.a
+       ocamlfind $(OCAMLOPT) $(OCAMLOPTFLAGS) unix.cmxa ../uuid/uuid.cmxa ../rpc-light/rpc.cmx ../rpc-light/jsonrpc.cmx stdext.cmxa -linkpkg -I ../uuid -o $@ $< -ccopt -L.
+
 stdext.cmxa: libstdext_stubs.a $(foreach obj,$(STDEXT_OBJS),$(obj).cmx)
        $(OCAMLOPT) $(OCAMLOPTFLAGS) -a -o $@ -cclib -lstdext_stubs $(foreach obj,$(STDEXT_OBJS),$(obj).cmx)