Commit graph

483 commits

Author SHA1 Message Date
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
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
Thomas Lauf
42acf839d9 Add descriptions to interval assertions 2019-01-19 10:32:00 +01:00
Thomas Lauf
6958c3a7f8 Create test data depending on the point in time the test runs 2019-01-19 10:32:00 +01:00
Thomas Lauf
c2546bacd8 Fix package name in pip install command 2019-01-13 23:34:18 +01:00
Thomas Lauf
b3f838aa65 Install dateutil via pip 2019-01-13 23:20:49 +01:00
Thomas Lauf
bb0539468a Setting environment variable via ENV 2019-01-13 23:17:24 +01:00
Thomas Lauf
368be8397e Remove comment 2019-01-13 22:19:40 +01:00
Thomas Lauf
50b15463bb Set timezone to Europe/Berlin via TZ environment variable 2019-01-13 22:07:53 +01:00
Thomas Lauf
65453fcf98 Install python-dateutil and set timezone on fedora 29 2019-01-07 22:16:09 +01:00
Thomas Lauf
595ec2ea8a Set timezone on fedora 28 2019-01-07 22:08:11 +01:00
Thomas Lauf
fc42580bbd Set timezone on openSUSE 2019-01-07 22:07:28 +01:00
Thomas Lauf
bdbb766a53 Add check for timedatectl on fedora 28 2019-01-07 21:53:51 +01:00
Thomas Lauf
7d50ba925f Install python-dateutil on centOS 7 2019-01-07 21:50:42 +01:00
Thomas Lauf
f6ac47d222 Install python-dateutil on openSUSE 2019-01-07 21:48:13 +01:00
Thomas Lauf
8e61ab830d Run timedatectl to debug container 2019-01-07 21:34:34 +01:00
Thomas Lauf
f843b6e732 Add sleep to fix clock test 2019-01-07 21:33:05 +01:00
Thomas Lauf
0199f2db7d Explicitly set timezone to Europe/Berlin on fedora 28 2019-01-07 21:11:40 +01:00
Thomas Lauf
092003f4cb Add missing 'yes' option 2019-01-07 20:45:12 +01:00
Thomas Lauf
f44840b131 Install python-dateutil on fedora 28 2019-01-07 20:38:37 +01:00
Thomas Lauf
2418d6f51a Apply ubuntu-fix to debian 2019-01-07 07:01:08 +01:00
Thomas Lauf
ba18e10326 Fix install of tzdata and configure timezone for ubuntu 18.04 2019-01-07 06:56:24 +01:00
Thomas Lauf
62dd70f999 Set timezone to Europe/Berlin
- Necessary as export.t fails on timezone Etc/UTC (needs to be investigated!)
2019-01-07 06:42:57 +01:00
Thomas Lauf
5a73150b6e Remove explicit setting of timezone
- Seems not necessary, default timezone UTC should suffice
2019-01-06 23:03:37 +01:00
Thomas Lauf
d11a73d1d7 Try to fix install of tzdata 2019-01-06 22:54:36 +01:00
Thomas Lauf
a5ae4d03cc Move install of python-dateutil to ubuntu docker-config 2019-01-06 22:25:40 +01:00
Tomas Babej
92a8029598 tests: Fix version printout 2019-01-06 21:03:43 +01:00
Tomas Babej
d12922d345 tests: Remove stale submodule directory gtest-tap-listener 2019-01-06 21:03:43 +01:00
Tomas Babej
8252dfc306 tests: Remove stale 'googletest' submodule 2019-01-06 21:03:43 +01:00