Thomas Lauf
a37db57b3c
Set environment variable ENV MAN_DISABLE_SECCOMP=1
...
- See https://bugs.archlinux.org/task/57557
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-26 21:48:40 +02:00
Thomas Lauf
81c7dbc3e3
Use package man-db instead of man
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-26 21:24:54 +02:00
Thomas Lauf
e1b1eecf06
Fix dependency
...
- use groff instead of nroff
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-26 20:08:22 +02:00
Thomas Lauf
8db7aff1af
Add nroff to dependencies
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-26 19:11:47 +02:00
Thomas Lauf
cd098289f5
Add assertion for stderr
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-26 12:53:03 +02:00
Thomas Lauf
38a72afd97
Let this statement pass...
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-25 14:07:20 +02:00
Thomas Lauf
b48f4a87cd
Add some statements to debug gentoo build fail
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-25 14:00:16 +02:00
Thomas Lauf
e6b5a14927
Extend command 'annotate' to remove annotation
...
- Closes #247
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-24 23:57:30 +02:00
Thomas Lauf
21f0060899
Overhaul test
...
- Update example JSONs
- Test only for active time tracking
- Test resulting intervals, not resulting output
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-22 22:34:22 +02:00
Thomas Lauf
6d09d8fe13
Add quotes around expected/actual string in assertion message
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-22 22:33:58 +02:00
Thomas Lauf
6c1298ea4e
Add output of new-tag-warnings to check
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-17 18:16:50 +02:00
Thomas Lauf
3ec1cd715b
Make Popen spawn intermediate shell
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-16 15:25:15 +02:00
Thomas Lauf
e85cdc7546
Rename test-file
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-16 15:25:15 +02:00
Thomas Lauf
57f9982fd1
Throw error message if start date is earlier than open interval
...
Closes #240
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-02 17:54:08 +02:00
Thomas Lauf
220bdd9e5f
Add dates to command calls (fix race condition?)
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-07-01 21:56:29 +02:00
Thomas Lauf
fa2c683e3e
Install python2 along with python(3)
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-29 01:31:48 +02:00
Thomas Lauf
8b5a701eeb
Require python2 not python2.7 for tests
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-29 01:31:08 +02:00
Thomas Lauf
966256cb79
Add 'man' to list of required packages
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-24 21:25:36 +02:00
Thomas Lauf
712b4b78b2
Revert "Run test with available python"
...
This reverts commit 6b89e122
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-24 21:10:57 +02:00
Thomas Lauf
6b89e12287
Run test with available python
...
- do not enforce python 2.7
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-22 21:21:11 +02:00
Thomas Lauf
6e855cc998
Drop internal help for man pages
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-21 23:32:11 +02:00
Thomas Lauf
b15cddd562
Create tag database from existing interval database on startup
...
- Closes #224
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-08 23:00:57 +02:00
Thomas Lauf
55370ea86c
Show message if no data within given range
...
- Closes #191
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-28 22:51:57 +02:00
Thomas Lauf
037550b791
'-h' should show help
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-18 18:40:26 +02:00
Thomas Lauf
6bb4f981cb
Merge branch '212-fix-help-handling' of git://github.com/sruffell/timewarrior into sruffell-212-fix-help-handling
2019-05-07 22:08:23 +02:00
Thomas Lauf
08d2a0e15a
Add tests for command help
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-07 21:12:22 +02:00
Thomas Lauf
295b7b78f4
Wrap emerge call with keep-alive script
...
- emerge takes longer than 10 minutes for some jobs to output something
- travis kills builds that do not output something for 10 minutes
- Workaround: add a keep-alive script that echos "RUNNING" every minute for one hour. This should keep the door open long enough for emerge to finish...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-05-03 16:52:15 +02:00
Thomas Lauf
b5dc745969
Add missing 'Z' to datetime string when using UTC
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-11 16:44:52 +02:00
Thomas Lauf
daec6b1fae
Clean up .gitignore files
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-10 12:08:42 +02:00
Thomas Lauf
69de6b4412
Replace fixed time with relative time when testing timew start <datetime>
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-04-09 16:23:37 +02:00
Shaun Ruffell
c76d004897
#212 : "--help" should show help, not considered to be a tag.
...
This change makes any instance of '--help' on the command line to be made the
command for this particular invocation.
2019-04-07 16:48:24 -05:00
Thomas Lauf
ef9a5b5a0a
Rename variable day
to dates
, function current_date
to default_dates
2019-03-02 18:01:56 +01:00
Thomas Lauf
b2fd299f33
Rename function random_minute
to default_minutes
2019-03-02 18:00:19 +01:00
Thomas Lauf
29d54086f4
Fix sed RE for mac os x
2019-03-02 17:57:57 +01:00
Thomas Lauf
428d377b84
Add missing -r
option to jot
...
- Otherwise output is always `0` and not a random number
2019-03-02 17:43:50 +01:00
Thomas Lauf
a6d97365fc
Add special handling for mac os x (mojave/darwin18)
...
- date does not have option `--rfc-3339`
- `rand` is not available, use `jot` instead
2019-03-02 17:01:55 +01:00
Thomas Lauf
f05596fa1d
Extract generation of current date into function
2019-03-02 16:59:36 +01:00
Thomas Lauf
e6b409144d
Extract generation of random minute into function
2019-03-02 16:58:50 +01:00
Thomas Lauf
544ebfadb7
Extract generation of default hours
2019-03-02 16:57:28 +01:00
Thomas Lauf
b248f13172
Add check for installed libfaketime
2019-03-02 16:55:47 +01:00
Thomas Lauf
5c6bd53e02
Fix file mode
2019-02-27 22:08:29 +01:00
Thomas Lauf
c1ada61a85
Fix undo.t
...
- resulting interval has union of tags of all joined intervals
2019-02-27 21:26:10 +01:00
Thomas Lauf
455b9b9614
Fix docker-image name
...
- base/archlinux is deprecated
- rename from arch180101 to archlinux
2019-02-27 00:11:20 +01:00
Shaun Ruffell
44ed56ad38
test/tag.t: Add test for '%' character in a tag.
2019-02-26 21:56:55 +01:00
Thomas Lauf
bdb28fa744
Fix tests
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-02-15 10:16:12 +01:00
Thomas Lauf
f5bbe5e1bc
Let command join merge tags of given intervals
2019-01-20 23:25:54 +01:00
Thomas Lauf
de2c08ab82
Add test for joining closed and open interval
2019-01-20 23:16:12 +01:00
Thomas Lauf
b7cc9f2443
Make test use dynamic test data
...
- Fix test description
2019-01-20 23:12:49 +01:00
Thomas Lauf
02f05eec55
Fix filemode, faketime call
2019-01-20 23:10:17 +01:00
Thomas Lauf
68549dc22d
Add a timemachine tool script
...
- Wrapper around faketime
- Provides an interface to run tests at specific points in time
2019-01-19 10:32:00 +01:00