Dustin J. Mitchell
c639cc030d
Fix and test handling of backslashes in hooks ( #3909 )
...
* Update hooks to use `read -r` and `printf`
This portably avoids any interpretation of backslash escapes by the
shell.
* Support running make_tc_task elsewhere
* Add a test for backslashes in task descriptions
2025-07-08 08:40:34 +02:00
Dustin J. Mitchell
dcbe916286
Make test hooks executable ( #3728 )
2024-12-17 19:08:48 -05:00
Paul Beckingham
8ad0c1172e
Unit Tests
...
- on-add now detects JSON emitted by hooks for different tasks.
2015-02-14 16:46:52 -05:00
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
3ff42af9c7
Unit Tests
...
- Added sample hooks that behave/misbehave in various ways.
2015-01-31 18:34:25 -05:00