Commit graph

1123 commits

Author SHA1 Message Date
Paul Beckingham
8b28c36485 Unit Tests
- Modified the test_hooks/* scripts to use /bin/sh, which is portable. When
  using /bin/bash, Cygwin and FreeBSD silently fail.
2015-02-07 10:22:07 -05:00
Paul Beckingham
04be198281 Unit Tests
- Added on-modify hook tests.
2015-02-07 08:58:47 -05:00
Paul Beckingham
1b69ac6ad2 Unit Tests
- The on-modify-misbehave1 test is not useful.
2015-02-07 08:57:27 -05:00
Paul Beckingham
b1081bd510 Unit Tests
- Added hook tests for on-add.
2015-02-07 08:41:02 -05:00
Paul Beckingham
a72322b9db Unit Test
- Added tests for on-exit hooks.
2015-02-02 12:37:39 -05:00
Paul Beckingham
82e6574d30 Unit Tests
- Added tests for on-launch hooks.
2015-02-01 18:37:18 -05:00
Paul Beckingham
1f14454be7 Merge branch '2.4.1' of ssh://git.tasktools.org/tm/task into 2.4.1
Conflicts:
	test/template.t
2015-02-01 17:01:58 -05:00
Paul Beckingham
384ca82292 Unit Tests
- Hooks snapshot prior to pull.
2015-02-01 17:00:39 -05:00
Renato Alves
066143d939 Unittest - template.t use docstring for proper test description on execution 2015-02-01 20:39:38 +00:00
Renato Alves
e845a25ea6 Unittest - Replace the timestamp function on wrapper.sh
* %N is not supported by /bin/date on BSD systems
2015-02-01 20:35:11 +00:00
Renato Alves
75a2b11638 Unittest - Update template.t to use Hook.assert* functions 2015-02-01 19:33:08 +00:00
Renato Alves
6a3edc88a1 Unittest - properly implement Hook.assert* functions 2015-02-01 19:33:08 +00:00
Renato Alves
bb3555f217 Unittest - Bad exception formatting 2015-02-01 19:33:08 +00:00
Paul Beckingham
5de80eedeb Unit Tests
- Typos in template.t.
2015-02-01 12:36:54 -05:00
Paul Beckingham
10c1b5f902 Merge branch '2.4.1' of ssh://git.tasktools.org/tm/task into 2.4.1 2015-02-01 11:53:11 -05:00
Renato Alves
049ed04471 Unittest - Document the magic line in wrapper.sh 2015-02-01 06:23:34 +00:00
Paul Beckingham
3ff42af9c7 Unit Tests
- Added sample hooks that behave/misbehave in various ways.
2015-01-31 18:34:25 -05:00
Tomas Babej
77ec56dcd0 Tests: Add test case for disabled recurrence mechanism 2015-01-25 16:06:26 -05:00
Paul Beckingham
d0f74c4a80 Unit Tests
- Fixed a broken test that returns different values are different times of the
  year/month.
- Removed silly tests that were looking at color values, which is a bad idea.
2015-01-25 16:00:43 -05:00
Renato Alves
87c2a9b5a5 Unittest - README clarifications
* Add one line command to run all tests
* Clarify that only tests ending with .t and execute bit set are run
2015-01-21 12:13:19 +00:00
Paul Beckingham
cba5948a1d Unit Tests
- Took the tw-1481.t test offline, because the bug will not be fixed in the
  next release.
2015-01-20 22:06:46 -05:00
Paul Beckingham
f4a6ec6f97 Documentation
- Updated README.
2015-01-20 22:05:11 -05:00
Paul Beckingham
a3490966c0 Documentation
- Added README to explain the test suite.
2015-01-20 21:52:17 -05:00
Renato Alves
d1698eab2d Fix usage of taskd.trust=strict on the test suite
* This reverts commit 67cb30fdce.
* Code also now tests if taskd is listening on IPv4 or IPv6 interfaces.
2015-01-20 11:56:53 +00:00
Paul Beckingham
73b7b21b81 Certs
- Replaced all the certs for testing.  This may not help, but it does mean
  there were recreated using the current PKI scripts, and are all consistent.
2015-01-19 18:25:21 -05:00
Paul Beckingham
44f2c0c98c Unit Tests
- Added JSON test which includes spaces.
2015-01-19 18:09:54 -05:00
Renato Alves
67cb30fdce Unittest - default to taskd.trust="ignore hostname"
* The currently available taskd testing certificates fail if
taskd.trust is set to strict. See also: TW-1519
2015-01-19 15:07:06 +00:00
Renato Alves
d68fa7ea8a Unittest - Template updated to include hook test examples 2015-01-19 14:58:06 +00:00
Renato Alves
db78851b40 Unittest - Hook testing, fixed a few mistakes 2015-01-19 14:54:11 +00:00
Tomas Babej
5a3037f257 Tests: Fix error in export.t and add test for urgency 2015-01-12 15:38:44 -05:00
Paul Beckingham
adf9f25289 Unit Tests
- Removed failing tests, as there is no plan to address all these now.
2015-01-07 23:43:11 -05:00
Tomas Babej
235e4ef047 Tests: Add negative tests for parsing time 2015-01-07 17:14:49 -05:00
Tomas Babej
1dbb0a57a8 Tests: Add negative tests for parsing dates 2015-01-06 19:14:04 -05:00
Paul Beckingham
5a7117630e Unit Tests
- Typo.
2015-01-05 20:04:26 -05:00
Paul Beckingham
e9f9f6a86e Unit Tests
- Added copyright and removed whitespace at EOL.
2015-01-05 19:52:17 -05:00
Tomas Babej
8ea1563944 Tests: Add basic coverage for the types of attributes in the export command 2015-01-05 19:48:52 -05:00
Wilhelm Schuermann
e522c1980a TW-1424
- Fixed tw-1424.t (mostly).
2015-01-05 06:53:51 -05:00
Paul Beckingham
a3b0d5c6a6 Unit Tests
- Added copyright to tests that were missing it.
2015-01-04 10:55:01 -05:00
Paul Beckingham
d1664b3f55 Unit Tests
- Re-enabled bug.982.t and fixed the regex so it is right. This test was created
  for a parsing bug which is now fixed.
2015-01-04 10:40:21 -05:00
Paul Beckingham
1cac14f3f8 Unit Tests
- This disabled test is verifying 'Total Active Time' functionality that has
  itself been removed.
2015-01-04 10:35:57 -05:00
Paul Beckingham
507e2d5807 Unit Tests
- Added copyright, fixed test name.
2015-01-04 10:30:10 -05:00
Tomas Babej
c664d62c2f Tests: Add coverage for TW-1452 2015-01-04 10:23:38 -05:00
Tomas Babej
2a782b8f01 Tests: Add coverage for TW-1481 2015-01-03 20:21:46 -05:00
Paul Beckingham
3c07510a43 Unit Tests
- Added copyright to template.
2015-01-03 20:20:30 -05:00
Paul Beckingham
dad0ac0c27 TW-1486
- TW-1486 task wait shows completed tasks which has a wait attribute (thanks to
          Sujeevan Vijayakumaran).
2015-01-03 09:31:54 -05:00
Paul Beckingham
2c986d6e6b Unit Tests
- Fixed typo in comment.
2015-01-03 09:24:07 -05:00
Paul Beckingham
09252c617f Unit Tests
- Commented naive tests that fail on 2015-01-01.
2015-01-01 17:35:05 -05:00
Paul Beckingham
52479f560f Unit tests
- Commented tests that are performing naive date math, which breaks on
  2015-01-01, among other dates.
2015-01-01 17:32:31 -05:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Paul Beckingham
8de2a1030e Eval
- Reduced the verbosity of Eval under rc.debug.parser=3, improving readability.
- Updated unit tests regarding modified debug output.
2014-12-28 12:48:16 -05:00