]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: check timestamp formats
authorSami Kerola <kerolasa@iki.fi>
Sun, 22 Mar 2015 23:05:29 +0000 (23:05 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Mar 2015 09:34:49 +0000 (10:34 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests/expected/dmesg/indentation
tests/ts/dmesg/indentation

index e32d87fac78843c31a4f980889ec946c8ef282ad..0d0b6e44817d81bb2c0b308a604a598113a58ace 100644 (file)
@@ -18,3 +18,18 @@ line
 two
 new
 lines
+[Feb13 23:31] new
+              line
+[  +1.000000] two
+              new
+              lines
+[Fri Feb 13 23:31:31 2009] new
+                           line
+[Fri Feb 13 23:31:32 2009] two
+                           new
+                           lines
+2009-02-13T23:31:31,000000+0000 new
+                                line
+2009-02-13T23:31:32,000000+0000 two
+                                new
+                                lines
index 624dd9b4925281696844af913b173e3cc76e0383..11a9e566267ee12ae8ad0efdbd957870a05d480b 100755 (executable)
@@ -28,4 +28,10 @@ $TS_HELPER_DMESG --time-format=delta --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1
 
 $TS_HELPER_DMESG --time-format=notime --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1
 
+$TS_HELPER_DMESG --time-format=reltime --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1
+
+$TS_HELPER_DMESG --time-format=ctime --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1
+
+$TS_HELPER_DMESG --time-format=iso --file $TS_SELF/newlines >> $TS_OUTPUT 2>&1
+
 ts_finalize