1
0

Run the testing executable of virtual builds as a build step

By this means it is possible to simplify running automatic
simulation based testing with virtual firmare builds.

If a firmware sketch defines a test function it will
be executed.

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
This commit is contained in:
Florian Fleissner 2019-06-06 17:10:06 +02:00 committed by Jesse Vincent
parent 61ac4a1586
commit 904f06de09

View File

@ -85,6 +85,10 @@ recipe.hooks.linking.postlink.1.pattern="{compiler.path}{compiler.c.elf.cmd}" {c
recipe.hooks.linking.postlink.2.pattern={tools.rm.cmd} "{build.path}/{build.project_name}_joined.a"
################################################################################
# Run the test executable as a build step
#
recipe.hooks.linking.postlink.3.pattern="{build.path}/{build.project_name}.elf" -t
## Create output files (.eep and .hex)
recipe.objcopy.eep.pattern="{compiler.path}{compiler.objcopy.cmd}" {compiler.objcopy.eep.flags} {compiler.objcopy.eep.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.eep"
recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"