]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Build util tests properly with make check
authorRuss Allbery <rra@stanford.edu>
Mon, 14 Jun 2010 22:28:20 +0000 (15:28 -0700)
committerDerrick Brashear <shadow@dementia.org>
Tue, 15 Jun 2010 01:06:42 +0000 (18:06 -0700)
If one runs make check without previously running make at the top
level first, it didn't build the util test programs properly.
Recurse into subdirectories for make check as well, and add the
check, test, and tests targets to tests/util/Makefile.in

Change-Id: Idc2caf4cf83a48da350e724aba2ac1228795085d
Reviewed-on: http://gerrit.openafs.org/2162
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
tests/Makefile.in
tests/util/Makefile.in

index 7118378bec9962ea0a4dbafaada439e67e4b8c14..d2d0bbfbc8d46c4e37f28017b0afdbe8bc7795db 100644 (file)
@@ -20,6 +20,7 @@ runtests: runtests.o
 
 check test tests: runtests
        cd tap && $(MAKE) $@
+       cd util && $(MAKE) $@
        ./runtests $(abs_top_srcdir)/tests/TESTS
 
 install:
index 763f1cda76714d7e2aa654feb5722479a7372761..9fc34fa0e6296ab85cbfc78cb216daf65c7a7db6 100644 (file)
@@ -8,7 +8,7 @@ CFLAGS += -I$(srcdir)/..
 
 tests = ktime-t
 
-all: $(tests)
+all check test tests: $(tests)
 
 ktime-t: ktime-t.o
        $(CC) $(LDFLAGS) -o ktime-t ktime-t.o ../tap/libtap.a \