testing: pass KPATCH_BUILD_OPTS to kpatch-test

Update the test/integration/Makefile to pass a KPATCH_BUILD_OPTS
variable to kpatch-test.  This allows the user better control over the
kpatch build process, for example, building non-atomic replace .ko files
on kernels that do support atomic-replace:

  % make integration KPATCH_BUILD_OPTS="--non-replace"

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
Joe Lawrence 2021-08-02 17:40:52 -04:00
parent a02668a0f7
commit a19c4ed296
1 changed files with 3 additions and 3 deletions

View File

@ -10,13 +10,13 @@ local: slow
remote: remote_slow
slow: clean
./kpatch-test -d $(PATCH_DIR) $(PATCHES)
./kpatch-test --kpatch-build-opts="$(KPATCH_BUILD_OPTS)" -d $(PATCH_DIR) $(PATCHES)
quick: clean
./kpatch-test -d $(PATCH_DIR) --quick $(PATCHES)
./kpatch-test --kpatch-build-opts="$(KPATCH_BUILD_OPTS)" -d $(PATCH_DIR) --quick $(PATCHES)
cached:
./kpatch-test -d $(PATCH_DIR) --cached $(PATCHES)
./kpatch-test --kpatch-build-opts="$(KPATCH_BUILD_OPTS)" -d $(PATCH_DIR) --cached $(PATCHES)
vagrant: vagrant-quick