Commit graph

819 commits

Author SHA1 Message Date
Paul Beckingham
d27bd24355 Code Reorganization
- Eliminated the parser lib, merged into task.  Failed experiment.
2013-10-19 22:33:16 -04:00
Paul Beckingham
069a707e92 Reports
- New 'newest' report.
2013-10-19 20:54:04 -04:00
Paul Beckingham
ad98552a3b Reports
- New 'oldest' report.
2013-10-19 20:50:01 -04:00
Paul Beckingham
09fce4df46 Reports
- New 'ls' report.
2013-10-19 20:38:09 -04:00
Paul Beckingham
c8aca24e63 Reports
- New 'list' report.
2013-10-19 16:44:33 -04:00
Paul Beckingham
325c80b7e4 Reports
- New 'long' report.
2013-10-19 16:25:00 -04:00
Paul Beckingham
ac1d79048d Unit tests
- Removed tests for features deprecated in previous release.
2013-10-19 15:25:54 -04:00
Rainer Müller
fa59d0d77d Unit Tests
- Set well-known umask for permissions test. When started with another
  umask value the permissions of the created directory would be
  different and the tests fail.
2013-10-07 21:18:07 -04:00
Paul Beckingham
c1492d8010 Bug #1273
- #1273 Query with negative relative date differs greatly from absolute date
  in past (thanks to John West).
2013-10-06 16:23:43 -04:00
Paul Beckingham
9099a353ea Bug #1286
- #1286 Cannot use "sow", "som", etc in "entry.after", "end.after" filters
  (thanks to Jake Bell).
2013-10-06 15:30:35 -04:00
Paul Beckingham
5f98e41801 Unit Tests
- Added more undo tests, to cover both cases for backlog rollback.
2013-10-06 13:55:42 -04:00
Paul Beckingham
f367989afa Bug #1270
- The 'undo' command is now properly removing backlog entries.
2013-10-06 13:43:21 -04:00
Paul Beckingham
0f416a9f01 Documentation
- Cleaned up obsolete references.
2013-09-11 00:35:25 -04:00
Paul Beckingham
26e2b17a44 Unit Tests
- Fixed bug where version.t would not run unless a .taskrc file existed.
2013-09-08 15:08:29 -04:00
Paul Beckingham
1f3230716f Unit Tests
- Added test to make sure copyright is current.
2013-09-08 01:42:47 -04:00
Paul Beckingham
ada6e49dab Bug #1251
- #1251 tests should sanitize TASKDATA and TASKRC env vars (thanks to Jakub
  Wilk).
2013-09-07 13:52:16 -04:00
Paul Beckingham
8951a79027 Bug #1248
- #1248 Merge tests no longer connect to takwarrior.org (thank to Jakub Wilk).
2013-09-07 12:24:03 -04:00
Paul Beckingham
8f9a48c3ff Unit Tests
- Added Tree object unit tests.
2013-08-31 19:01:51 -04:00
Paul Beckingham
663c82837c Nibbler::backN
- Added a method to support multi-byte backstep through a string.
- Added unit tests.
2013-08-31 16:02:51 -04:00
Paul Beckingham
3a8a513d17 Date Support
- Added Date::week helper method.
2013-08-26 09:15:48 -07:00
Paul Beckingham
06d905b633 Unit Tests
- Corrected two broken DOM unit tests.
2013-08-26 02:47:31 -04:00
Paul Beckingham
12809fd0bf Message Format
- Relaxed message parsing slightly.
2013-07-07 14:57:02 -04:00
Paul Beckingham
82c4b05fe4 File, Directory Permissions
- Added default and override permissions for files and directories.
2013-07-07 13:04:19 -04:00
Paul Beckingham
061bf4882e Bug #1300
- Encode/decode pairing is now properly balanced.
2013-07-07 09:07:10 -04:00
Paul Beckingham
f13208479d Unit Tests
- Modified 'version' to 'client' in the msg.t tests.
2013-06-08 15:56:10 -04:00
Paul Beckingham
8c11c6c895 Unit Tests
- Added unit test to ensure correct F4 and JSON parse/compose.
2013-06-03 00:44:25 -04:00
Paul Beckingham
4133d29cca FF4/JSON Interop
- Removed the \n characters from Task::composeFF4 and Task::ComposeJSON.
- Tasks in backlog.data file are now written as JSON.
- Tasks are recognized in FF4 or JSON format.
2013-06-02 20:38:58 -04:00
Paul Beckingham
530e9c0118 Unit Tests
- Corrected unit tests due to rc.print.empty.columns.

