Add 'make check' rule.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 11 Jun 2012 12:59:37 +0000 (13:59 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 11 Jun 2012 12:59:37 +0000 (13:59 +0100)
Makefile.in

index 330429e..0ff38a4 100644 (file)
@@ -50,7 +50,7 @@ mlaugeas.cmxa: augeas_c.o augeas.cmx
 
 # Test program.
 
-test_augeas: test_augeas.cmo test_root
+test_augeas: test_augeas.cmo test_root mlaugeas.cma
        $(OCAMLFIND) ocamlc -o $@ mlaugeas.cma $<
 
 test_root:
@@ -59,6 +59,9 @@ test_root:
        mkdir $@/etc
        cp /etc/hosts $@/etc/
 
+check:
+       LD_LIBRARY_PATH=. ./test_augeas
+
 # Clean.
 
 clean: