mirror of https://github.com/dynup/kpatch
Add kpatch-unit-objs submodule
Add a submodule containing object files for unittests. Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
parent
89a8ac740c
commit
ffc4122efb
|
@ -0,0 +1,3 @@
|
|||
[submodule "test/unit/objs"]
|
||||
path = test/unit/objs
|
||||
url = https://github.com/dynup/kpatch-unit-test-objs.git
|
|
@ -1,7 +1,11 @@
|
|||
ARCH=$(shell uname -m)
|
||||
ARCH = $(shell uname -m)
|
||||
OBJDIR ?= objs/$(ARCH)
|
||||
|
||||
all: Makefile.include $(ARCH)/Makefile
|
||||
$(MAKE) -C $(ARCH)
|
||||
.PHONY: all clean
|
||||
|
||||
clean: Makefile.include $(ARCH)/Makefile
|
||||
$(MAKE) -C $(ARCH) clean
|
||||
all: Makefile.include
|
||||
git submodule update --init --rebase
|
||||
$(MAKE) -C $(OBJDIR)
|
||||
|
||||
clean: Makefile.include
|
||||
$(MAKE) -C $(OBJDIR) clean
|
||||
|
|
|
@ -12,7 +12,7 @@ MUTE_FAIL := >/dev/null 2>&1
|
|||
.SILENT: $(TARGETS) $(TEST_TARGETS)
|
||||
endif
|
||||
|
||||
SRC_PATH ?= $(realpath ../../../)
|
||||
SRC_PATH ?= $(realpath ../../../../)
|
||||
CDO ?= $(SRC_PATH)/kpatch-build/create-diff-object
|
||||
TEST_LIBRARY ?= $(SRC_PATH)/test/test-functions.sh
|
||||
|
||||
|
@ -22,12 +22,6 @@ TEST_ENV = KPATCH_TEST_LIBRARY=$(TEST_LIBRARY)
|
|||
TARGETS = $(patsubst %.$(EXT_ORIG),%.$(EXT_OUTPUT),$(wildcard *.$(EXT_ORIG)))
|
||||
TEST_TARGETS = $(patsubst %.$(EXT_TEST),%.$(EXT_TEST_OUTPUT),$(wildcard *.$(EXT_TEST)))
|
||||
|
||||
define check_lfs =
|
||||
$(if $(shell head -1 $(1) | grep git-lfs.github.com),
|
||||
$(error $(1) is not fetched. Unittests require https://git-lfs.github.com/),
|
||||
)
|
||||
endef
|
||||
|
||||
define check_stripped =
|
||||
$(if $(shell readelf --debug-dump $(1)),
|
||||
$(error $(1) is not properly stripped, use 'strip --strip-debug --keep-file-symbols $(1)' to fix this),
|
||||
|
@ -35,7 +29,6 @@ define check_stripped =
|
|||
endef
|
||||
|
||||
define check_all =
|
||||
$(call check_lfs,$(1))
|
||||
$(call check_stripped,$(1))
|
||||
endef
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 5e9ba838509a38817bf394fdbb43b4f1ce5a9229
|
Loading…
Reference in New Issue