[PATCH] uefirtvariable: add some information for the GetNextVariableName sub-tests
Ivan Hu
ivan.hu at canonical.com
Tue Apr 2 05:40:57 UTC 2013
Add more information for testing the GetNextVarialbeName sub-tests.
Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
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;
}
--
1.7.10.4
More information about the fwts-devel
mailing list