test for previous commit

Add a test routine to test for --since option added to uptime in
previous commit
This commit is contained in:
Craig Small 2012-12-26 23:21:44 +11:00
parent a705fdcb15
commit 0e6e79522b

View File

@ -6,3 +6,7 @@ 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*$"