Commit graph

5326 commits

Author SHA1 Message Date
Renato Alves
53fd37cae2 Unittest - Also propagate the correct exit code 2014-10-10 16:42:41 +01:00
Renato Alves
40a95e1196 Unittest - Fix case where exit code was incorrectly registered 2014-10-10 16:19:39 +01:00
Paul Beckingham
cabc099def Portability
- Missing include.
2014-10-10 10:07:43 -04:00
Renato Alves
a7e2dfcbcc Unittest - Include additional test cases mentioned in the bugtracker 2014-10-10 12:13:20 +01:00
Paul Beckingham
94e243d8d0 Hooks
- Added 'read -t 1' as an example for the on-exit sample hook.
2014-10-09 19:05:24 -04:00
Paul Beckingham
39469a1917 Color
- Supports 'color.label.sort' for column labels of sort columns.
2014-10-09 19:04:59 -04:00
Paul Beckingham
aac0753b07 ViewTask
- Supports the notion of different colors for sorted columns.
2014-10-09 18:55:39 -04:00
Paul Beckingham
489750c80a Errors
- Added error handling for std::bad_alloc.
2014-10-09 18:09:38 -04:00
Renato Alves
dffd4c0477 Unittest - Remove redundant checks
self.t == self.runSuccess -> fails if exit code is != 0
2014-10-09 13:17:12 +01:00
Renato Alves
27f21d375b Unittest - Clarify documentation of runSuccess/runError 2014-10-09 13:16:47 +01:00
Renato Alves
72823a453f Unittest - Helpers to manage hook scripts during tests 2014-10-08 20:29:56 +01:00
Paul Beckingham
0a234ec2ba Documentation
- Noted the deprecated status of 'limit:N'.
2014-10-07 23:23:48 -04:00
Paul Beckingham
9b7fa8b7ec Parser
- No point checking return value of 'new' operator, because it throws.
2014-10-07 23:12:03 -04:00
Paul Beckingham
4513248360 Task
- Upgrades UDA values of type 'duration' to supported values.
2014-10-07 22:49:46 -04:00
Paul Beckingham
b972c2c6c8 Task
- Improved structure of legacy duration value upgrades, so it can be used for
  other things, namely UDA durations.
2014-10-07 22:38:44 -04:00
Paul Beckingham
1a5fb437a5 Task
- Upgrades legacy recur values.
2014-10-07 00:24:03 -04:00
Paul Beckingham
108a4c7959 Documentation
- Added rc.debug.parser.
2014-10-06 23:27:53 -04:00
Paul Beckingham
f0e4f3f4dc Parser
- Modified to obey rc.debug.parser.
2014-10-06 23:26:53 -04:00
Paul Beckingham
fa011c5bfb Filter
- Modified diagnostics to observe rc.debug.parser.
2014-10-06 23:25:31 -04:00
Paul Beckingham
8eb773b263 Context
- Corrected comment.
2014-10-06 23:24:28 -04:00
Paul Beckingham
d2ca1c498c Documentation
- Added not about debug value propagation.
2014-10-06 23:13:23 -04:00
Paul Beckingham
8ca096689c Util
- Minor formatting.
2014-10-06 23:10:19 -04:00
Paul Beckingham
0075dbe429 Documentation
- Removed 'extensions' mention, and improved 'debug.tls' section.
2014-10-06 23:06:29 -04:00
Paul Beckingham
02c3925ec6 Config
- Removed obsolete (or rather, unused) 'extensions' variable.
2014-10-06 23:05:53 -04:00
Paul Beckingham
7521dc56e8 Hooks
- Supports 'debug.hooks' configuration setting.
2014-10-06 23:04:44 -04:00
Paul Beckingham
b34fd64a9c Parser
- Updated comments.
2014-10-05 11:45:08 -04:00
Paul Beckingham
fa22cff5be Context
- rc.debug.hooks and rc.debug.parser are now valid settings.  They are
  not yet obeyed.
