summaryrefslogtreecommitdiffstats
path: root/testsuite/ps.test/ps_personality.exp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 20:34:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 20:34:44 +0000
commite3be059d4da38aa36f1aee1d56f8ceb943d92f1c (patch)
tree26edef31e4e503dd1c92a112de174f366dd61802 /testsuite/ps.test/ps_personality.exp
parentInitial commit. (diff)
downloadprocps-e3be059d4da38aa36f1aee1d56f8ceb943d92f1c.tar.xz
procps-e3be059d4da38aa36f1aee1d56f8ceb943d92f1c.zip
Adding upstream version 2:4.0.4.upstream/2%4.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testsuite/ps.test/ps_personality.exp')
-rw-r--r--testsuite/ps.test/ps_personality.exp18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/ps.test/ps_personality.exp b/testsuite/ps.test/ps_personality.exp
new file mode 100644
index 0000000..f873a19
--- /dev/null
+++ b/testsuite/ps.test/ps_personality.exp
@@ -0,0 +1,18 @@
+#
+# check the ps personalities
+#
+set ps ${topdir}src/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
+}
+