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

@ -20,6 +20,16 @@ proc free_version {} {
clone_output "${topdir}free version $version\n"
}
# uptime functions
proc uptime_load { arg } { }
proc uptime_exit {} {}
proc uptime_version {} {
global topdir
set tmp [ exec ${topdir}uptime -V ]
regexp "procps-ng version (\[0-9.\]*)" $tmp tmp version
clone_output "${topdir}uptime version $version\n"
}
# w functions
proc w_load { arg } { }
proc w_exit {} {}