criu/test/others/libcriu
Ahmed Elaidy 649569daf0
test: libcriu: use installed headers and library
Install libcriu into a local staging directory (.install/) using
'make install-lib' and reference only that directory during build
and test:

  CFLAGS  := -I$(INSTALL_DIR)/include/criu
  LDFLAGS := -L$(INSTALL_DIR)/lib -lcriu
  LD_LIBRARY_PATH=${MAIN_DIR}/.install/lib

Nothing from the non-test part of the repo is used at compile,
link, or run time.

The compile rule is also corrected to use $< instead of $^
for gcc -c.

Fixes: #2927

Signed-off-by: Ahmed Elaidy <elaidya225@gmail.com>
2026-07-20 11:23:01 +02:00
..
.gitignore test/libcriu: check setting of RPC config file 2025-11-05 15:41:34 -08:00
lib.c test/others/libcriu: test version library calls 2020-10-20 00:18:24 -07:00
lib.h tests: added test for single pre-dump support 2022-04-28 17:53:52 -07:00
Makefile test: libcriu: use installed headers and library 2026-07-20 11:23:01 +02:00
run.sh test: libcriu: use installed headers and library 2026-07-20 11:23:01 +02:00
test_check.c test/others: add test for check() with libcriu 2025-11-05 15:41:35 -08:00
test_errno.c Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
test_feature_check.c lib: added tests for feature check in libcriu 2022-04-28 17:53:52 -07:00
test_iters.c tests: added test for single pre-dump support 2022-04-28 17:53:52 -07:00
test_join_ns.c test/libcriu: add test case for join-ns 2021-10-12 12:58:43 -07:00
test_notify.c tests: added test for single pre-dump support 2022-04-28 17:53:52 -07:00
test_pre_dump.c tests: added test for single pre-dump support 2022-04-28 17:53:52 -07:00
test_rpc_config.c test/libcriu: check setting of RPC config file 2025-11-05 15:41:34 -08:00
test_self.c libcriu: define log level constants 2021-10-12 12:58:43 -07:00
test_sub.c tests: added test for single pre-dump support 2022-04-28 17:53:52 -07:00