Menu

#2 test tool and case for openipmi's watchdog

open
nobody
None
5
2003-02-13
2003-02-13
No

to create
patch -p 1 <watchdogtest.patch

This tool is used to test watchdog timer device.
wdttest.sh is command line program for testing.
its usage:
wdttest.sh -a action -r pre_action -m margin-time -p
pre-time -d refresh-time -t total-runtime -w working-dir -
o pre_opt"
action: 0 - noaction
1 - restart
2 - shutdown
3 - power cycle
pre-action: 0 - noaction
1 - SMI
2 - NMI
3 - Message Interrupt
pre-op: 0 - none
1 - panic
2 - give data"
example:
wdttest.sh -a 2 -p 0 -m 10 -p 0 -t 15 -d 12
the machine should reboot after 10 seconds.
wdttest.sh -a 2 -p 0 -m 10 -p 0 -t 15 -d 6
the machine should not reboot, and the test case will
end after 15 seconds

testwdt.c is a program for refresh watchdog timer
device,it is used by wdttest.sh
regulartest.sh includes a bunch of test cases,that should
all pass.

Discussion


Log in to post a comment.