From patchwork Fri Jun 17 14:21:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9184113 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0447A601C0 for ; Fri, 17 Jun 2016 14:23:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F181F28385 for ; Fri, 17 Jun 2016 14:23:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6371283A4; Fri, 17 Jun 2016 14:23:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E036928385 for ; Fri, 17 Jun 2016 14:23:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDueE-00006s-PG; Fri, 17 Jun 2016 14:21:26 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDueD-00006m-0b for xen-devel@lists.xenproject.org; Fri, 17 Jun 2016 14:21:25 +0000 Received: from [85.158.137.68] by server-12.bemta-3.messagelabs.com id 45/F3-32245-46704675; Fri, 17 Jun 2016 14:21:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRWlGSWpSXmKPExsXitHSDvW4ye0q 4wexfOhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bp/c9ZC+ZwVXyeuIalgXE3RxcjB4eEgL/E mgUKXYycHGwCyhI/O3vZQGwRAT2JpgPPGUFsZgE7iVlLVjKD2MICGhKHPmxiAbFZBFQlVs1bA 1bPK+AscfrvNrC4hICcxPnjP8HqhQQUJDqmH2OCqBGUODnzCQvETAmJgy9eMEOcwC3xt9t+Ai PPLCRVs5BULWBkWsWoUZxaVJZapGtoppdUlJmeUZKbmJmja2hgrJebWlycmJ6ak5hUrJecn7u JERggDECwg3HVds9DjJIcTEqivG8ZU8KF+JLyUyozEosz4otKc1KLDzHKcHAoSfBOYQXKCRal pqdWpGXmAEMVJi3BwaMkwvsHJM1bXJCYW5yZDpE6xagoJc7bDpIQAElklObBtcHi4xKjrJQwL yPQIUI8BalFuZklqPKvGMU5GJWEea+BTOHJzCuBm/4KaDET0GLNeckgi0sSEVJSDYx9e9Tnf2 WL1uPx+Czf6sUYe///kcY9NYfDbkQczm+pSDy0NpZv17nXHjWb6ipmzylecOV21qZHs3MbU1V in+Y/2uIxyYrn6uvKwGnbcxa9+3jGVPvl8fcuvMHvtL0mz9zyk/ejT21GulyUrjl/E/N8kbyC rw/XHJzwbemuSyeUjhsxxHdWWkgrsRRnJBpqMRcVJwIAxpG1DYoCAAA= X-Env-Sender: prvs=969b43a07=wei.liu2@citrix.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1466173281!9285509!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6841 invoked from network); 17 Jun 2016 14:21:23 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 17 Jun 2016 14:21:23 -0000 X-IronPort-AV: E=Sophos;i="5.26,484,1459814400"; d="scan'208";a="368019507" From: Wei Liu To: Xen-devel Date: Fri, 17 Jun 2016 15:21:20 +0100 Message-ID: <1466173280-23797-1-git-send-email-wei.liu2@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-DLP: MIA1 Cc: andrew.cooper3@citrix.com, Wei Liu Subject: [Xen-devel] [PATCH XTF] tests: add fep test X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Wei Liu --- 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 + +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: + */