Commit graph

5379 commits

Author SHA1 Message Date
Paul Beckingham
2c6b3b3991 TD-79
- TD-79 Bad error message for wrong hostname configuration (thanks to Jens
        Erat).
2014-10-23 22:46:50 -04:00
Paul Beckingham
959df159fa Eval
- Code cleanup.
2014-10-23 22:42:21 -04:00
Wilhelm Schuermann
f8a44819c3 ViewTask
- Free space of empty columns if rc.print_empty_columns is set. They were previously sent into nirvana, making the ViewTask destructor miss them.
2014-10-22 23:22:41 -04:00
Renato Alves
d49a2614ba Bug - import/export now output JSON as individual objects
* For JSON as array, json.array=1 behaves as before
* Tests and add-on scripts used in import tests were updated
2014-10-20 20:21:11 +01:00
Renato Alves
b569504139 Unittest - Refresh TW-1418 which still fails on \- 2014-10-20 20:04:59 +01:00
Renato Alves
d09fcf398e Unittest - Adjust failing tests due to split of streams 2014-10-20 18:52:18 +01:00
Renato Alves
efdb31fb90 Unittest - default to not merging stdout/stderr during tests
* Tests will now check that stderr is used for errors
* Tests were adjusted to reflect the API change
2014-10-20 14:01:21 +01:00
Renato Alves
c9102fd79c Unittest - SIGABORT was not being correctly identified
* In Python if the process receives a signal, the exit code is negative
2014-10-20 13:52:02 +01:00
Renato Alves
b4f33ec0c6 Unittest - Replace None by objects representing the state of stdout/err 2014-10-20 13:29:30 +01:00
Paul Beckingham
811d0e029d Parser
- UUIDs were being rejected because the contain commas, which are actually part
  of a UUID list. This meant that 'task $UUID1,$UUID2 info' failed.
2014-10-19 23:54:08 -04:00
Paul Beckingham
87538589a6 Context
- Setting rc.debug.hooks or rc.debug.parser to non-zero values also sets
  rc.debug=true, otherwise the output is not visible.
2014-10-19 17:34:35 -04:00
Wilhelm Schuermann
cfe267f2e5 Tests
- tw-1441.t now calls runError() with merge_streams disabled.
- Taskwarrior only displays an error for the first file that is not found, so only check one.
2014-10-19 09:50:54 -04:00
Paul Beckingham
d9222606e7 Hooks
- The on-exit hook can now terminate processing.
2014-10-19 01:47:33 -04:00
Paul Beckingham
7895ea0f42 Hooks
- Added safety measure in case of a hook misfire.
- Made debug output consistent.
2014-10-19 01:32:41 -04:00
Paul Beckingham
23e2719e1a TDB2
- Restored blank line for clarity, now that duplicate debug messages are allowed.
2014-10-19 01:31:03 -04:00
Paul Beckingham
d873a15aa7 Context
- Removed the restriction that debug messages must be unique. Because it's
  insane.
2014-10-19 01:30:24 -04:00
Paul Beckingham
7e2582f2b8 Hooks
- Fixed bug where the identifier "on-modify" contained some bogus UTF8.
- Ensured that every input line has a \n.
2014-10-19 00:57:30 -04:00
Paul Beckingham
719e9d242b Hooks
- Bug due to missing reference & in calls to callHookScript.  Dumbass.
2014-10-18 23:59:40 -04:00
Paul Beckingham
f1639e6862 Hooks
- Revised all event functions to use the new callHookScript method, which is
  now common to all events.
2014-10-18 23:47:32 -04:00
Paul Beckingham
d1f6b36ecf Hooks
- Standardized formatting of hook input and output in debug.hooks mode.
2014-10-18 17:26:20 -04:00
Paul Beckingham
8d75d0c7f3 Hooks
- Reduced validation to simply checking that a description attribute is present.
  This is the bare minimum for the Task(const std::string&) contructor.
2014-10-18 17:23:39 -04:00
Paul Beckingham
21bbedbfc5 Hooks
- Now performs a full JSON parse on hook script output before accepting it as a
  task.
2014-10-18 16:59:46 -04:00
Paul Beckingham
b6be1cdc99 Hooks
- Factored out the code that determines if the JSON output from a hook script is
  actually JSON.
