From acc57d8f388d68c5473f654d4c6053a78ab4744d Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 22 Mar 2015 23:05:29 +0000 Subject: [PATCH] tests: check timestamp formats Signed-off-by: Sami Kerola --- tests/expected/dmesg/indentation | 15 +++++++++++++++ tests/ts/dmesg/indentation | 6 ++++++ 2 files changed, 21 insertions(+) diff --git a/tests/expected/dmesg/indentation b/tests/expected/dmesg/indentation index e32d87fac7..0d0b6e4481 100644 --- a/tests/expected/dmesg/indentation +++ b/tests/expected/dmesg/indentation @@ -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 diff --git a/tests/ts/dmesg/indentation b/tests/ts/dmesg/indentation index 624dd9b492..11a9e56626 100755 --- a/tests/ts/dmesg/indentation +++ b/tests/ts/dmesg/indentation @@ -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 -- 2.47.3