Commit graph

6512 commits

Author SHA1 Message Date
Renato Alves
290674d7c1 Tests: problems script now outputs color and optional --summary
The problems script now outputs color on each of the test categories,
following the same rules used by simpletap.

It also now includes a --summary switch which outputs the same short
report seen when using ./run_all.
2015-06-25 18:57:56 +01:00
Paul Beckingham
c0df2b9f70 Test; Converted to Python, removed unnecessary tests 2015-06-24 22:08:58 -04:00
Paul Beckingham
7e8f6eb41e Test: Removed unnecessary import 2015-06-24 21:48:48 -04:00
Paul Beckingham
88b1707b58 CLI2: Commented out implementation of ::desugarFilterPlainArgs
- The algorithm is wrong, and it misidentfies solitary search patterns.
2015-06-24 21:29:56 -04:00
Paul Beckingham
9dcd52fc5b CLI2: Inhibit the identification of IDs if preceeded by an operator 2015-06-24 20:59:27 -04:00
Paul Beckingham
dfe6927f14 CLI: Code removed 2015-06-24 16:33:07 -04:00
Paul Beckingham
bd44193f8d Test: Updated README 2015-06-24 16:17:38 -04:00
Renato Alves
a7fa29fb65 Tests: merge op_* to operators.t and convert to Python 2015-06-24 20:12:49 +01:00
Renato Alves
4164c8184b Tests: bug.489 merged with filter.t 2015-06-24 20:12:49 +01:00
Paul Beckingham
8d8f2f1d95 Tests: Relocated tests to eliminate a script
- Relocated (relevant) tests from bug.concat.t to uda_orphan.t, which yields
  better grouping, and allows the deletion of bug.concat.t, which contains
  tests that are no longer relevant.
2015-06-24 13:31:38 -04:00
Paul Beckingham
737cb23546 CLI2: Eliminated CLI
- This is a large commit, as all the changes are centered around the elimination
  of CLI.
- CLI is no longer compiled.
- Context no longer maintains CLI + CLI2.
- Filter now walks the parse tree and sends to Eval a
  std::vector <std::pair <std::string, Lexer::Type>> containing only args tagged
  with FILTER.
- Filter more efficiently sets/unsets Eval::debug, by doing it less often.
- The filterExpr.length() check is no longer meaningful, and instead the size of
  the std::vector above is used.
- Filter::pendingOnly performs better analysis.
- Filter::safety makes use of the std::vector size also.
- Task::modify makes use of 'canonical' rather than 'name', which is a policy
  change, not a fix.
2015-06-24 13:23:56 -04:00
Paul Beckingham
183550a190 CLI2: Unrecognized Lexer::Type::pair args are now downgraded to Lexer::Type::word 2015-06-24 13:06:20 -04:00
Paul Beckingham
de93c63535 Lexer: Not longer considers ( ) part of a contiguous token 2015-06-24 12:47:24 -04:00
Paul Beckingham
edff3e0e94 Tests: Converted undo.t to Python 2015-06-24 12:30:54 -04:00
Paul Beckingham
d9bcbdee0a Lexer: Added ::isContiguous for word-like matching 2015-06-22 21:34:57 -04:00
Paul Beckingham
e66ad50e7e Tests: Removed 'name=value' lexer test
- Test is now a duplicate, because 'name=value' was three tokens, and is now a
  pair.
2015-06-22 21:27:08 -04:00
Paul Beckingham
449d577cca CLI2: Moved all the ::desugar* methods after the single-arg manipulations 2015-06-22 21:21:26 -04:00
Paul Beckingham
960d2be06d Task: Added a Lexer::dequote to values 2015-06-22 16:29:56 -04:00
Paul Beckingham
1cf07cd6fb CLI2: Fixed bug in UUID filtering
- When filtering by UUID, the expression listed the 'uuid' attribute as a type
  Lexer::Type::string, which should have been Lexer::Type::dom.
2015-06-22 16:20:22 -04:00
Paul Beckingham
4b68fea674 CLI2: Fixed bug in ::findCommand
- If an argument is an exact match for a command ('projects'), it is a command.
- If an argument is not an exact match for command ('project'), but is an exact
  match for an attribute, it is not a command.
- If an argument fails the above tests, but canonicalizes to a command, it is a
  command.
2015-06-22 16:01:01 -04:00
Paul Beckingham
5d98acef29 Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5 2015-06-22 15:43:11 -04:00
Wilhelm Schuermann
de8eb2814b CMake: Require libgnutls by default.
- Make cmake complain and abort the build process if libgnutls is not
  available.  In order to build Taskwarrior without "sync" support,
  or to build it on a system with libgnutls missing, the new cmake
  flag "-DENABLE_SYNC=OFF" can be used.
