]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commitdiff
Tests the allocator using the Kaputt framework.
authorMatthias Goergens <matthias.goergens@citrix.com>
Tue, 2 Feb 2010 16:43:42 +0000 (16:43 +0000)
committerMatthias Goergens <matthias.goergens@citrix.com>
Tue, 2 Feb 2010 16:43:42 +0000 (16:43 +0000)
Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com> (Mercurial doesn't like Umlaute.)
mlvm/Makefile

index 68e261751c21c64dfe4b49527815085271cd925e..b3bfc77f0b9d0f524b09352dfeb80039134ec7ea 100644 (file)
@@ -26,6 +26,9 @@ DOCDIR = /myrepos/xen-api-libs.hg/doc
 
 default : $(LIBS)
 
+test_allocator: default
+       $(OCAMLOPT) -package kaputt -linkpkg -dtypes -g  -I ../stdext -I ../camldm -I ../uuid -I +kaputt unix.cmxa ../rpc-light/rpc.cmx ../rpc-light/jsonrpc.cmx ../camldm/camldm.cmxa ../uuid/uuid.cmxa ../stdext/stdext.cmxa ./lvm.cmxa test_allocator.ml -o $@
+
 lvm.cmx: $(foreach obj,$(LIBOBJS),$(obj).cmx)
        $(OCAMLOPT) -pack -g -o $@ $(foreach obj,$(LIBOBJS),$(obj).cmx)
 
@@ -52,6 +55,7 @@ uninstall:
 clean : 
        rm -f *.cmo *.cmi *.cmx *.o *~ *.annot lvmconfiglex.ml \
        lvmconfigparser.mli lvmconfigparser.ml
+       rm -f test_allocator
 
 .PHONY: doc
 doc: $(INTF)