提交 f229bda5 编写于 作者: X Xu Tian

qemu.tests: add cfg for check clock offset when guest bsod/crash

Signed-off-by: NXu Tian <xutian@redhat.com>
上级 b2701428
......@@ -14,3 +14,23 @@
build_cmd = "gcc -lrt ${tmp_dir}/clktest.c -o clktest"
test_cmd = "./clktest"
check_timeout = 300
- when_crash:
type = timedrift_check_when_crash
start_vm = no
ntp_server = "clock.redhat.com"
sleep_time = 1800
variants:
- bsod:
only Windows
nmi_cmd = "monitor:inject-nmi"
ntp_cmd = "sc start w32time && ping -n 6 -w 1000 127.0.0.1>nul && w32tm /config /manualpeerlist:${ntp_server} /syncfromflags:manual /update"
ntp_query_cmd = "w32tm /stripchart /computer:${ntp_server} /samples:1 /dataonly"
- hang:
kill_vm = yes
# Notes:
# please stop kernel crash recovery service like 'kdump' before trigger kernek panic,
# else guest will reboot immedicately that is unexpected in this test;
only Linux
nmi_cmd = "guest: echo '1' > /proc/sys/kernel/sysrq && echo '0' > /proc/sys/kernel/panic && service kdump stop; echo 'c' > /proc/sysrq-trigger"
ntp_cmd = "ntpdate ${ntp_server}"
ntp_query_cmd = "ntpdate -q ${ntp_server}"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册