summaryrefslogtreecommitdiffstats
path: root/tests/expected/utmp
diff options
context:
space:
mode:
authorRuediger Meier2014-06-11 17:47:34 +0200
committerRuediger Meier2014-06-11 23:08:49 +0200
commit02229b5519ac77dec26d829c6be14e826d4611bc (patch)
treef5b100eb43d400e30026484adabd0232edcc635b /tests/expected/utmp
parentutmpdump: fix localtime() error handling (diff)
downloadkernel-qcow2-util-linux-02229b5519ac77dec26d829c6be14e826d4611bc.tar.gz
kernel-qcow2-util-linux-02229b5519ac77dec26d829c6be14e826d4611bc.tar.xz
kernel-qcow2-util-linux-02229b5519ac77dec26d829c6be14e826d4611bc.zip
tests: merge last/ and utmpdump/ into new utmp/ dir
We want to prepare and simplify utmp sepcific fixes. Beside all this renaming we also update/add some text data to have it more consistent. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/expected/utmp')
-rw-r--r--tests/expected/utmp/last138
-rw-r--r--tests/expected/utmp/last-ipv620
-rw-r--r--tests/expected/utmp/utmpdump-tobin1
-rw-r--r--tests/expected/utmp/utmpdump-tobin-ipv61
-rw-r--r--tests/expected/utmp/utmpdump-totxt10
-rw-r--r--tests/expected/utmp/utmpdump-totxt-ipv62
6 files changed, 172 insertions, 0 deletions
diff --git a/tests/expected/utmp/last b/tests/expected/utmp/last
new file mode 100644
index 000000000..2958152bc
--- /dev/null
+++ b/tests/expected/utmp/last
@@ -0,0 +1,138 @@
+~~~ basic output ~~~
+rick long never-gonna-logo Thu Jan 1 00:00 - 03:14 (24855+03:14)
+torvalds linux hobby Mon Aug 26 00:57 gone - no logout
+reboot system boot system-name Wed Aug 28 18:00 still running
+reboot system boot system-name Wed Aug 28 16:00 - 17:00 (01:00)
+IPv4 root dns-server Wed Aug 28 13:00 - 14:00 (01:00)
+nonvalid foo zero Wed Aug 28 12:00 - down (03:00)
+runlevel foo one Wed Aug 28 11:00 - 12:00 (01:00)
+sysboot foo two Wed Aug 28 10:00 - 11:00 (01:00)
+newtime foo three Wed Aug 28 09:00 - 10:00 (01:00)
+oldtime foo four Wed Aug 28 08:00 - 09:00 (01:00)
+init foo five Wed Aug 28 07:00 - 08:00 (01:00)
+login foo six Wed Aug 28 06:00 - 07:00 (01:00)
+user_pro foo seven Wed Aug 28 05:00 - 06:00 (01:00)
+accounti foo nine Wed Aug 28 03:00 - 04:00 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ include system ~~~
+rick long never-gonna-logo Thu Jan 1 00:00 - 03:14 (24855+03:14)
+torvalds linux hobby Mon Aug 26 00:57 gone - no logout
+reboot system boot system-name Wed Aug 28 18:00 still running
+shutdown system down system-name Wed Aug 28 17:00 - 18:00 (01:00)
+reboot system boot system-name Wed Aug 28 16:00 - 17:00 (01:00)
+shutdown system down system-name Wed Aug 28 15:00 - 16:00 (01:00)
+IPv4 root dns-server Wed Aug 28 13:00 - 14:00 (01:00)
+nonvalid foo zero Wed Aug 28 12:00 - down (03:00)
+runlevel foo one Wed Aug 28 11:00 - 12:00 (01:00)
+sysboot foo two Wed Aug 28 10:00 - 11:00 (01:00)
+newtime foo three Wed Aug 28 09:00 - 10:00 (01:00)
+oldtime foo four Wed Aug 28 08:00 - 09:00 (01:00)
+init foo five Wed Aug 28 07:00 - 08:00 (01:00)
+login foo six Wed Aug 28 06:00 - 07:00 (01:00)
+user_pro foo seven Wed Aug 28 05:00 - 06:00 (01:00)
+accounti foo nine Wed Aug 28 03:00 - 04:00 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ dns short ~~~
+IPv4 root a.root-servers.n Wed Aug 28 13:00 - 14:00 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ dns long ~~~
+IPv4 root a.root-servers.net Wed Aug 28 13:00 - 14:00 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ dns host last ~~~
+IPv4 root Wed Aug 28 13:00 - 14:00 (01:00) a.root-servers.net
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ show ip ~~~
+torvalds linux 128.214.205.14 Mon Aug 26 00:57 gone - no logout
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ no host ~~~
+torvalds linux Mon Aug 26 00:57 gone - no logout
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ full times shortopt ~~~
+rick long never-gonna-logo Thu Jan 1 00:00:00 1970 - Tue Jan 19 03:14:07 2038 (24855+03:14)
+torvalds linux hobby Mon Aug 26 00:57:08 1991 gone - no logout
+reboot system boot system-name Wed Aug 28 18:00:00 2013 still running
+reboot system boot system-name Wed Aug 28 16:00:00 2013 - Wed Aug 28 17:00:00 2013 (01:00)
+IPv4 root dns-server Wed Aug 28 13:00:00 2013 - Wed Aug 28 14:00:00 2013 (01:00)
+nonvalid foo zero Wed Aug 28 12:00:00 2013 - down (03:00)
+runlevel foo one Wed Aug 28 11:00:00 2013 - Wed Aug 28 12:00:00 2013 (01:00)
+sysboot foo two Wed Aug 28 10:00:00 2013 - Wed Aug 28 11:00:00 2013 (01:00)
+newtime foo three Wed Aug 28 09:00:00 2013 - Wed Aug 28 10:00:00 2013 (01:00)
+oldtime foo four Wed Aug 28 08:00:00 2013 - Wed Aug 28 09:00:00 2013 (01:00)
+init foo five Wed Aug 28 07:00:00 2013 - Wed Aug 28 08:00:00 2013 (01:00)
+login foo six Wed Aug 28 06:00:00 2013 - Wed Aug 28 07:00:00 2013 (01:00)
+user_pro foo seven Wed Aug 28 05:00:00 2013 - Wed Aug 28 06:00:00 2013 (01:00)
+accounti foo nine Wed Aug 28 03:00:00 2013 - Wed Aug 28 04:00:00 2013 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ full times longopt ~~~
+rick long never-gonna-logo Thu Jan 1 00:00:00 1970 - Tue Jan 19 03:14:07 2038 (24855+03:14)
+torvalds linux hobby Mon Aug 26 00:57:08 1991 gone - no logout
+reboot system boot system-name Wed Aug 28 18:00:00 2013 still running
+reboot system boot system-name Wed Aug 28 16:00:00 2013 - Wed Aug 28 17:00:00 2013 (01:00)
+IPv4 root dns-server Wed Aug 28 13:00:00 2013 - Wed Aug 28 14:00:00 2013 (01:00)
+nonvalid foo zero Wed Aug 28 12:00:00 2013 - down (03:00)
+runlevel foo one Wed Aug 28 11:00:00 2013 - Wed Aug 28 12:00:00 2013 (01:00)
+sysboot foo two Wed Aug 28 10:00:00 2013 - Wed Aug 28 11:00:00 2013 (01:00)
+newtime foo three Wed Aug 28 09:00:00 2013 - Wed Aug 28 10:00:00 2013 (01:00)
+oldtime foo four Wed Aug 28 08:00:00 2013 - Wed Aug 28 09:00:00 2013 (01:00)
+init foo five Wed Aug 28 07:00:00 2013 - Wed Aug 28 08:00:00 2013 (01:00)
+login foo six Wed Aug 28 06:00:00 2013 - Wed Aug 28 07:00:00 2013 (01:00)
+user_pro foo seven Wed Aug 28 05:00:00 2013 - Wed Aug 28 06:00:00 2013 (01:00)
+accounti foo nine Wed Aug 28 03:00:00 2013 - Wed Aug 28 04:00:00 2013 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ no time ~~~
+rick long never-gonna-logo (24855+03:14)
+torvalds linux hobby no logout
+reboot system boot system-name running
+reboot system boot system-name (01:00)
+IPv4 root dns-server (01:00)
+nonvalid foo zero (03:00)
+runlevel foo one (01:00)
+sysboot foo two (01:00)
+newtime foo three (01:00)
+oldtime foo four (01:00)
+init foo five (01:00)
+login foo six (01:00)
+user_pro foo seven (01:00)
+accounti foo nine (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ iso-8601 time ~~~
+rick long never-gonna-logout 1970-01-01T00:00:00+0000 - 2038-01-19T03:14:07+0000 (24855+03:14)
+torvalds linux hobby 1991-08-26T00:57:08+0000 gone - no logout
+reboot system boot system-name 2013-08-28T18:00:00+0000 still running
+reboot system boot system-name 2013-08-28T16:00:00+0000 - 2013-08-28T17:00:00+0000 (01:00)
+IPv4 root dns-server 2013-08-28T13:00:00+0000 - 2013-08-28T14:00:00+0000 (01:00)
+nonvalid foo zero 2013-08-28T12:00:00+0000 - down (03:00)
+runlevel foo one 2013-08-28T11:00:00+0000 - 2013-08-28T12:00:00+0000 (01:00)
+sysboot foo two 2013-08-28T10:00:00+0000 - 2013-08-28T11:00:00+0000 (01:00)
+newtime foo three 2013-08-28T09:00:00+0000 - 2013-08-28T10:00:00+0000 (01:00)
+oldtime foo four 2013-08-28T08:00:00+0000 - 2013-08-28T09:00:00+0000 (01:00)
+init foo five 2013-08-28T07:00:00+0000 - 2013-08-28T08:00:00+0000 (01:00)
+login foo six 2013-08-28T06:00:00+0000 - 2013-08-28T07:00:00+0000 (01:00)
+user_process foo seven 2013-08-28T05:00:00+0000 - 2013-08-28T06:00:00+0000 (01:00)
+accounting foo nine 2013-08-28T03:00:00+0000 - 2013-08-28T04:00:00+0000 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ since and until ~~~
+oldtime foo four Wed Aug 28 08:00 gone - no logout
+init foo five Wed Aug 28 07:00 - 08:00 (01:00)
+login foo six Wed Aug 28 06:00 - 07:00 (01:00)
+user_pro foo seven Wed Aug 28 05:00 - 06:00 (01:00)
+accounti foo nine Wed Aug 28 03:00 - 04:00 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
+~~~ present ~~~
+rick long never-gonna-logo Thu Jan 1 00:00 - 03:14 (24855+03:14)
+torvalds linux hobby Mon Aug 26 00:57 gone - no logout
+runlevel foo one Wed Aug 28 11:00 - 12:00 (01:00)
+
+wtmp-a begins Wed Aug 28 03:00:00 2013
diff --git a/tests/expected/utmp/last-ipv6 b/tests/expected/utmp/last-ipv6
new file mode 100644
index 000000000..5be77298a
--- /dev/null
+++ b/tests/expected/utmp/last-ipv6
@@ -0,0 +1,20 @@
+~~~ dns short ~~~
+IPv6 root a.root-servers.n Wed Aug 28 20:30 - 20:40 (00:10)
+
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
+~~~ dns long ~~~
+IPv6 root a.root-servers.net Wed Aug 28 20:30 - 20:40 (00:10)
+
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
+~~~ dns host last ~~~
+IPv6 root Wed Aug 28 20:30 - 20:40 (00:10) a.root-servers.net
+
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
+~~~ show ip ~~~
+IPv6 root 2001:503:ba3e::2 Wed Aug 28 20:30 - 20:40 (00:10)
+
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
+~~~ show ip last ~~~
+IPv6 root Wed Aug 28 20:30 - 20:40 (00:10) 2001:503:ba3e::2:30
+
+wtmp-ipv6 begins Wed Aug 28 20:30:40 2013
diff --git a/tests/expected/utmp/utmpdump-tobin b/tests/expected/utmp/utmpdump-tobin
new file mode 100644
index 000000000..d0f1b61c2
--- /dev/null
+++ b/tests/expected/utmp/utmpdump-tobin
@@ -0,0 +1 @@
+no diff
diff --git a/tests/expected/utmp/utmpdump-tobin-ipv6 b/tests/expected/utmp/utmpdump-tobin-ipv6
new file mode 100644
index 000000000..d0f1b61c2
--- /dev/null
+++ b/tests/expected/utmp/utmpdump-tobin-ipv6
@@ -0,0 +1 @@
+no diff
diff --git a/tests/expected/utmp/utmpdump-totxt b/tests/expected/utmp/utmpdump-totxt
new file mode 100644
index 000000000..02fb22d5f
--- /dev/null
+++ b/tests/expected/utmp/utmpdump-totxt
@@ -0,0 +1,10 @@
+[7] [17058] [ts/1] [kerolasa] [pts/1 ] [:0.0 ] [0.0.0.0 ] [Wed Jan 16 23:44:09 2013 GMT]
+[7] [22098] [ts/2] [kerolasa] [pts/2 ] [:0.0 ] [0.0.0.0 ] [Wed Jan 16 23:49:17 2013 GMT]
+[7] [24915] [ts/3] [kerolasa] [pts/3 ] [:0.0 ] [0.0.0.0 ] [Thu Jan 17 12:23:33 2013 GMT]
+[8] [24915] [ts/3] [kerolasa] [pts/3 ] [ ] [0.0.0.0 ] [Thu Jan 17 12:24:49 2013 GMT]
+[7] [30629] [ts/3] [kerolasa] [pts/3 ] [:0.0 ] [0.0.0.0 ] [Thu Jan 17 13:12:39 2013 GMT]
+[8] [30629] [ts/3] [kerolasa] [pts/3 ] [ ] [0.0.0.0 ] [Thu Jan 17 13:42:19 2013 GMT]
+[8] [22098] [ts/2] [kerolasa] [pts/2 ] [ ] [0.0.0.0 ] [Thu Jan 17 13:42:48 2013 GMT]
+[8] [17058] [ts/1] [kerolasa] [pts/1 ] [ ] [0.0.0.0 ] [Thu Jan 17 13:42:48 2013 GMT]
+[7] [31545] [ts/1] [kerolasa] [pts/1 ] [:0.0 ] [0.0.0.0 ] [Thu Jan 17 20:17:21 2013 GMT]
+[7] [28496] [ts/2] [kerolasa] [pts/2 ] [:0.0 ] [0.0.0.0 ] [Thu Jan 17 21:09:39 2013 GMT]
diff --git a/tests/expected/utmp/utmpdump-totxt-ipv6 b/tests/expected/utmp/utmpdump-totxt-ipv6
new file mode 100644
index 000000000..5cce1506b
--- /dev/null
+++ b/tests/expected/utmp/utmpdump-totxt-ipv6
@@ -0,0 +1,2 @@
+[7] [00010] [ipv6] [IPv6 ] [root ] [dns-server ] [2001:503:ba3e::2:30] [Wed Aug 28 20:30:40 2013 GMT]
+[8] [00011] [ipv6] [IPv6 ] [root ] [dns-server ] [2001:503:ba3e::2:30] [Wed Aug 28 20:40:50 2013 GMT]