From: Petr Rockai Date: Sun, 12 Dec 2010 21:08:00 +0000 (+0000) Subject: Only build the required bits under api/ on make check. X-Git-Tag: old-v2_02_79~42 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=c0274f40185f4975a0b745ea173c3b0ef5b1b2c7;p=lvm2.git Only build the required bits under api/ on make check. --- diff --git a/test/Makefile.in b/test/Makefile.in index 4fa094e7d..0372cfe5d 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -42,19 +42,19 @@ dm_udev_synchronisation = 1 endif all check: init.sh - make -C api + make -C api tests @echo Testing with locking_type 1 VERBOSE=$(VERBOSE) ./bin/harness $(RUN_BASE) @echo Testing with locking_type 3 VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=3 ./bin/harness $(RUN_BASE) check_cluster: init.sh - make -C api + make -C api tests @echo Testing with locking_type 3 VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=3 ./bin/harness $(RUN_BASE) check_local: init.sh - make -C api + make -C api tests @echo Testing with locking_type 1 VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=1 ./bin/harness $(RUN_BASE) diff --git a/test/api/Makefile.in b/test/api/Makefile.in index 90e116d44..498cb0d59 100644 --- a/test/api/Makefile.in +++ b/test/api/Makefile.in @@ -44,7 +44,9 @@ test_OBJECTS = $(test_SOURCES:.c=.o) wrapper_OBJECTS = $(wrapper_SOURCES:.c=.o) OBJECTS = $(test_OBJECTS) -all: $(UNIT) test +all: tests test + +tests: $(UNIT) test: $(test_OBJECTS) $(DEPLIBS) $(CC) -o test $(test_OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS) $(READLINE_LIBS)