mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Tools: build tests
Build tests as part of the tools build. It is enabled with CONFIG_TESTS in Config.mk Currently disabled build of tests/regressions and tests/xen-access (in 32-bit mode) as they fail. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
1f46c58d45
commit
953953cc5a
3 files changed
+23
No files matched your search
@@ -243,6 +243,7 @@ OCAML_TOOLS ?= y
|
||||
CONFIG_MINITERM ?= n
|
||||
CONFIG_LOMOUNT ?= n
|
||||
CONFIG_SYSTEM_LIBAIO ?= y
|
||||
CONFIG_TESTS ?= y
|
||||
|
||||
ifeq ($(OCAML_TOOLS),y)
|
||||
OCAML_TOOLS := $(shell ocamlopt -v > /dev/null 2>&1 && echo "y" || echo "n")
|
||||
|
||||
@@ -45,6 +45,7 @@ SUBDIRS-y += remus
|
||||
SUBDIRS-$(CONFIG_X86) += xenpaging
|
||||
SUBDIRS-$(CONFIG_X86) += debugger/gdbsx
|
||||
SUBDIRS-$(CONFIG_X86) += debugger/kdd
|
||||
SUBDIRS-$(CONFIG_TESTS) += tests
|
||||
|
||||
# These don't cross-compile
|
||||
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
XEN_ROOT = $(CURDIR)/../..
|
||||
include $(XEN_ROOT)/tools/Rules.mk
|
||||
|
||||
CFLAGS += $(CFLAGS_libxenctrl)
|
||||
LDLIBS += $(LDLIBS_libxenctrl)
|
||||
|
||||
SUBDIRS-y :=
|
||||
SUBDIRS-y += mce-test
|
||||
SUBDIRS-y += mem-sharing
|
||||
ifeq ($(XEN_TARGET_ARCH),__fixme__)
|
||||
SUBDIRS-y += regression
|
||||
endif
|
||||
SUBDIRS-y += x86_emulator
|
||||
ifneq ($(XEN_TARGET_ARCH),x86_32)
|
||||
SUBDIRS-y += xen-access
|
||||
endif
|
||||
|
||||
.PHONY: all clean install distclean
|
||||
all clean distclean: %: subdirs-%
|
||||
|
||||
install:
|
||||