2014-10-18 16:55:26 -04:00
Paul Beckingham
5275c0ce60 TW-1441
- TW-1441 task import continues happily if filename doesn't exist.
2014-10-18 14:41:12 -04:00
Renato Alves
18581a6ca4 Unittest - Avoid second exception on framework tracing error
* Prevents masking of the initial exception due to a second one.
2014-10-18 01:29:01 +01:00
Renato Alves
dc4a3e8038 Unittest - dash compatibility on debian/ubuntu 2014-10-17 17:24:50 +01:00
Renato Alves
65b6875846 Unittest - Remove execute bit from template.t and unnecessary comments 2014-10-17 16:42:44 +01:00
Renato Alves
a9c9fbc7df Unittest - Only run tests that have execute bit set 2014-10-17 16:42:44 +01:00
Paul Beckingham
51f08496b5 Lexer
- When parsing '\o/' the state Lexer::typeIdentifierEscape had no exit but a
  successful outcome, and looped.
- Fixed test.
2014-10-16 21:22:34 -04:00
Renato Alves
bb060d5ff8 Unittest - Allow specifying custom timeout for slow commands.
* Useful when testing with big tasks (1000+ annotations) or sync
operations that take longer than 1 second (default)
2014-10-16 20:52:17 +01:00
Renato Alves
b236e78f2e Unittest - Testcase for TW-1438 2014-10-16 20:48:45 +01:00
Renato Alves
cf5c7abd01 Unittest - Workaround race condition when killing slow processes
* In some cases the process finishes normally very close to the timeout
2014-10-16 16:47:10 +01:00
Renato Alves
6facb140a4 Unittest - Test cases for TW-1436 2014-10-16 15:51:39 +01:00
Wilhelm Schuermann
ae9705561c Hooks
- Throw exception instead of segfaulting for on-add hooks not adhering to the specs. More work needed.
2014-10-14 15:58:24 -04:00
Renato Alves
1e14097ea5 Unittest - Add test to tw-252 to prevent future regressions 2014-10-14 15:22:52 +01:00
Paul Beckingham
8905dd1c32 Eval
- The operator classifier failed to include '!=='.
2014-10-13 21:39:51 -04:00
Richard Boß
086a3b0d11 Unit Tests
- Added unit tests for tw-1430.t.

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-10-13 18:28:06 -04:00
Paul Beckingham
a5563ba135 TW-1424
- TW-1424 Using a date of '1824days' (in the future) fails (thanks to Black Ops
          Testing).
2014-10-13 00:39:17 -04:00
Paul Beckingham
0183c8a231 TW-1420, TW-1421, TW-1422
- TW-1420 Modifying 'uuid' fails to generate error (thanks to Black Ops Testing).
- TW-1421 Modifying 'uuid' with bogus value can corrupt undo.data (thanks to
          Black Ops Testing).
- TW-1422 Attempt to modify 'id' attribute creates an id attribute (thanks to
          Black Ops Testing).
2014-10-13 00:18:01 -04:00
Paul Beckingham
1e03db77ca TW-1415
- The recurrence value 'month' is not valid (thanks for Petteri).
2014-10-12 23:57:44 -04:00
Paul Beckingham
ca14657f0c TW-1428
- Minor tweaks.
2014-10-12 23:48:55 -04:00
Johannes Schlatow
2c7013cc1c Color
- Supports 'color.uda.<name>.<value>' (TW-1428)
2014-10-12 23:44:43 -04:00
Johannes Schlatow
aa89422b6f Test
- Add test case for TW-1414
2014-10-12 23:30:59 -04:00
Paul Beckingham
f11626b0d7 Documentation
- Updated DEVELOPER, EXPOSITION docs.
2014-10-12 23:28:58 -04:00
Paul Beckingham
ab8e3c9faa Documentation
- Reference PDF updated.
2014-10-12 23:12:54 -04:00
Paul Beckingham
2a13b99720 Documentation
- Clarified taskrc man page purpose.
2014-10-12 23:05:54 -04:00
Federico Hernandez
1cb1ceae08 Bumping version number to beta2 2014-10-11 22:10:18 +02:00
Paul Beckingham
9325098b5c Unit Tests
- Commented out the bare word tests. Bare word searching is deprecated and these
  failures are the reason why. Retaining the tests for possible later rescue.
- Modified remaining tests because there is a difference in adding 'foo-' and
  searching for 'foo\\-'.
2014-10-11 11:29:23 -04:00
Paul Beckingham
630d0f209e Parser
- Code cleanup.
2014-10-11 11:25:23 -04:00
Paul Beckingham
0e0c4fa578 Parser
- Code cleanup.
2014-10-11 11:24:56 -04:00