(cherry picked from commit af12285d4585c1274d8d005ba042f31158527e3e)
2013-06-02 13:58:09 -04:00
Paul Beckingham
d03c4cda8a Build Error
- Many files were missing an explicit cmake.h include.  Some were not including
  it at all.  Now it's used almost everywhere.

(cherry picked from commit 82ae86979c497e6d1d0c6b2b5a55aa379ec82c98)
2013-06-02 13:57:36 -04:00
Paul Beckingham
222cd9a8d7 Unit Tests
- Added a non-trivial JSON task to parse.
2013-05-20 16:35:42 -04:00
Paul Beckingham
b408458439 Import
- The import command now uses the built-in Task::parseJSON method.
- Began t3.t.cpp for JSON parsing tests.
2013-05-20 16:31:57 -04:00
Paul Beckingham
6a97017c79 File Format
- File format 2 (used in version 0.9.3 - 1.5.0) is no longer supported.
- Task::parseJSON implemented.
- PRODUCT_TASKWARRIOR defined, to facilitate code sharing.
- Strings renamed for sharing purposes.
2013-05-20 16:14:34 -04:00
Paul Beckingham
a973ccf8f2 Sync
- When taskwarrior is built without GnuTLS, there will be a message to that
  effect.
- Stubbed the TLSClient calling code.  The current Socket code will become
  obsolete soon.
2013-05-11 13:07:14 -04:00
Paul Beckingham
157699cbde Feature #1256 Follow-up
- Extended unit tests to cover 'add' failures.
- Removed whitespace at EOL.
- Updated ChangeLog, AUTHORS, NEWS.
- Updated taskrc.5.in.
- Updated CmdShow to allow new config settings.
2013-05-07 16:26:58 -04:00
Thomas
56eab7da0d Added ability for UDAs to have a default value. 2013-05-07 16:07:20 -04:00
Paul Beckingham
a1132f0028 Code Cleanup
- Cmake was not updating HAVE_ST_BIRTHTIME.
- NIBBLER_FEATURE_DATE was not properly applied everywhere.
- FEATURE_COLOR was not properly set.
- Some source files failed to include cmake.h, and therefore were not properly
- Removed inefficient use of std::string::substr for guaranteed single character
  strings.
- Integrated Directory::cd.
- Integrated File::ctime, ::btime.
- Integrated Path::operator+.
- Integrated Nibbler::getDigit{2,4,6}.
- Integrated HighResTimer.
  enabling/disabling code.
- All Path objects now expanded internally to absolute form.
- Modified unit tests to accomodate absolute paths.
- Merged new nibbler.t.cpp tests.
- Made various methods const.
- Includes removed from some files, added to others.
2013-05-05 08:33:52 -04:00
Paul Beckingham
ebaf09cbe0 Enhancement
- The 'due' urgency component is now calculated at a higher resolution.
2013-05-04 07:36:53 -04:00
Paul Beckingham
1641bcf592 White Space
- White space cleanup, to avoid further git hook warnings.
2013-04-15 00:06:37 -04:00
Paul Beckingham
09f577536a Feature #1250
- #1250 Support out-of-tree test runs (thanks to Jakub Wilk).
2013-04-13 15:02:50 -04:00
Paul Beckingham
31b44de8b0 Bug #1247
- #1247 Tests now create a local dir, rather than use the insecure /tmp dir
  (thanks to Jakub Wilk).