2014-10-04 19:20:38 -04:00
Paul Beckingham
a71d4f1596 Context
- Setting rc.debug implicitly sets debug.tls, debug.parser and debug.hooks.
2014-10-04 19:12:23 -04:00
Paul Beckingham
c360923909 Config
- Added a :has method to detect settings that have no default value.
2014-10-04 19:10:59 -04:00
Paul Beckingham
015575295c Unit Tests
- Corrected test description in for 1110.
2014-10-04 18:25:55 -04:00
Wilhelm Schuermann
d5648b511c Util
- Added includes to make FreeBSD happy.
- Added more error handling.
2014-10-03 14:15:11 -04:00
Wilhelm Schuermann
ffc456be88 Hooks
- Cleaned up on-add.the example hook; now works with huge input without falling over.
2014-10-02 14:50:52 -04:00
Wilhelm Schuermann
1fa4c8ff7b Util
- Reimplemented execute(), this time (hopefully) deadlock-proof.
- Added error handling.
2014-10-02 14:50:47 -04:00
Paul Beckingham
e59a48080c Variant
- ::operator_partial was not treating the status field as a special caseless
  compare, like operator== does.
2014-10-01 18:58:28 -04:00
Paul Beckingham
5c485f6c53 Parser
- Modified ':' to perform partial matches, which means dates now match
  on same day.
2014-10-01 18:31:50 -04:00
Paul Beckingham
47cfe515e6 Unit Tests
- Fixed cal.t test that fails when EOY is within 3 months.
2014-10-01 18:30:36 -04:00
Paul Beckingham
d2d270f486 Documentation
- Added note in the NEWS file about deprecated future features.
- Updated ChangeLog with 'taskd.trust' change.
2014-09-28 18:00:58 -04:00
Paul Beckingham
fe46dadeee TLS
- When an invalid value for 'taskd.trust' is noticed, the 'sync' command will
  error out, and the 'diag' command will refer the user to the man page.
  This is because the allowed values were 'yes'/'no', and now are
  'strict'/'ignore hostname'/'allow all'.
2014-09-28 17:42:14 -04:00
Paul Beckingham
dcc5dbf16a Variant
- The ::operator_match (and by extension operator_nomatch) now obey the rc.regex
  setting.
2014-09-28 13:39:50 -04:00
Paul Beckingham
9e0ea1cb4a Eval
- Better error message for malformed expressions, ie when a binary operator
  expects two values, and sees less then two or when a unary operator sees
  less than one.
2014-09-27 17:08:26 -04:00
Paul Beckingham
071cf55c00 Unit Tests
- Added a default 'hooks=off' to the basetest class, after it was discovered
  that the scan for runnable hooks takes non-trivial time.
2014-09-27 16:49:06 -04:00
Paul Beckingham
61bed34a19 Performance
- Generalized the perf scripts a little, to make it easier to test old versions.
2014-09-27 16:10:50 -04:00
Paul Beckingham
d44c8c5147 Config
- Removed redundant sorting for the 'list' report.
2014-09-27 15:26:07 -04:00
Paul Beckingham
0c3ee68f64 Performance
- Hooks should be disabled for all tests.
2014-09-27 15:24:47 -04:00
Paul Beckingham
c81ae48590 Unit Tests
- Added diag.t, which simply runs the 'diagnostics' command and captures output.
  The output will be gathered and stored by Flod, which means we can monitor the
  platform characteristics.
2014-09-27 11:55:30 -04:00
Paul Beckingham
b4eed6333a Diagnostics
- Included C++ compiler compliance level. If 'diag' output is then included in
  the test suite, we can monitor compliance across platforms, and decide when
  to use new features.
2014-09-27 11:51:17 -04:00
Paul Beckingham
a3d53b401f Unit Tests
- Renamed bug.1418.t to tw-1418.t, the new convention.
2014-09-27 10:41:18 -04:00
Ralph Bean
d2222a4082 Unit Tests
- Added a set of failing tests for the 'filters in operators' bug:
  https://bug.tasktools.org/browse/TW-1418
2014-09-27 10:39:26 -04:00
Paul Beckingham
69d4e0392b CmdCustom
- Removed a vector of column labels that is simply not used.
2014-09-20 14:12:39 -04:00
Paul Beckingham
9bb1dbbd4d ViewTask
- Improved locality, for readability, while debugging column TW-1417.
2014-09-20 14:11:59 -04:00