From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dor Laor Subject: Re: [Autotest] [KVM-AUTOTEST PATCH 15/17] KVM test: add timedrift test to kvm_tests.cfg.sample Date: Tue, 21 Jul 2009 12:47:36 +0300 Message-ID: <4A658EB8.5040800@redhat.com> References: <1248102444-31111-1-git-send-email-mgoldish@redhat.com> <7c14834269583764af3beb2e811ac62bec3a2c96.1248102188.git.mgoldish@redhat.com> <7f24fe107f3dc8e2693e12142ba97010c7063166.1248102188.git.mgoldish@redhat.com> <79d9f4e9e8ca62388f1a8be1a0f450a2f2329fc3.1248102188.git.mgoldish@redhat.com> <8cb328ac5429d808714dd252a456e6d3dd3a96b2.1248102188.git.mgoldish@redhat.com> Reply-To: dlaor@redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: autotest@test.kernel.org, kvm@vger.kernel.org To: Michael Goldish Return-path: Received: from mx2.redhat.com ([66.187.237.31]:59129 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754517AbZGUJvY (ORCPT ); Tue, 21 Jul 2009 05:51:24 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 07/20/2009 06:07 PM, Michael Goldish wrote: > Currently the test will only run on Windows. > It should be able to run on Linux just as well, but if I understand correctly, > testing time drift on Linux is less interesting. Linux is interesting too. The problem is more visible on windows since it uses 1000hz frequency when it plays multimedia. It makes timer irq injection harder. Does the test fail without the rtc-td-hack? > > Also make some tiny cosmetic changes (spacing), and move the stress_boot test > before the shutdown test (shutdown should be last). > > Signed-off-by: Michael Goldish > --- > client/tests/kvm/kvm_tests.cfg.sample | 46 ++++++++++++++++++++++++++------ > 1 files changed, 37 insertions(+), 9 deletions(-) > > diff --git a/client/tests/kvm/kvm_tests.cfg.sample b/client/tests/kvm/kvm_tests.cfg.sample > index 1288952..2d75a66 100644 > --- a/client/tests/kvm/kvm_tests.cfg.sample > +++ b/client/tests/kvm/kvm_tests.cfg.sample > @@ -92,20 +92,33 @@ variants: > test_name = disktest > test_control_file = disktest.control > > - - linux_s3: install setup > + - linux_s3: install setup > type = linux_s3 > > - - shutdown: install setup > + - timedrift: install setup > + type = timedrift > + extra_params += " -rtc-td-hack" > + # Pin the VM and host load to CPU #0 > + cpu_mask = 0x1 > + # Set the load and rest durations > + load_duration = 20 > + rest_duration = 20 > + # Fail if the drift after load is higher than 50% > + drift_threshold = 50 > + # Fail if the drift after the rest period is higher than 10% > + drift_threshold_after_rest = 10 > + > + - stress_boot: install setup > + type = stress_boot > + max_vms = 5 > + alive_test_cmd = ps aux > + > + - shutdown: install setup > type = shutdown > kill_vm = yes > kill_vm_gracefully = no > > > - - stress_boot: > - type = stress_boot > - max_vms = 5 > - alive_test_cmd = ps aux > - > # NICs > variants: > - @rtl8139: > @@ -121,6 +134,7 @@ variants: > variants: > # Linux section > - @Linux: > + no timedrift > cmd_shutdown = shutdown -h now > cmd_reboot = shutdown -r now > ssh_status_test_command = echo $? > @@ -303,8 +317,6 @@ variants: > md5sum=bf4635e4a4bd3b43838e72bc8c329d55 > md5sum_1m=18ecd37b639109f1b2af05cfb57dfeaf > > - > - > # Windows section > - @Windows: > no autotest > @@ -318,6 +330,21 @@ variants: > migration_test_command = ver&& vol > stress_boot: > alive_test_cmd = systeminfo > + timedrift: > + # For this to work, the ISO should contain vlc (vlc.exe) and a video (ED_1024.avi) > + cdrom = windows/vlc.iso > + time_command = "echo TIME: %date% %time%" > + time_filter_re = "(?<=TIME: \w\w\w ).{19}(?=\.\d\d)" > + time_format = "%m/%d/%Y %H:%M:%S" > + guest_load_command = 'cmd /c "d:\vlc -f --loop --no-qt-privacy-ask --no-qt-system-tray d:\ED_1024.avi"' > + # Alternative guest load: > + #guest_load_command = "(dir /s&& dir /s&& dir /s&& dir /s)> nul" > + guest_load_stop_command = "taskkill /F /IM vlc.exe" > + guest_load_instances = 2 > + host_load_command = "bzip2 -c --best /dev/urandom> /dev/null" > + # Alternative host load: > + #host_load_command = "dd if=/dev/urandom of=/dev/null" > + host_load_instances = 8 > > variants: > - Win2000: > @@ -582,5 +609,6 @@ variants: > only qcow2.*ide.*default.*up.*Ubuntu-8.10-server.*(autotest.sleeptest) > only rtl8139 > > + > # Choose your test list > only fc8_quick