From b0f65210b5067d0a063d2bc87ac8a166bddac278 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 9 Jul 2015 18:24:59 +0100 Subject: [PATCH] libxl: event tests: Improve Makefile doc comment Including the explanation of how to run these tests. Signed-off-by: Ian Jackson Acked-by: Wei Liu --- tools/libxl/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index 0150ec7fdd..05d97286d6 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -116,7 +116,13 @@ LIBXL_TESTS += timedereg # "outside libxl" file is compiled exactly like a piece of application # code. They must share information via explicit libxl entrypoints. # Unlike proper parts of libxl, it is permissible for libxl_test_FOO.c -# to use private global variables for its state. +# to use private global variables for its state. Note that all the +# "inside" parts are compiled into a single test library, so their +# symbol names must be unique. +# +# To run these tests, either use LD_PRELOAD to get libxenlight_test.so +# loaded, or rename it to libxenlight.so so it is the target of the +# appropriate symlinks. LIBXL_TEST_OBJS += $(foreach t, $(LIBXL_TESTS),libxl_test_$t.o) TEST_PROG_OBJS += $(foreach t, $(LIBXL_TESTS),test_$t.o) test_common.o -- 2.39.5