2013-04-13 14:08:39 -04:00
Paul Beckingham
8af0a7f3ba Merge branch 'master' into 2.3.0
Conflicts:
	AUTHORS
	CMakeLists.txt
	INSTALL
	NEWS
	cmake.h.in
	doc/man/task-faq.5.in
	package-config/osx/README
	scripts/utils/verify_l10n
	src/API.h
	src/Config.cpp
	src/Context.cpp
	src/DOM.cpp
	src/Hooks.cpp
	src/TransportShell.h
	src/commands/CmdDiagnostics.cpp
	src/commands/CmdShell.cpp
	src/commands/CmdVersion.cpp
	src/en-US.h
	src/shell/Readline.h
	src/wcwidth6.cpp
	test/CMakeLists.txt
	test/color.uda.t
	test/duration.t.cpp
	test/hook.on-launch.t
	test/template.t
	test/uuid.t
2013-04-07 17:56:59 -04:00
Paul Beckingham
066d2a54ad Unit Tests
- Modifed the color.duetoday.t test to look for 'red', which for some reason
  fails on Ubuntu 12.10, *sometimes*.  This change removes the red/rgb400
  duality, which was wrong anyway.  We'll call this 'cleanup'.
2013-04-07 15:08:54 -04:00
Paul Beckingham
168027cb9a Unit Tests
- Any test that contains a '*' in the description output has a chance of failing
  because that '*' gets expanded by the shell, somewhere in the run_all script.
  While I can't find that problem (yet) and fix it, I can remove the '*' from
  the output.
2013-04-07 11:38:42 -04:00
Paul Beckingham
61fdc0da52 Unit Tests
- Updated test class to conform to coding standards.
- Implemented TAP.py to allow Python unit tests.
2013-04-07 00:09:16 -04:00
Federico Hernandez
7db5377d3b Removed the incomplete support for the Lua extensions. 2013-04-02 21:52:13 +02:00
Paul Beckingham
656e350291 Date Formatting
- Some bad inefficiencies in date formatting were noticed, and when addressed,
  caused a bug to surface.  The length of a formatted date can be calculated
  from the dateformat, but was done incorrectly.  Very, very incorrectly.
- Added unit tests.
- Promoted date column-specific "countdown" size measurements up to the ColDate
  base class.  This neatly falls out from work on #1218.
- Noted a potential I18N problem in Date.cpp.
2013-04-01 20:01:54 -04:00
Paul Beckingham
6824fb1527 Doc, Unit Tests
- Updated DEVELOPER file to be accurate once 2.2.0 is released.
- Added unit test for utf8_codepoint.  The tests have been siting there for a
  while, and may as well be committed.  Low risk.
2013-03-31 17:30:43 -04:00
Paul Beckingham
03cb5af7be Defaults
- The 'dateformat' settings now default to the ISO-8601 standard of 'Y-M-D'.
2013-03-30 17:42:45 -04:00
Russell Steicke
0cc7bc337d Test for bug 1192 - brace expansion.
Commit 968d1c3 (Portability) introduced a bug with some very POSIX
compliant shells (eg dash), which don't do brace expansion.  So add a
test for that.

The test runs by adding a new protocol in Uri, sh+cp://path/.  This
protocol is not intended to be used normally, but is only for testing
the push and pull code.

Signed-off-by: Russell Steicke <russells@adelie.cx>
2013-03-30 14:08:50 -04:00
Paul Beckingham
864b46a1b1 Unit Tests
- Improved two tests that always fail around summer time clock changes, by
  eliminating the dependence on 86,400.
- Fixed feature.891.t tests that fail on certain fortuitous random UUID
  permutations.  Now hard-coded UUID.
2013-03-11 23:05:30 -04:00