Commit graph

5093 commits

Author SHA1 Message Date
Paul Beckingham
1ccc284cc7 Safety Valve Override
- Support 'allow.empty.filter', defaulting to 'yes', but if 'no' disallows the
  combination of a write command and an empty filter.  Ordinarily this is just
  a warning that requires confirmation (thanks to Lee Lieske).
2014-08-11 12:32:11 -04:00
Paul Beckingham
c2ffee1352 Config
- Corrected typo in config.
- Added example values for taskd.trust.
2014-08-11 11:34:24 -04:00
Renato Alves
8a4b33b0e3 Unittest - Say where taskd couldn't be found 2014-08-11 11:12:08 +01:00
Paul Beckingham
8ee02c8bac Context
- If Hooks::onExit indicates changes, TDB2::commit is called.
2014-08-09 21:06:58 -04:00
Paul Beckingham
4ef189d7b6 Hooks
- ::onExit now indicates whether changes were made.
2014-08-09 21:06:16 -04:00
Paul Beckingham
3136fa1746 Context
- Added clarifying comment to the strange test in ::verbose.
2014-08-09 20:39:18 -04:00
Paul Beckingham
6209529aaa TDB2
- In debug mode, if any TF2 objects are dirty, they speak up.
2014-08-09 20:26:51 -04:00
Paul Beckingham
9996e5adef Hooks
- Correct handling for JSON and non-JSON output.
2014-08-09 20:19:02 -04:00
Paul Beckingham
2ea9b8786e Hooks
- It is safe to call free() with a null pointer.
2014-08-07 07:51:22 -04:00
Paul Beckingham
0825ce3c56 TDB2
- Updated ID:UUID mapping on ::add, which is the first part of the fix for
  TW-1389.
2014-08-06 10:45:15 -04:00
Paul Beckingham
882ea8102f Unit Tests
- Upgraded tests to newer format.
2014-08-06 10:39:15 -04:00
Renato Alves
b49360c240 Unittest - Notes on env vars that affect test execution 2014-07-31 17:07:14 +01:00
Renato Alves
d9d3b47c31 Unittest - default to ../src/ as location for task/taskd binaries 2014-07-31 17:03:49 +01:00
Renato Alves
16af4d088c Unittest - Add test for TW-262 2014-07-30 17:16:51 +01:00
Paul Beckingham
cb2b1b1e37 Bug
- The 'diagnostics' command obeys color settings.
2014-07-28 00:59:22 -04:00
Paul Beckingham
4f30dce20a TW-1383
- TW-1383 Segmentation fault running import-yaml.pl with included example
          (thanks to Markus Beppler).
2014-07-28 00:21:59 -04:00
Markus Beppler
80b15e5f12 TW-1383
- Segmentation fault running import-yaml.pl with included example

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-28 00:21:44 -04:00
Markus Beppler
865bee5f11 TW-1383
- Segmentation fault running import-yaml.pl with included example

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-28 00:21:30 -04:00
Paul Beckingham
2f65b23af1 Merge pull request #14 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit '07cd033cbc':
  Unittest - Readability and information improvements with test failures
2014-07-24 17:15:19 +00:00
Renato Alves
07cd033cbc Unittest - Readability and information improvements with test failures 2014-07-24 16:07:58 +01:00
Paul Beckingham
e070500d26 Merge pull request #13 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit '22efbe3f74':
  Unittest - Testcase for bug TW-1381
  Unittest - Testcase for bug TW-1379
  No-color theme / Template theme
  Unittest - Fix newlines should be interpreted in printed output
2014-07-24 14:15:13 +00:00
Renato Alves
22efbe3f74 Unittest - Testcase for bug TW-1381 2014-07-24 15:06:34 +01:00
Renato Alves
d15c98deda Unittest - Testcase for bug TW-1379 2014-07-24 15:04:34 +01:00
Renato Alves
02935726ba No-color theme / Template theme
* This theme is meant to be used while testing colorsthough users may
find it useful as a blank template for their own themes
2014-07-24 13:24:22 +01:00
Renato Alves
f39617a753 Unittest - Fix newlines should be interpreted in printed output 2014-07-24 13:10:44 +01:00
Paul Beckingham
f5b778b800 Merge pull request #12 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit '4a305d5e51':
  Unittest - Fix path to user tx.data
  Unittest - Helper code to easily parse tx.data
  Unittest - Make client credentials available as a dictionary
  Unittest - Make taskd the first argument of Task()
