Skip to content

Commit

Permalink
KVM test: Enable timedrift for Linux guests
Browse files Browse the repository at this point in the history
We should also test timedrift for Linux guests especially for guest
with pvclock. So this patch enable the timedrift for linux guests.

Changes from v1:
- Correct the wrong name for guest load cleaning
- Use -no-kvm-pit-reinjection for linux guests and -rtc-td-hack for
windows guests.

Signed-off-by: Jason Wang <[email protected]>
  • Loading branch information
jasowang committed Mar 25, 2010
1 parent 3333967 commit 65c7ceb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions kvm/tests_base.cfg.sample
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ variants:
type = linux_s3

- timedrift: install setup unattended_install
extra_params += " -rtc-td-hack"
variants:
- with_load:
type = timedrift
Expand Down Expand Up @@ -333,7 +332,7 @@ variants:
variants:
# Linux section
- @Linux:
no timedrift autoit
no autoit
shutdown_command = shutdown -h now
reboot_command = shutdown -r now
status_test_command = echo $?
Expand All @@ -345,6 +344,16 @@ variants:
file_transfer_port = 22
mem_chk_cmd = dmidecode -t 17 | awk -F: '/Size/ {print $2}'
cpu_chk_cmd = grep -c processor /proc/cpuinfo
timedrift:
extra_params += " -no-kvm-pit-reinjection"
time_command = date +'TIME: %a %m/%d/%Y %H:%M:%S.%N'
time_filter_re = "(?:TIME: \w\w\w )(.{19})(?:\.\d\d)"
time_format = "%m/%d/%Y %H:%M:%S"
guest_load_command = "dd if=/dev/urandom of=/dev/null"
guest_load_instances = 2
guest_load_stop_command = "killall -9 dd"
host_load_command = "bzip2 -c --best /dev/urandom > /dev/null"
host_load_instances = 8

variants:
- Fedora:
Expand Down Expand Up @@ -720,6 +729,7 @@ variants:
stress_boot:
alive_test_cmd = systeminfo
timedrift:
extra_params += " -rtc-td-hack"
time_command = "echo TIME: %date% %time%"
time_filter_re = "(?<=TIME: \w\w\w ).{19}(?=\.\d\d)"
time_format = "%m/%d/%Y %H:%M:%S"
Expand Down

0 comments on commit 65c7ceb

Please sign in to comment.