[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH XTF] tests: add fep test
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tests/fep/Makefile | 12 ++++++++++++ tests/fep/main.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/fep/Makefile create mode 100644 tests/fep/main.c diff --git a/tests/fep/Makefile b/tests/fep/Makefile new file mode 100644 index 0000000..8702123 --- /dev/null +++ b/tests/fep/Makefile @@ -0,0 +1,12 @@ +MAKEFLAGS += -r +ROOT := $(abspath $(CURDIR)/../..) + +include $(ROOT)/build/common.mk + +NAME := fep +CATEGORY := utility +TEST-ENVS := $(HVM_ENVIRONMENTS) + +obj-perenv += main.o + +include $(ROOT)/build/gen.mk diff --git a/tests/fep/main.c b/tests/fep/main.c new file mode 100644 index 0000000..34a93c0 --- /dev/null +++ b/tests/fep/main.c @@ -0,0 +1,31 @@ +/** + * @file tests/fep/main.c + * @ref test-fep + * + * @page test-fep FEP + * + * Returns SUCCESS if FEP is available, FAILURE if not. + * + * @sa tests/fep/main.c + */ +#include <xtf.h> + +void test_main(void) +{ + printk("Test availability of HVM forced emulation prefix\n"); + + if ( xtf_has_fep ) + xtf_success(NULL); + else + xtf_failure(NULL); +} + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */ -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |