Skip to content

Commit

Permalink
Makefile: add targets for test-progs.cpio and test-progs.tar
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Wilck <[email protected]>
  • Loading branch information
mwilck committed Jul 10, 2024
1 parent 51d9e31 commit 053fd3b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ LIB_BUILDDIRS += \
libdmmp
endif

BUILDDIRS := $(LIB_BUILDDIRS) \
PLUGIN_BUILDDIRS := \
libmultipath/prioritizers \
libmultipath/checkers \
libmultipath/foreign \

BUILDDIRS := $(LIB_BUILDDIRS) \
$(PLUGIN_BUILDDIRS) \
multipath \
multipathd \
mpathpersist \
Expand Down Expand Up @@ -123,6 +126,16 @@ test: all
valgrind-test: all
@$(MAKE) -C tests valgrind

TEST-ARTIFACTS := config.mk \
$(LIB_BUILDDIRS:%=%/*.so*) $(PLUGIN_BUILDDIRS:%=%/*.so) \
tests/*.so* tests/lib/* tests/*-test

test-progs.cpio: test-progs
@printf "%s\\n" $(TEST-ARTIFACTS) | cpio -o -H crc >$@

test-progs.tar: test-progs
@tar cf $@ $(TEST-ARTIFACTS)

.PHONY: TAGS
TAGS:
@etags -a libmultipath/*.c
Expand Down

0 comments on commit 053fd3b

Please sign in to comment.