diff --git a/tests/fixtures/centos-7.7/who-a.json b/tests/fixtures/centos-7.7/who-a.json new file mode 100644 index 00000000..d691e692 --- /dev/null +++ b/tests/fixtures/centos-7.7/who-a.json @@ -0,0 +1 @@ +[{"event": "reboot", "time": "2020-02-29 12:13"}, {"event": "login", "tty": "tty1", "time": "2020-02-29 12:13", "pid": 841, "comment": "id=tty1"}, {"user": "kbrazil", "writeable_tty": "+", "tty": "ttyS0", "time": "2020-02-29 12:14", "idle": ".", "pid": 840}, {"event": "run-level 3", "time": "2020-02-29 12:13"}, {"user": "kbrazil", "writeable_tty": "+", "tty": "pts/0", "time": "2020-02-29 18:43", "idle": "00:11", "pid": 3709, "from": "192.168.71.1"}, {"tty": "pts/1", "time": "2020-02-29 18:28", "pid": 3381, "comment": "id=ts/1 term=0 exit=0"}] diff --git a/tests/fixtures/centos-7.7/who-a.out b/tests/fixtures/centos-7.7/who-a.out new file mode 100644 index 00000000..fbdc9b0f --- /dev/null +++ b/tests/fixtures/centos-7.7/who-a.out @@ -0,0 +1,6 @@ + system boot 2020-02-29 12:13 +LOGIN tty1 2020-02-29 12:13 841 id=tty1 +kbrazil + ttyS0 2020-02-29 12:14 . 840 + run-level 3 2020-02-29 12:13 +kbrazil + pts/0 2020-02-29 18:43 00:11 3709 (192.168.71.1) + pts/1 2020-02-29 18:28 3381 id=ts/1 term=0 exit=0 diff --git a/tests/fixtures/centos-7.7/who.json b/tests/fixtures/centos-7.7/who.json new file mode 100644 index 00000000..30f57713 --- /dev/null +++ b/tests/fixtures/centos-7.7/who.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "time": "2020-02-29 12:14"}, {"user": "kbrazil", "tty": "pts/0", "time": "2020-02-29 18:43", "from": "192.168.71.1"}] diff --git a/tests/fixtures/centos-7.7/who.out b/tests/fixtures/centos-7.7/who.out new file mode 100644 index 00000000..1cfab1a0 --- /dev/null +++ b/tests/fixtures/centos-7.7/who.out @@ -0,0 +1,2 @@ +kbrazil ttyS0 2020-02-29 12:14 +kbrazil pts/0 2020-02-29 18:43 (192.168.71.1) diff --git a/tests/fixtures/osx-10.14.6/who-a.json b/tests/fixtures/osx-10.14.6/who-a.json new file mode 100644 index 00000000..d43d5a6c --- /dev/null +++ b/tests/fixtures/osx-10.14.6/who-a.json @@ -0,0 +1 @@ +[{"event": "reboot", "time": "Feb 7 23:31", "pid": 1}, {"user": "kbrazil", "tty": "console", "time": "Feb 7 23:32", "idle": "old", "pid": 105}, {"user": "kbrazil", "tty": "ttys000", "time": "Feb 13 16:44", "idle": "00:02", "pid": 51217, "comment": "term=0 exit=0"}, {"user": "kbrazil", "tty": "ttys001", "time": "Feb 11 21:25", "idle": "00:02", "pid": 81390}, {"user": "kbrazil", "tty": "ttys002", "time": "Mar 1 15:18", "idle": ".", "pid": 9574}, {"user": "kbrazil", "tty": "ttys003", "time": "Feb 28 08:59", "idle": "01:06", "pid": 41402}, {"user": "kbrazil", "tty": "ttys004", "time": "Mar 1 17:11", "idle": ".", "pid": 15679, "comment": "term=0 exit=0"}] diff --git a/tests/fixtures/osx-10.14.6/who-a.out b/tests/fixtures/osx-10.14.6/who-a.out new file mode 100644 index 00000000..d23a0cce --- /dev/null +++ b/tests/fixtures/osx-10.14.6/who-a.out @@ -0,0 +1,9 @@ +USER LINE WHEN IDLE PID COMMENT +reboot ~ Feb 7 23:31 . 1 +kbrazil console Feb 7 23:32 old 105 +kbrazil ttys000 Feb 13 16:44 00:02 51217 term=0 exit=0 +kbrazil ttys001 Feb 11 21:25 00:02 81390 +kbrazil ttys002 Mar 1 15:18 . 9574 +kbrazil ttys003 Feb 28 08:59 01:06 41402 +kbrazil ttys004 Mar 1 17:11 . 15679 term=0 exit=0 + . run-level 3 diff --git a/tests/fixtures/osx-10.14.6/who.json b/tests/fixtures/osx-10.14.6/who.json new file mode 100644 index 00000000..2ffaee92 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/who.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "console", "time": "Feb 7 23:32"}, {"user": "kbrazil", "tty": "ttys001", "time": "Feb 11 21:25"}, {"user": "kbrazil", "tty": "ttys002", "time": "Mar 1 15:18"}, {"user": "kbrazil", "tty": "ttys003", "time": "Feb 28 08:59"}] diff --git a/tests/fixtures/osx-10.14.6/who.out b/tests/fixtures/osx-10.14.6/who.out new file mode 100644 index 00000000..7adb0c7f --- /dev/null +++ b/tests/fixtures/osx-10.14.6/who.out @@ -0,0 +1,4 @@ +kbrazil console Feb 7 23:32 +kbrazil ttys001 Feb 11 21:25 +kbrazil ttys002 Mar 1 15:18 +kbrazil ttys003 Feb 28 08:59 diff --git a/tests/fixtures/ubuntu-18.04/who-a.json b/tests/fixtures/ubuntu-18.04/who-a.json new file mode 100644 index 00000000..714a8460 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/who-a.json @@ -0,0 +1 @@ +[{"event": "reboot", "time": "2020-03-02 02:52"}, {"user": "kbrazil", "writeable_tty": "-", "tty": "ttyS0", "time": "2020-03-02 02:52", "idle": ".", "pid": 1983}, {"event": "run-level 5", "time": "2020-03-02 02:52"}, {"event": "login", "tty": "tty1", "time": "2020-03-02 02:52", "pid": 1199, "comment": "id=tty1"}, {"user": "kbrazil", "writeable_tty": "+", "tty": "pts/0", "time": "2020-03-02 02:54", "idle": ".", "pid": 2176, "from": "192.168.71.1"}] diff --git a/tests/fixtures/ubuntu-18.04/who-a.out b/tests/fixtures/ubuntu-18.04/who-a.out new file mode 100644 index 00000000..86e27b37 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/who-a.out @@ -0,0 +1,6 @@ +NAME LINE TIME IDLE PID COMMENT EXIT + system boot 2020-03-02 02:52 +kbrazil - ttyS0 2020-03-02 02:52 . 1983 + run-level 5 2020-03-02 02:52 +LOGIN tty1 2020-03-02 02:52 1199 id=tty1 +kbrazil + pts/0 2020-03-02 02:54 . 2176 (192.168.71.1) diff --git a/tests/fixtures/ubuntu-18.04/who.json b/tests/fixtures/ubuntu-18.04/who.json new file mode 100644 index 00000000..060b909d --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/who.json @@ -0,0 +1 @@ +[{"user": "kbrazil", "tty": "ttyS0", "time": "2020-03-02 02:52"}, {"user": "kbrazil", "tty": "pts/0", "time": "2020-03-02 02:54", "from": "192.168.71.1"}] diff --git a/tests/fixtures/ubuntu-18.04/who.out b/tests/fixtures/ubuntu-18.04/who.out new file mode 100644 index 00000000..64505cf5 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/who.out @@ -0,0 +1,3 @@ +NAME LINE TIME COMMENT +kbrazil ttyS0 2020-03-02 02:52 +kbrazil pts/0 2020-03-02 02:54 (192.168.71.1)