2015-06-22 21:20:29 +02:00
Paul Beckingham
a541156cec CLI2: Added support for write commands specifїgin ID/UUID *after* CMD 2015-06-22 14:48:17 -04:00
Paul Beckingham
f305a973da CmdDenotate: Converted from CLI to CLI2 2015-06-22 14:47:26 -04:00
Paul Beckingham
f8ab97a07e CmdCustom: Converted from CLI to CLI2 2015-06-22 14:46:47 -04:00
Paul Beckingham
3d19bffd55 CLI2: Raised the precedence of ::desugarPlainArgs 2015-06-22 14:12:05 -04:00
Paul Beckingham
076b2aaa95 CLI2: Fix bug where a second terminator (--) was stripped 2015-06-22 14:11:28 -04:00
Renato Alves
53f7786da5 Simpletap: Handle "Unexpected success" cases
When a test decorated with @expectedFailure unexpectedly passes, fail
that test until the decorator is removed.
2015-06-22 17:32:46 +01:00
Paul Beckingham
02b91a94fc CLI2: Fixed bug recognizing command names
- If a command is found via canonicalization, but that command is also an exact
  match for an attribute, then it is not a command.
2015-06-22 11:55:55 -04:00
Paul Beckingham
fd35190ab0 Lexer: Fixed bug that caused 'name=value' to not be a Lexer::Type::pair 2015-06-22 11:55:19 -04:00
Paul Beckingham
b573a0ddcc CLI2: Added missing ::analyze call after ::add for ::addFilter 2015-06-22 11:34:02 -04:00
Paul Beckingham
fcc1bb3ef2 CLI2: Fixed bug where ::desugarFilterAttributes set 'name' instead of 'canonical' 2015-06-22 11:09:49 -04:00
Paul Beckingham
633d07f75b CLI2: Added disqualifier list to ::addContextFilter stub 2015-06-22 10:46:42 -04:00
Paul Beckingham
82c5d019a3 CLI2: Added ::addFilter method 2015-06-22 10:30:29 -04:00
Paul Beckingham
c8fd51bd27 CLI2: Removed unused tag MODIFIABLE 2015-06-22 10:20:24 -04:00
Paul Beckingham
0cfa873776 CLI2: Fixed bug where a reference was being copied over 2015-06-22 10:19:47 -04:00
Paul Beckingham
30ad00fb7f CLI2: Removed unused default constructor A::A 2015-06-22 10:18:43 -04:00
Paul Beckingham
7432c0aead CLI2: Added ::getToken method for obtaining the canonical form, if possible 2015-06-22 00:35:35 -04:00
Paul Beckingham
9db73962da Eval: Added method for providing a precompiled expression 2015-06-22 00:20:03 -04:00
Paul Beckingham
ad18d13c29 CLI2: Removed unnecessary CLI2::dump call 2015-06-21 23:47:34 -04:00
Paul Beckingham
54b2227729 CLI2: Removed unused ::decomposeModAttributeModifiers method 2015-06-21 23:47:05 -04:00
Paul Beckingham
82acbb28e3 CLI2: Added ::decomposeModAttributes 2015-06-21 23:43:02 -04:00
Paul Beckingham
c369f37509 CLI2: Removed unused A::unTagAll method 2015-06-21 23:06:06 -04:00
Paul Beckingham
82021f46f7 Context: Converted from CLI::getLimit to CLI2 2015-06-21 23:03:09 -04:00
Paul Beckingham
77b97d658a CLI2: Added ::getLimit method 2015-06-21 21:19:19 -04:00
Paul Beckingham
867910f7de CLI2: Remove unused ::disqualifyOnlyParenOps method 2015-06-21 21:15:05 -04:00
Paul Beckingham
4b11ac2dae CLI2: Removed unused ::disqualifyOnlyParenOps method 2015-06-21 21:13:34 -04:00
Paul Beckingham
5c44929acb CLI2: Removed unused ::disqualifyNoOps method 2015-06-21 21:13:08 -04:00
Paul Beckingham
d9b15cec2e CLI2: Removed unused ::disqualifyInsufficientTerms method 2015-06-21 21:12:19 -04:00
Paul Beckingham
c1f4cc3554 CLI2: Added ::decomposeModSubstitutions 2015-06-21 21:08:42 -04:00