Adding a failing test for the gap handling discussed in #29
authorClaudius Coenen <opensource@amenthes.de>
Mon, 21 Sep 2015 18:16:45 +0000 (18:16 +0000)
committerClaudius Coenen <opensource@amenthes.de>
Mon, 21 Sep 2015 18:16:45 +0000 (18:16 +0000)
tests/gap-handling.cfg [new file with mode: 0644]
tests/gap-handling.log [new file with mode: 0644]
tests/gap-handling.out [new file with mode: 0644]
tests/test.hs

diff --git a/tests/gap-handling.cfg b/tests/gap-handling.cfg
new file mode 100644 (file)
index 0000000..0779fbd
--- /dev/null
@@ -0,0 +1 @@
+tag Program:$current.program
diff --git a/tests/gap-handling.log b/tests/gap-handling.log
new file mode 100644 (file)
index 0000000..2b2f5ba
Binary files /dev/null and b/tests/gap-handling.log differ
diff --git a/tests/gap-handling.out b/tests/gap-handling.out
new file mode 100644 (file)
index 0000000..dbc2e21
--- /dev/null
@@ -0,0 +1,10 @@
+Intervals for category "Program"                                                                                                                  
+================================
+__________________Tag_|______________From_|_____________Until_|_Duration_
+gnome-terminal-server | 09/20/15 14:24:03 | 09/20/15 14:25:12 |    1m19s
+            Navigator | 09/20/15 14:25:22 | 09/20/15 14:26:12 |      50s
+            Navigator | 09/20/15 14:49:31 | 09/20/15 14:55:31 |    6m10s
+gnome-terminal-server | 09/20/15 14:55:41 | 09/20/15 14:56:21 |      40s
+gnome-terminal-server | 09/20/15 18:51:47 | 09/20/15 18:52:07 |      30s
+            Navigator | 09/20/15 18:52:17 | 09/20/15 18:53:45 |    1m38s
+gnome-terminal-server | 09/20/15 18:53:55 | 09/20/15 18:54:15 |      30s
index 9ce2384..cd01db6 100644 (file)
@@ -71,6 +71,9 @@ goldenTests = testGroup "Golden tests"
     , goldenVsString "stats small unicode"
         "tests/unicode_stats.out" $
         run "dist/build/arbtt-stats/arbtt-stats" ["--logfile", "tests/unicode.log", "--categorize", "tests/unicode.cfg"] B.empty
+    , goldenVsString "stats gap handling"
+        "tests/gap-handling.out" $
+        run "dist/build/arbtt-stats/arbtt-stats" ["--logfile", "tests/gap-handling.log", "--categorize", "tests/gap-handling.cfg", "--intervals", "Program:"] B.empty
     ]