added uptime and vmstat tests

This commit is contained in:
Craig Small
2011-11-27 19:12:56 +11:00
parent 5c48d8b79a
commit 919e37787e
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#
# Dejagnu tests for uptime - part of procps
#
set uptime "${topdir}uptime"
set test "uptime"
spawn $uptime
expect_pass "$test" "^\\s+\\d{2}:\\d{2}:\\d{2} up (\\d+ days?,)\\s*\\d+(min|:\\d+), +\\d+ users, +load average: \[0-9.\]+, \[0-9.\]+, \[0-9.\]+\\s*$"