fixed pgrep and added ps tests

This commit is contained in:
Craig Small
2011-11-29 22:55:03 +11:00
parent b36fe6efc5
commit 261a3fae83
4 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
#
# check the ps personalities
#
set ps ${topdir}ps/pscommand
set pers_match {
bsd "\\s+PID\\s+TTY\\s+STAT\\s+TIME\\s+COMMAND\\r"
linux "\\s+PID\\s+TTY\\s+TIME\\s+CMD\\r"
old "\\s+PID\\s+TTY\\s+STAT\\s+TIME\\s+COMMAND\\r"
}
foreach { pers match } $pers_match {
set test "ps with $pers personality"
set env(PS_PERSONALITY) $pers
spawn $ps
expect_pass "$test" $match
}