Defined time zone for test
authorJoachim Breitner <mail@joachim-breitner.de>
Sun, 28 Mar 2010 21:00:31 +0000 (21:00 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Sun, 28 Mar 2010 21:00:31 +0000 (21:00 +0000)
test/arbtt-stats_small.case
test/in/small.cfg [new file with mode: 0644]
test/out/small_stats.out

index cba23d8..9595b11 100644 (file)
@@ -1,4 +1,4 @@
 name: arbtt-stats_small
-call: ../dist/build/arbtt-stats/arbtt-stats --logfile in/small.log
+call: TZ=Ghana/Accra ../dist/build/arbtt-stats/arbtt-stats --logfile in/small.log --categorize in/small.cfg
 in: /dev/null
 out: out/small_stats.out
diff --git a/test/in/small.cfg b/test/in/small.cfg
new file mode 100644 (file)
index 0000000..7467f57
--- /dev/null
@@ -0,0 +1,4 @@
+current window $title =~ m/arbtt/ ==> tag arbtt,
+
+$time < 14:00 ==> tag before_14
+
index 8545d9a..a89be1c 100644 (file)
@@ -1,7 +1,5 @@
 Total time per tag
 ==================
-__________________Tag_|___Time_|_Percentage_
-        Program:urxvt |  3m00s |     100.00
-             last-day |  3m00s |     100.00
-time-of-day:afternoon |  2m00s |      66.67
-time-of-day:lunchtime |  1m00s |      33.33
+______Tag_|___Time_|_Percentage_
+    arbtt |  3m00s |     100.00
+before_14 |  1m00s |      33.33