diff options
| author | hathach <[email protected]> | 2022-12-08 09:59:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-08 09:59:02 +0700 |
| commit | be4f4e4f79c2342bda3b42653332129332a58d0b (patch) | |
| tree | 82e98d2139421836e1120c364358e8cf59d51f8e /test/unit-test/vendor/ceedling/plugins/command_hooks/README.md | |
| parent | 4b50ca2a6167ceb7eb3e07b8d1d716152fc7d189 (diff) | |
move ceedling tests to test/unit-test
Diffstat (limited to 'test/unit-test/vendor/ceedling/plugins/command_hooks/README.md')
| -rw-r--r-- | test/unit-test/vendor/ceedling/plugins/command_hooks/README.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/unit-test/vendor/ceedling/plugins/command_hooks/README.md b/test/unit-test/vendor/ceedling/plugins/command_hooks/README.md new file mode 100644 index 000000000..8ac64afce --- /dev/null +++ b/test/unit-test/vendor/ceedling/plugins/command_hooks/README.md @@ -0,0 +1,53 @@ +ceedling-command-hooks +====================== + +Plugin for easily calling command line tools at various points in the build process + +Define any of these sections in :tools: to provide additional hooks to be called on demand: + +``` + :pre_mock_generate + :post_mock_generate + :pre_runner_generate + :post_runner_generate + :pre_compile_execute + :post_compile_execute + :pre_link_execute + :post_link_execute + :pre_test_fixture_execute + :pre_test + :post_test + :pre_release + :post_release + :pre_build + :post_build +``` + +Each of these tools can support an :executable string and an :arguments list, like so: + +``` +:tools: + :post_link_execute: + :executable: objcopy.exe + :arguments: + - ${1} #This is replaced with the executable name + - output.srec + - --strip-all +``` + +You may also specify an array of executables to be called in a particular place, like so: + +``` +:tools: + :post_test: + - :executable: echo + :arguments: "${1} was glorious!" + - :executable: echo + :arguments: + - it kinda made me cry a little. + - you? +``` + +Please note that it varies which arguments are being parsed down to the +hooks. For now see `command_hooks.rb` to figure out which suits you best. +Happy Tweaking! |
