mirror of
https://github.com/dynup/kpatch
synced 2025-03-25 04:16:39 +00:00
The commands used to build the livepatches and to load or unload them are currently hard-coded in kpatch-test. This patch adds 2 options to kpatch-test to make it easier to use custom kpatch and kpatch-build commands: * --system-kpatch-tools - if set, 'sudo kpatch' will be used to load/unload the patches; 'kpatch-build' - to build them. To use custom tools here, the user can adjust $PATH. If the option is not set, kpatch-test will assume it is in kpatch source tree, same as before this commit, and will use the tools from there. * --kpatch-build-opts="..." - additional options to pass to kpatch-build. Example: ./kpatch-test \ --system-kpatch-tools \ --kpatch-build-opts="-s ./linux-src -c ./config -v ./vmlinux" \ -d my_kpatch_tests/test/integration/v01 In this case, kpatch and kpatch-build installed in the system will be used, and kpatch-build will look for the kernel source tree, configuration file and vmlinux binary in the current directory. Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com> |
||
---|---|---|
.. | ||
integration | ||
unit | ||
difftree.sh | ||
test-functions.sh |