2014-07-19 14:33:49 +00:00
Renato Alves
4a305d5e51 Unittest - Fix path to user tx.data 2014-07-19 02:55:49 +01:00
Renato Alves
974045da7a Unittest - Helper code to easily parse tx.data 2014-07-19 02:28:52 +01:00
Renato Alves
b58c6566af Unittest - Make client credentials available as a dictionary 2014-07-19 02:06:21 +01:00
Renato Alves
4c88726dab Unittest - Make taskd the first argument of Task()
* The most common case is to bind a client to a server and not
customizing the location of the task binary
2014-07-19 00:45:17 +01:00
Paul Beckingham
f9c1e33824 Merge pull request #11 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit 'c5d4efd4d2':
  Unittest - No longer necessary to prefix strings with hash
  Unittest - Buffer stdout/stderr until after test status is printed
  Unittest - Use stderr for diagnostics too
  Unittest - Memoize utils.which for faketime speedups
  Unittest - Add a memoize function for caching of function results
  Unittest - Skip tests that use faketime if not available
  Unittest - Add test example using libfaketime
  Unittest - Implement faketime for use in taskw
  Unittest - Make is easier to reset env vars of task and taskd
  Unittest - Add mechanism to skip task and taskd tests
  Unittest - Add prefixes to task and taskd temporary folders
2014-07-18 19:19:00 +00:00
Renato Alves
c5d4efd4d2 Unittest - No longer necessary to prefix strings with hash 2014-07-18 20:07:02 +01:00
Renato Alves
3fd06257b7 Unittest - Buffer stdout/stderr until after test status is printed 2014-07-18 20:06:29 +01:00
Renato Alves
97d490e0fd Unittest - Use stderr for diagnostics too 2014-07-18 19:22:48 +01:00
Renato Alves
a88b3be093 Unittest - Memoize utils.which for faketime speedups 2014-07-18 17:23:19 +01:00
Renato Alves
d69533add1 Unittest - Add a memoize function for caching of function results 2014-07-18 17:22:17 +01:00
Renato Alves
00ee5b2289 Unittest - Skip tests that use faketime if not available 2014-07-18 17:20:27 +01:00
Renato Alves
fdbb8e02f0 Unittest - Add test example using libfaketime 2014-07-18 17:12:28 +01:00
Renato Alves
15795e514d Unittest - Implement faketime for use in taskw 2014-07-18 17:12:28 +01:00
Renato Alves
02683aecd7 Unittest - Make is easier to reset env vars of task and taskd 2014-07-18 14:01:04 +01:00
Renato Alves
2a198d59fe Unittest - Add mechanism to skip task and taskd tests
* When testing multiple clients vs server versions, repeating client
tests is unnecessary. By setting the env variables TASKW_SKIP and
TASKD_SKIP it will now be possible to skip all task (client only) and
taskd (client + server) tests, respectively.
2014-07-18 13:33:51 +01:00
Renato Alves
72e8a73ae0 Unittest - Add prefixes to task and taskd temporary folders 2014-07-18 13:20:06 +01:00
Paul Beckingham
86dd05c51d Merge pull request #10 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit 'f585bdcdf5':
  Unittest - Test for task diag always displaying bold
  Unittest - Properly comment output lines in TAP format
  Unittest - Test that the task binary used matches the current commit
2014-07-15 17:12:41 +00:00
Renato Alves
f585bdcdf5 Unittest - Test for task diag always displaying bold 2014-07-15 16:01:00 +01:00
Renato Alves
7cc4775060 Unittest - Properly comment output lines in TAP format 2014-07-15 15:56:26 +01:00
Renato Alves
d65e9b2594 Unittest - Test that the task binary used matches the current commit 2014-07-15 15:39:23 +01:00
Paul Beckingham
f24db73a55 Merge pull request #9 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit '6007da7218':
  Unittest - Renumber bug 1377 and strip leftover comments
  Unittest - No need to check for exit code as it's already implicit
2014-07-15 13:59:05 +00:00
Renato Alves
6007da7218 Unittest - Renumber bug 1377 and strip leftover comments 2014-07-15 14:34:04 +01:00
Renato Alves
6fc907ffd5 Unittest - No need to check for exit code as it's already implicit 2014-07-15 14:33:23 +01:00
Paul Beckingham
1abd5460d7 Merge pull request #8 in TM/task from ~UNODE/task:2.4.0 to 2.4.0
* commit '1f279ffde8':
  Unittest - Try to avoid racing conditions failures when capturing stdout/stderr
2014-07-15 11:17:21 +00:00