[prev in list] [next in list] [prev in thread] [next in thread]
List: dm-devel
Subject: [dm-devel] [PATCH 2/7] multipath-tools Makefiles: allow building test programs only
From: mwilck () suse ! com
Date: 2021-03-26 21:29:39
Message-ID: 20210326212944.3136-3-mwilck () suse ! com
[Download RAW message or body]
From: Martin Wilck <mwilck@suse.com>
"make test" builds and runs test programs. For multiarch / cross-compilation
environments, it's useful to be able to separate these steps.
Signed-off-by: Martin Wilck <mwilck@suse.com>
---
Makefile | 7 +++++--
tests/Makefile | 1 +
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index bddb2bf..c5bedcf 100644
--- a/Makefile
+++ b/Makefile
@@ -51,8 +51,11 @@ clean: $(BUILDDIRS.clean)
install: $(BUILDDIRS:=.install)
uninstall: $(BUILDDIRS:=.uninstall)
-test: all
- $(MAKE) -C tests
+test-progs: all
+ $(MAKE) -C tests progs
+
+test: test-progs
+ $(MAKE) -C tests all
valgrind-test: all
$(MAKE) -C tests valgrind
diff --git a/tests/Makefile b/tests/Makefile
index 11ca1be..e70c8ed 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -20,6 +20,7 @@ HELPERS := test-lib.o test-log.o
.PRECIOUS: $(TESTS:%=%-test)
all: $(TESTS:%=%.out)
+progs: $(TESTS:%=%-test) lib/libchecktur.so
valgrind: $(TESTS:%=%.vgr)
# test-specific compiler flags
--
2.30.1
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic