X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=resize%2FMakefile.am;fp=resize%2FMakefile.am;h=32c5325c6a2dd766bd21ace862329c87607d5678;hp=e8ffff0faffbb209b02b863626a2e88e8dff7df4;hb=63898268101e5ec91c8dac46651dbee5976272ce;hpb=31e5539a14f78d8815d0d930e91023a65b5395e7 diff --git a/resize/Makefile.am b/resize/Makefile.am index e8ffff0..32c5325 100644 --- a/resize/Makefile.am +++ b/resize/Makefile.am @@ -33,7 +33,8 @@ SOURCES = \ progress.mli \ progress.ml \ resize.ml \ - utils.ml + utils.ml \ + utils_tests.ml # Note this list must be in dependency order. OBJECTS = \ @@ -91,6 +92,12 @@ CLEANFILES += stamp-virt-resize.pod # Tests. +check_SCRIPTS = utils_tests + +utils_tests: utils.cmx utils_tests.cmx + $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \ + mlguestfs.cmxa -linkpkg $^ -cclib -lncurses -o $@ + random_val := $(shell awk 'BEGIN{srand(); print 1+int(255*rand())}' < /dev/null) TESTS_ENVIRONMENT = \ @@ -99,7 +106,7 @@ TESTS_ENVIRONMENT = \ LIBGUESTFS_PATH=$(top_builddir)/appliance \ TMPDIR=$(top_builddir) -TESTS = test-virt-resize.sh +TESTS = test-virt-resize.sh utils_tests # Dependencies. depend: .depend