Hi Pradeep, this test looks incomplete, could you please verify and resend it? Thanks!
On Fri, Jul 1, 2011 at 1:37 PM, Pradeep Kumar <[email protected]> wrote: > Get host bios details, boot up guest with host bios details and verify the > same > From 666b0c16c1e334c8e2437ed8a499d0fc35d1605c Mon Sep 17 00:00:00 2001 > From: pradeep <[email protected]> > Date: Fri, 1 Jul 2011 21:47:40 +0530 > Subject: [PATCH] [AUTOTEST][KVM]: verifying smbios table for guest > Signed-off-by: pradeep <[email protected]> > > new file: client/tests/kvm/tests/smbios_table.py > modified: client/tests/kvm/tests_base.cfg.sample > --- > client/tests/kvm/tests/smbios_table.py | 30 ++++++++++++++++++++++++++++++ > client/tests/kvm/tests_base.cfg.sample | 3 +++ > 2 files changed, 33 insertions(+), 0 deletions(-) > create mode 100644 client/tests/kvm/tests/smbios_table.py > > diff --git a/client/tests/kvm/tests/smbios_table.py > b/client/tests/kvm/tests/smbios_table.py > new file mode 100644 > index 0000000..1725324 > --- /dev/null > +++ b/client/tests/kvm/tests/smbios_table.py > @@ -0,0 +1,30 @@ > +def run_smbios_table(test, params, env): > + """ > + 1) Get host bios details. > + 2) Boot up guest with host bios details > + 3) Verify on guest > + > + @param test: KVM test object. > + @param params: Dictionary with the test parameters. > + @param env: Dictionary with test environment. > + """ > + cmd = params.get(dmidecode_cmd) > + Vendor = utils.cmd(cmd % Vendor) > + Date = utils.cmd(cmd %Date) > + Version = utils.cmd(cmd % Version) > + > + params['extra_params'] = standard_extra_params > + params['extra_params'] += (" -smbios > type=0,vendor=%s,version=%s,date=%s" %(Vendor, Version, Date)) > + > + > + > +dmidecode --type 0 |grep Vendor |awk '{print $2}' > +Date = utils.cmd(dmidecode --type 0 |grep Date | awk '{print $3}' > +Version = utils.cmd(dmidecode --type 0 |grep Version |awk '{print $2}' > + > + # INITIALIZE > + if "extra_params" in params: > + standard_extra_params = params['extra_params'] > + else: > + standard_extra_params = "" > + > diff --git a/client/tests/kvm/tests_base.cfg.sample > b/client/tests/kvm/tests_base.cfg.sample > index bdc9b6c..5a99041 100644 > --- a/client/tests/kvm/tests_base.cfg.sample > +++ b/client/tests/kvm/tests_base.cfg.sample > @@ -413,6 +413,9 @@ variants: > extra_params += " -watchdog i6300esb -watchdog-action reset" > relogin_timeout = 240 > > + - smbios_table: install setup image_copy unattended_install.cdrom > + type = smbios_table > + > - stress_boot: install setup image_copy unattended_install.cdrom > type = stress_boot > max_vms = 5 > -- > 1.7.0.4 > > _______________________________________________ > Autotest mailing list > [email protected] > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest > -- Lucas _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
