mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-15 22:59:59 +00:00
Refactor all yaml files for self-tests to fit Ceedling format for wider reuse.
Fix mistake in unity selftest without output spy running. Namespace self-tests for consistency across ThrowTheSwitch projects (like being able to test:all) Reduce clutter of NAMED self-tests in task list.
This commit is contained in:
@@ -1,86 +1,99 @@
|
||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 6.0\'
|
||||
compiler:
|
||||
path: [*tools_root, 'sh\bin\iccsh.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- -e
|
||||
- --char_is_signed
|
||||
- -Ol
|
||||
- --no_cse
|
||||
- --no_unroll
|
||||
- --no_inline
|
||||
- --no_code_motion
|
||||
- --no_tbaa
|
||||
- --no_scheduling
|
||||
- --no_clustering
|
||||
- --debug
|
||||
- --dlib_config
|
||||
- [*tools_root, 'sh\inc\DLib_Product.h']
|
||||
- --double=32
|
||||
- --code_model=huge
|
||||
- --data_model=huge
|
||||
- --core=sh2afpu
|
||||
- --warnings_affect_exit_code
|
||||
- --warnings_are_errors
|
||||
- --mfc
|
||||
- --use_unix_directory_separators
|
||||
- --diag_suppress=Pe161
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'sh\inc\']
|
||||
- [*tools_root, 'sh\inc\c']
|
||||
- 'src\'
|
||||
- '..\src\'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
- 'vendor\unity\src\'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_SUPPORT_64
|
||||
- 'UNITY_SUPPORT_TEST_CASES'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*tools_root, 'sh\bin\ilinksh.exe']
|
||||
options:
|
||||
- --redirect __Printf=__PrintfSmall
|
||||
- --redirect __Scanf=__ScanfSmall
|
||||
- --config
|
||||
- [*tools_root, 'sh\config\generic.icf']
|
||||
- --config_def _CSTACK_SIZE=0x800
|
||||
- --config_def _HEAP_SIZE=0x800
|
||||
- --config_def _INT_TABLE=0x10
|
||||
- --entry __iar_program_start
|
||||
- --debug_lib
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.out'
|
||||
destination: *build_path
|
||||
simulator:
|
||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||
pre_support:
|
||||
- --silent
|
||||
- [*tools_root, 'sh\bin\shproc.dll']
|
||||
- [*tools_root, 'sh\bin\shsim.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*tools_root, 'sh\bin\shbat.dll']
|
||||
- --backend
|
||||
- -B
|
||||
- --core sh2afpu
|
||||
- -p
|
||||
- [*tools_root, 'sh\config\debugger\io7264.ddf']
|
||||
- -d
|
||||
- sim
|
||||
---
|
||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
:tools:
|
||||
:test_compiler:
|
||||
:name: compiler
|
||||
:executable:
|
||||
- C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\bin\iccsh.exe
|
||||
:arguments:
|
||||
- "-e"
|
||||
- "--char_is_signed"
|
||||
- "-Ol"
|
||||
- "--no_cse"
|
||||
- "--no_unroll"
|
||||
- "--no_inline"
|
||||
- "--no_code_motion"
|
||||
- "--no_tbaa"
|
||||
- "--no_scheduling"
|
||||
- "--no_clustering"
|
||||
- "--debug"
|
||||
- "--dlib_config"
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\inc\DLib_Product.h
|
||||
- "--double=32"
|
||||
- "--code_model=huge"
|
||||
- "--data_model=huge"
|
||||
- "--core=sh2afpu"
|
||||
- "--warnings_affect_exit_code"
|
||||
- "--warnings_are_errors"
|
||||
- "--mfc"
|
||||
- "--use_unix_directory_separators"
|
||||
- "--diag_suppress=Pe161"
|
||||
- '-I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE'
|
||||
- '-I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR'
|
||||
- "-D$: COLLECTION_DEFINES_TEST_AND_VENDOR"
|
||||
- "${1}"
|
||||
- "-o ${2}"
|
||||
:test_linker:
|
||||
:name: linker
|
||||
:executable:
|
||||
- C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\bin\ilinksh.exe
|
||||
:arguments:
|
||||
- "${1}"
|
||||
- "--redirect __Printf=__PrintfSmall"
|
||||
- "--redirect __Scanf=__ScanfSmall"
|
||||
- "--config"
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\config\generic.icf
|
||||
- "--config_def _CSTACK_SIZE=0x800"
|
||||
- "--config_def _HEAP_SIZE=0x800"
|
||||
- "--config_def _INT_TABLE=0x10"
|
||||
- "--entry __iar_program_start"
|
||||
- "--debug_lib"
|
||||
- "-o ${2}"
|
||||
:test_fixture:
|
||||
:name: simulator
|
||||
:executable:
|
||||
- C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- common\bin\CSpyBat.exe
|
||||
:arguments:
|
||||
- "--silent"
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\bin\shproc.dll
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\bin\shsim.dll
|
||||
- "${1}"
|
||||
- "--plugin"
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\bin\shbat.dll
|
||||
- "--backend"
|
||||
- "-B"
|
||||
- "--core sh2afpu"
|
||||
- "-p"
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\config\debugger\io7264.ddf
|
||||
- "-d"
|
||||
- sim
|
||||
:extension:
|
||||
:object: ".o"
|
||||
:executable: ".out"
|
||||
:paths:
|
||||
:test:
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\inc\
|
||||
- - C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||
- sh\inc\c
|
||||
- src\
|
||||
- "..\\src\\"
|
||||
- testdata/
|
||||
- tests\
|
||||
- vendor\unity\src\
|
||||
:defines:
|
||||
:test:
|
||||
- UNITY_SUPPORT_64
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
|
||||
Reference in New Issue
Block a user