From patchwork Tue Apr 2 05:40:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Hu X-Patchwork-Id: 232887 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 0E81C2C008D for ; Tue, 2 Apr 2013 16:41:06 +1100 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UMtxv-00045Q-AO; Tue, 02 Apr 2013 05:41:03 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1UMtxu-00045L-2a for fwts-devel@lists.ubuntu.com; Tue, 02 Apr 2013 05:41:02 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1UMtxt-0007zY-F1; Tue, 02 Apr 2013 05:41:02 +0000 From: Ivan Hu To: fwts-devel@lists.ubuntu.com Subject: [PATCH] uefirtvariable: add some information for the GetNextVariableName sub-tests Date: Tue, 2 Apr 2013 13:40:57 +0800 Message-Id: <1364881257-4912-1-git-send-email-ivan.hu@canonical.com> X-Mailer: git-send-email 1.7.10.4 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 Add more information for testing the GetNextVarialbeName sub-tests. Signed-off-by: Ivan Hu --- 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 7242afd..3fcf845 100644 --- a/src/uefi/uefirtvariable/uefirtvariable.c +++ b/src/uefi/uefirtvariable/uefirtvariable.c @@ -1163,23 +1163,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 the 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; }