procps/testsuite/uptime.test/uptime.exp

9 lines
261 B
Plaintext
Raw Normal View History

2011-11-27 13:42:56 +05:30
#
# Dejagnu tests for uptime - part of procps
#
set uptime "${topdir}uptime"
set test "uptime"
spawn $uptime
2011-11-30 17:41:35 +05:30
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*$"