0e6e79522b
Add a test routine to test for --since option added to uptime in previous commit
13 lines
387 B
Plaintext
13 lines
387 B
Plaintext
#
|
|
# 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*$"
|
|
|
|
set test "uptime since option"
|
|
spawn $uptime --since
|
|
expect_pass "$test" "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\s*$"
|