tests: add testcase for TCO watchdog emulation
commit45dcdb9da632b5a5e7639707e12b1b17029c5a1e
authorPaulo Alcantara <pcacjr@gmail.com>
Sun, 28 Jun 2015 17:58:57 +0000 (28 14:58 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 8 Jul 2015 07:09:46 +0000 (8 10:09 +0300)
tree421d1de89f7543f2f90d3c1edc0d612da4411341
parent920557971b60e53c2f3f22e5d6c620ab1ed411fd
tests: add testcase for TCO watchdog emulation

This patch adds a testcase that covers the following:
  1) TCO default values
  2) first and second TCO timeout
  3) watch and validate ticks counter through TCO_RLD register
  4) maximum supported TCO timeout (0x3ff)
  5) watchdog actions (pause/reset/shutdown/none) upon second TCO
     timeout
  6) set and get of TCO control and status bits

MST: The test does not pass yet, so it's disabled by default.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/Makefile
tests/tco-test.c [new file with mode: 0644]