Message ID | 1357290338-4207-1-git-send-email-ivan.hu@canonical.com |
---|---|
State | Accepted |
Headers | show |
On 04/01/13 09:05, Ivan Hu wrote: > This stress test tests the UEFI runtime interface SetVariable by > calling with different data multiple times. > > Signed-off-by: Ivan Hu <ivan.hu@canonical.com> > --- > src/uefi/uefirtvariable/uefirtvariable.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/src/uefi/uefirtvariable/uefirtvariable.c b/src/uefi/uefirtvariable/uefirtvariable.c > index e88d26e..bbe6f3f 100644 > --- a/src/uefi/uefirtvariable/uefirtvariable.c > +++ b/src/uefi/uefirtvariable/uefirtvariable.c > @@ -923,6 +923,17 @@ static int uefirtvariable_test6(fwts_framework *fw) > return FWTS_ERROR; > fwts_passed(fw, "SetVariable on setting the variable with the same data multiple times passed."); > > + fwts_log_info(fw, "Testing SetVariable on setting the variable with different data multiple times."); > + for (i = 0; i < multitesttime; i++) { > + if (setvariable_insertvariable(fw, attributes, datasize+i, variablenametest, > + >estguid1, datadiff) == FWTS_ERROR) > + return FWTS_ERROR; > + if (setvariable_insertvariable(fw, attributes, 0, variablenametest, > + >estguid1, datadiff) == FWTS_ERROR) > + return FWTS_ERROR; > + } > + fwts_passed(fw, "Testing SetVariable on setting the variable with different data multiple times passed."); > + > return FWTS_OK; > } > > Acked-by: Colin Ian King <colin.king@canonical.com>
On Fri, Jan 4, 2013 at 5:05 PM, Ivan Hu <ivan.hu@canonical.com> wrote: > This stress test tests the UEFI runtime interface SetVariable by > calling with different data multiple times. > > Signed-off-by: Ivan Hu <ivan.hu@canonical.com> > --- > src/uefi/uefirtvariable/uefirtvariable.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/src/uefi/uefirtvariable/uefirtvariable.c b/src/uefi/uefirtvariable/uefirtvariable.c > index e88d26e..bbe6f3f 100644 > --- a/src/uefi/uefirtvariable/uefirtvariable.c > +++ b/src/uefi/uefirtvariable/uefirtvariable.c > @@ -923,6 +923,17 @@ static int uefirtvariable_test6(fwts_framework *fw) > return FWTS_ERROR; > fwts_passed(fw, "SetVariable on setting the variable with the same data multiple times passed."); > > + fwts_log_info(fw, "Testing SetVariable on setting the variable with different data multiple times."); > + for (i = 0; i < multitesttime; i++) { > + if (setvariable_insertvariable(fw, attributes, datasize+i, variablenametest, > + >estguid1, datadiff) == FWTS_ERROR) > + return FWTS_ERROR; > + if (setvariable_insertvariable(fw, attributes, 0, variablenametest, > + >estguid1, datadiff) == FWTS_ERROR) > + return FWTS_ERROR; > + } > + fwts_passed(fw, "Testing SetVariable on setting the variable with different data multiple times passed."); > + > return FWTS_OK; > } > > -- > 1.7.9.5 > Acked-by: Keng-Yu Lin <kengyu@canonical.com>
diff --git a/src/uefi/uefirtvariable/uefirtvariable.c b/src/uefi/uefirtvariable/uefirtvariable.c index e88d26e..bbe6f3f 100644 --- a/src/uefi/uefirtvariable/uefirtvariable.c +++ b/src/uefi/uefirtvariable/uefirtvariable.c @@ -923,6 +923,17 @@ static int uefirtvariable_test6(fwts_framework *fw) return FWTS_ERROR; fwts_passed(fw, "SetVariable on setting the variable with the same data multiple times passed."); + fwts_log_info(fw, "Testing SetVariable on setting the variable with different data multiple times."); + for (i = 0; i < multitesttime; i++) { + if (setvariable_insertvariable(fw, attributes, datasize+i, variablenametest, + >estguid1, datadiff) == FWTS_ERROR) + return FWTS_ERROR; + if (setvariable_insertvariable(fw, attributes, 0, variablenametest, + >estguid1, datadiff) == FWTS_ERROR) + return FWTS_ERROR; + } + fwts_passed(fw, "Testing SetVariable on setting the variable with different data multiple times passed."); + return FWTS_OK; }
This stress test tests the UEFI runtime interface SetVariable by calling with different data multiple times. Signed-off-by: Ivan Hu <ivan.hu@canonical.com> --- src/uefi/uefirtvariable/uefirtvariable.c | 11 +++++++++++ 1 file changed, 11 insertions(+)