From patchwork Mon Apr 8 00:53:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 234549 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 07B722C00A1 for ; Mon, 8 Apr 2013 10:53:18 +1000 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UP0Kh-00078G-Mv; Mon, 08 Apr 2013 00:53:15 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UP0Kf-000785-Se for fwts-devel@lists.ubuntu.com; Mon, 08 Apr 2013 00:53:13 +0000 Received: from [175.180.135.244] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1UP0Ke-0002St-T2; Mon, 08 Apr 2013 00:53:13 +0000 From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH][RESEND] uefirtvariable: add some information for the GetNextVariableName sub-tests Date: Mon, 8 Apr 2013 08:53:08 +0800 Message-Id: <1365382388-4069-1-git-send-email-ivan.hu@canonical.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: IvanHu Add more information for testing the GetNextVarialbeName sub-tests. Signed-off-by: Ivan Hu Acked-by: Keng-Yu Lin Acked-by: Alex Hung Acked-by: Colin Ian King --- src/uefi/uefirtvariable/uefirtvariable.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/uefi/uefirtvariable/uefirtvariable.c b/src/uefi/uefirtvariable/uefirtvariable.c index c5caa33..50e4e3a 100644 --- a/src/uefi/uefirtvariable/uefirtvariable.c +++ b/src/uefi/uefirtvariable/uefirtvariable.c @@ -1165,23 +1165,30 @@ static int uefirtvariable_test2(fwts_framework *fw) { int ret; + fwts_log_info(fw, "The runtime service GetNextVariableName interface function test."); ret = getnextvariable_test1(fw); if (ret != FWTS_OK) return ret; + fwts_passed(fw, "The runtime service GetNextVariableName interface function test passed."); + fwts_log_info(fw, "Check the GetNextVariableName returned value of VariableNameSize is equal to the length of VariableName."); ret = getnextvariable_test2(fw); if (ret != FWTS_OK) return ret; + fwts_passed(fw, "Check the GetNextVariableName returned value of VariableNameSize is equal to the length of VariableName passed."); + fwts_log_info(fw, "Test GetNextVariableName interface returns unique variables."); ret = getnextvariable_test3(fw); if (ret != FWTS_OK) return ret; + fwts_passed(fw, "Test GetNextVariableName interface returns unique variables passed."); + fwts_log_info(fw, "The GetNextVariableName interface conformance tests."); ret = getnextvariable_test4(fw); if (ret != FWTS_OK) return ret; + fwts_passed(fw, "The runtime service GetNextVariableName interface conformance tests passed."); - fwts_passed(fw, "UEFI runtime service GetNextVariableName interface test passed."); return FWTS_OK; }