mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
By default, if the "CRIU_LIBS_DIR" environment variable is not set,
CRIU will load all plugins installed in `/usr/lib/criu`. This may
result in running the ZDTM tests with plugins for a different version
of CRIU (e.g., installed from a package).
This patch updates ZDTM to always set the "CRIU_LIBS_DIR" environment
variable and use a local "plugins" directory. This directory contains
copies of the plugin files built from source. In addition, this patch
adds the `--criu-plugin` option to the `zdtm.py run` command, allowing
tests to be run with specified CRIU plugins.
Example:
- Run test only with AMDGPU plugin
./zdtm.py run -t zdtm/static/busyloop00 --criu-plugin amdgpu
- Run test only with CUDA plugin
./zdtm.py run -t zdtm/static/busyloop00 --criu-plugin cuda
- Run test with both AMDGPU and CUDA plugins
./zdtm.py run -t zdtm/static/busyloop00 --criu-plugin amdgpu cuda
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
18 lines
317 B
Makefile
18 lines
317 B
Makefile
SRC_DIR := ../../plugins
|
|
PLUGIN_TARGETS := amdgpu_plugin.so cuda_plugin.so
|
|
|
|
# Silent make rules.
|
|
Q := @
|
|
|
|
all: $(PLUGIN_TARGETS)
|
|
|
|
amdgpu_plugin.so: $(SRC_DIR)/amdgpu/amdgpu_plugin.so
|
|
$(Q) cp $< $@
|
|
|
|
cuda_plugin.so: $(SRC_DIR)/cuda/cuda_plugin.so
|
|
$(Q) cp $< $@
|
|
|
|
clean:
|
|
$(Q) $(RM) $(PLUGIN_TARGETS)
|
|
|
|
.PHONY: all clean
|