Merge commit '6b9b57be226a505a9c9cdd9ed029f22495ce04ec' as 'tests/unity'
This commit is contained in:
78
tests/unity/test/targets/clang_file.yml
Normal file
78
tests/unity/test/targets/clang_file.yml
Normal file
@@ -0,0 +1,78 @@
|
||||
---
|
||||
compiler:
|
||||
path: clang
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-Wall'
|
||||
- '-Wextra'
|
||||
- '-Werror'
|
||||
- '-Wcast-qual'
|
||||
- '-Wconversion'
|
||||
- '-Wdisabled-optimization'
|
||||
- '-Wformat=2'
|
||||
- '-Winit-self'
|
||||
- '-Winline'
|
||||
- '-Winvalid-pch'
|
||||
- '-Wmissing-include-dirs'
|
||||
- '-Wnonnull'
|
||||
- '-Wpacked'
|
||||
- '-Wpointer-arith'
|
||||
- '-Wswitch-default'
|
||||
- '-Wstrict-aliasing'
|
||||
- '-Wstrict-overflow=5'
|
||||
- '-Wuninitialized'
|
||||
- '-Wunused'
|
||||
# - '-Wunreachable-code'
|
||||
- '-Wreturn-type'
|
||||
- '-Wshadow'
|
||||
- '-Wundef'
|
||||
- '-Wwrite-strings'
|
||||
- '-Wno-nested-externs'
|
||||
- '-Wno-unused-parameter'
|
||||
- '-Wno-variadic-macros'
|
||||
- '-Wbad-function-cast'
|
||||
- '-fms-extensions'
|
||||
- '-fno-omit-frame-pointer'
|
||||
- '-ffloat-store'
|
||||
- '-fno-common'
|
||||
- '-fstrict-aliasing'
|
||||
- '-std=gnu99'
|
||||
- '-pedantic'
|
||||
- '-O0'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_64
|
||||
- UNITY_OUTPUT_RESULTS_FILE
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: clang
|
||||
options:
|
||||
- -lm
|
||||
- '-m64'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
80
tests/unity/test/targets/clang_strict.yml
Normal file
80
tests/unity/test/targets/clang_strict.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
---
|
||||
compiler:
|
||||
path: clang
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-Wall'
|
||||
- '-Wextra'
|
||||
- '-Werror'
|
||||
- '-Wcast-qual'
|
||||
- '-Wconversion'
|
||||
- '-Wdisabled-optimization'
|
||||
- '-Wformat=2'
|
||||
- '-Winit-self'
|
||||
- '-Winline'
|
||||
- '-Winvalid-pch'
|
||||
- '-Wmissing-include-dirs'
|
||||
- '-Wnonnull'
|
||||
- '-Wpacked'
|
||||
- '-Wpointer-arith'
|
||||
- '-Wswitch-default'
|
||||
- '-Wstrict-aliasing'
|
||||
- '-Wstrict-overflow=5'
|
||||
- '-Wuninitialized'
|
||||
- '-Wunused'
|
||||
# - '-Wunreachable-code'
|
||||
- '-Wreturn-type'
|
||||
- '-Wshadow'
|
||||
- '-Wundef'
|
||||
- '-Wwrite-strings'
|
||||
- '-Wno-nested-externs'
|
||||
- '-Wno-unused-parameter'
|
||||
- '-Wno-variadic-macros'
|
||||
- '-Wbad-function-cast'
|
||||
- '-fms-extensions'
|
||||
- '-fno-omit-frame-pointer'
|
||||
- '-ffloat-store'
|
||||
- '-fno-common'
|
||||
- '-fstrict-aliasing'
|
||||
- '-std=gnu99'
|
||||
- '-pedantic'
|
||||
- '-O0'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_SUPPORT_64
|
||||
- UNITY_OUTPUT_FLUSH
|
||||
- UNITY_OMIT_OUTPUT_FLUSH_HEADER_DECLARATION
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: clang
|
||||
options:
|
||||
- -lm
|
||||
- '-m64'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
49
tests/unity/test/targets/gcc_32.yml
Normal file
49
tests/unity/test/targets/gcc_32.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-m32'
|
||||
- '-Wall'
|
||||
- '-Wno-address'
|
||||
- '-std=c99'
|
||||
- '-pedantic'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_EXCLUDE_STDINT_H
|
||||
- UNITY_EXCLUDE_LIMITS_H
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_INT_WIDTH=32
|
||||
- UNITY_LONG_WIDTH=32
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
- '-m32'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
50
tests/unity/test/targets/gcc_64.yml
Normal file
50
tests/unity/test/targets/gcc_64.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-m64'
|
||||
- '-Wall'
|
||||
- '-Wno-address'
|
||||
- '-std=c99'
|
||||
- '-pedantic'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_EXCLUDE_STDINT_H
|
||||
- UNITY_EXCLUDE_LIMITS_H
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_SUPPORT_64
|
||||
- UNITY_INT_WIDTH=32
|
||||
- UNITY_LONG_WIDTH=64
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
- '-m64'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
47
tests/unity/test/targets/gcc_auto_limits.yml
Normal file
47
tests/unity/test/targets/gcc_auto_limits.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-m64'
|
||||
- '-Wall'
|
||||
- '-Wno-address'
|
||||
- '-std=c99'
|
||||
- '-pedantic'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_EXCLUDE_STDINT_H
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_SUPPORT_64
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
- '-m64'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
59
tests/unity/test/targets/gcc_auto_stdint.yml
Normal file
59
tests/unity/test/targets/gcc_auto_stdint.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-m64'
|
||||
- '-Wall'
|
||||
- '-Wno-address'
|
||||
- '-std=c99'
|
||||
- '-pedantic'
|
||||
- '-Wextra'
|
||||
- '-Werror'
|
||||
- '-Wpointer-arith'
|
||||
- '-Wcast-align'
|
||||
- '-Wwrite-strings'
|
||||
- '-Wswitch-default'
|
||||
- '-Wunreachable-code'
|
||||
- '-Winit-self'
|
||||
- '-Wmissing-field-initializers'
|
||||
- '-Wno-unknown-pragmas'
|
||||
- '-Wstrict-prototypes'
|
||||
- '-Wundef'
|
||||
- '-Wold-style-definition'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_SUPPORT_64
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
- '-m64'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
47
tests/unity/test/targets/gcc_manual_math.yml
Normal file
47
tests/unity/test/targets/gcc_manual_math.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
compiler:
|
||||
path: gcc
|
||||
source_path: '../src/'
|
||||
unit_tests_path: &unit_tests_path 'tests/'
|
||||
build_path: &build_path 'build/'
|
||||
options:
|
||||
- '-c'
|
||||
- '-m64'
|
||||
- '-Wall'
|
||||
- '-Wno-address'
|
||||
- '-std=c99'
|
||||
- '-pedantic'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'src/'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_EXCLUDE_MATH_H
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_SUPPORT_64
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.o'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: gcc
|
||||
options:
|
||||
- -lm
|
||||
- '-m64'
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.o'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.exe'
|
||||
destination: *build_path
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
101
tests/unity/test/targets/hitech_picc18.yml
Normal file
101
tests/unity/test/targets/hitech_picc18.yml
Normal file
@@ -0,0 +1,101 @@
|
||||
# rumor has it that this yaml file works for the standard edition of the
|
||||
# hitech PICC18 compiler, but not the pro version.
|
||||
#
|
||||
compiler:
|
||||
path: cd build && picc18
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --chip=18F87J10
|
||||
- --ide=hitide
|
||||
- --q #quiet please
|
||||
- --asmlist
|
||||
- --codeoffset=0
|
||||
- --emi=wordwrite # External memory interface protocol
|
||||
- --warn=0 # allow all normal warning messages
|
||||
- --errors=10 # Number of errors before aborting compile
|
||||
- --char=unsigned
|
||||
- -Bl # Large memory model
|
||||
- -G # generate symbol file
|
||||
- --cp=16 # 16-bit pointers
|
||||
- --double=24
|
||||
- -N255 # 255-char symbol names
|
||||
- --opt=none # Do not use any compiler optimziations
|
||||
- -c # compile only
|
||||
- -M
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- 'c:/Projects/NexGen/Prototypes/CMockTest/src/'
|
||||
- 'c:/Projects/NexGen/Prototypes/CMockTest/mocks/'
|
||||
- 'c:/CMock/src/'
|
||||
- 'c:/CMock/examples/src/'
|
||||
- 'c:/CMock/vendor/unity/src/'
|
||||
- 'c:/CMock/vendor/unity/examples/helper/'
|
||||
- *unit_tests_path
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_INT_WIDTH=16
|
||||
- UNITY_POINTER_WIDTH=16
|
||||
- CMOCK_MEM_STATIC
|
||||
- CMOCK_MEM_SIZE=3000
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- _PICC18
|
||||
object_files:
|
||||
# prefix: '-O' # Hi-Tech doesn't want a prefix. They key off of filename .extensions, instead
|
||||
extension: '.obj'
|
||||
destination: *build_path
|
||||
|
||||
linker:
|
||||
path: cd build && picc18
|
||||
options:
|
||||
- --chip=18F87J10
|
||||
- --ide=hitide
|
||||
- --cp=24 # 24-bit pointers. Is this needed for linker??
|
||||
- --double=24 # Is this needed for linker??
|
||||
- -Lw # Scan the pic87*w.lib in the lib/ of the compiler installation directory
|
||||
- --summary=mem,file # info listing
|
||||
- --summary=+psect
|
||||
- --summary=+hex
|
||||
- --output=+intel
|
||||
- --output=+mcof
|
||||
- --runtime=+init # Directs startup code to copy idata, ibigdata and ifardata psects from ROM to RAM.
|
||||
- --runtime=+clear # Directs startup code to clear bss, bigbss, rbss and farbss psects
|
||||
- --runtime=+clib # link in the c-runtime
|
||||
- --runtime=+keep # Keep the generated startup src after its obj is linked
|
||||
- -G # Generate src-level symbol file
|
||||
- -MIWasTheLastToBuild.map
|
||||
- --warn=0 # allow all normal warning messages
|
||||
- -Bl # Large memory model (probably not needed for linking)
|
||||
includes:
|
||||
prefix: '-I'
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.obj'
|
||||
bin_files:
|
||||
prefix: '-O'
|
||||
extension: '.hex'
|
||||
destination: *build_path
|
||||
|
||||
simulator:
|
||||
path:
|
||||
pre_support:
|
||||
- 'java -client -jar ' # note space
|
||||
- ['C:\Program Files\HI-TECH Software\HI-TIDE\3.15\lib\', 'simpic18.jar']
|
||||
- 18F87J10
|
||||
post_support:
|
||||
|
||||
:cmock:
|
||||
:plugins: []
|
||||
:includes:
|
||||
- Types.h
|
||||
:suite_teardown: |
|
||||
if (num_failures)
|
||||
_FAILED_TEST();
|
||||
else
|
||||
_PASSED_TESTS();
|
||||
return 0;
|
||||
|
||||
colour: true
|
||||
90
tests/unity/test/targets/iar_arm_v4.yml
Normal file
90
tests/unity/test/targets/iar_arm_v4.yml
Normal file
@@ -0,0 +1,90 @@
|
||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\'
|
||||
compiler:
|
||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --dlib_config
|
||||
- [*tools_root, 'arm\lib\dl4tptinl8n.h']
|
||||
- -z3
|
||||
- --no_cse
|
||||
- --no_unroll
|
||||
- --no_inline
|
||||
- --no_code_motion
|
||||
- --no_tbaa
|
||||
- --no_clustering
|
||||
- --no_scheduling
|
||||
- --debug
|
||||
- --cpu_mode thumb
|
||||
- --endian little
|
||||
- --cpu ARM7TDMI
|
||||
- --stack_align 4
|
||||
- --interwork
|
||||
- -e
|
||||
- --silent
|
||||
- --warnings_are_errors
|
||||
- --fpu None
|
||||
- --diag_suppress Pa050
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'arm\inc\']
|
||||
- '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: '.r79'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*tools_root, 'common\bin\xlink.exe']
|
||||
options:
|
||||
- -rt
|
||||
- [*tools_root, 'arm\lib\dl4tptinl8n.r79']
|
||||
- -D_L_EXTMEM_START=0
|
||||
- -D_L_EXTMEM_SIZE=0
|
||||
- -D_L_HEAP_SIZE=120
|
||||
- -D_L_STACK_SIZE=32
|
||||
- -e_small_write=_formatted_write
|
||||
- -s
|
||||
- __program_start
|
||||
- -f
|
||||
- [*tools_root, '\arm\config\lnkarm.xcl']
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'arm\config\']
|
||||
- [*tools_root, 'arm\lib\']
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.r79'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.d79'
|
||||
destination: *build_path
|
||||
simulator:
|
||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||
pre_support:
|
||||
- --silent
|
||||
- [*tools_root, 'arm\bin\armproc.dll']
|
||||
- [*tools_root, 'arm\bin\armsim.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*tools_root, 'arm\bin\armbat.dll']
|
||||
- --backend
|
||||
- -B
|
||||
- -p
|
||||
- [*tools_root, 'arm\config\ioat91sam7X256.ddf']
|
||||
- -d
|
||||
- sim
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
80
tests/unity/test/targets/iar_arm_v5.yml
Normal file
80
tests/unity/test/targets/iar_arm_v5.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3\'
|
||||
compiler:
|
||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --dlib_config
|
||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||
- --no_cse
|
||||
- --no_unroll
|
||||
- --no_inline
|
||||
- --no_code_motion
|
||||
- --no_tbaa
|
||||
- --no_clustering
|
||||
- --no_scheduling
|
||||
- --debug
|
||||
- --cpu_mode thumb
|
||||
- --endian=little
|
||||
- --cpu=ARM7TDMI
|
||||
- --interwork
|
||||
- --warnings_are_errors
|
||||
- --fpu=None
|
||||
- --diag_suppress=Pa050
|
||||
- --diag_suppress=Pe111
|
||||
- -e
|
||||
- -On
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'arm\inc\']
|
||||
- 'src\'
|
||||
- '..\src\'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
- 'vendor\unity\src\'
|
||||
- 'iar\iar_v5\incIAR\'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_SUPPORT_64
|
||||
- 'UNITY_SUPPORT_TEST_CASES'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.r79'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||
options:
|
||||
- --redirect _Printf=_PrintfLarge
|
||||
- --redirect _Scanf=_ScanfSmall
|
||||
- --semihosting
|
||||
- --entry __iar_program_start
|
||||
- --config
|
||||
- [*tools_root, 'arm\config\generic.icf']
|
||||
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, 'arm\bin\armproc.dll']
|
||||
- [*tools_root, 'arm\bin\armsim.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*tools_root, 'arm\bin\armbat.dll']
|
||||
- --backend
|
||||
- -B
|
||||
- -p
|
||||
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
||||
- -d
|
||||
- sim
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
80
tests/unity/test/targets/iar_arm_v5_3.yml
Normal file
80
tests/unity/test/targets/iar_arm_v5_3.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3\'
|
||||
compiler:
|
||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --dlib_config
|
||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||
- --no_cse
|
||||
- --no_unroll
|
||||
- --no_inline
|
||||
- --no_code_motion
|
||||
- --no_tbaa
|
||||
- --no_clustering
|
||||
- --no_scheduling
|
||||
- --debug
|
||||
- --cpu_mode thumb
|
||||
- --endian=little
|
||||
- --cpu=ARM7TDMI
|
||||
- --interwork
|
||||
- --warnings_are_errors
|
||||
- --fpu=None
|
||||
- --diag_suppress=Pa050
|
||||
- --diag_suppress=Pe111
|
||||
- -e
|
||||
- -On
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'arm\inc\']
|
||||
- 'src\'
|
||||
- '..\src\'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
- 'vendor\unity\src\'
|
||||
- 'iar\iar_v5\incIAR\'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- UNITY_SUPPORT_64
|
||||
- 'UNITY_SUPPORT_TEST_CASES'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.r79'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||
options:
|
||||
- --redirect _Printf=_PrintfLarge
|
||||
- --redirect _Scanf=_ScanfSmall
|
||||
- --semihosting
|
||||
- --entry __iar_program_start
|
||||
- --config
|
||||
- [*tools_root, 'arm\config\generic.icf']
|
||||
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, 'arm\bin\armproc.dll']
|
||||
- [*tools_root, 'arm\bin\armsim.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*tools_root, 'arm\bin\armbat.dll']
|
||||
- --backend
|
||||
- -B
|
||||
- -p
|
||||
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
||||
- -d
|
||||
- sim
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
94
tests/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml
Normal file
94
tests/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml
Normal file
@@ -0,0 +1,94 @@
|
||||
#Default tool path for IAR 5.4 on Windows XP 64bit
|
||||
tools_root: &tools_root 'C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\'
|
||||
compiler:
|
||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --diag_suppress=Pa050
|
||||
#- --diag_suppress=Pe111
|
||||
- --debug
|
||||
- --endian=little
|
||||
- --cpu=Cortex-M3
|
||||
- --no_path_in_file_macros
|
||||
- -e
|
||||
- --fpu=None
|
||||
- --dlib_config
|
||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||
#- --preinclude --preinclude C:\Vss\T2 Working\common\system.h
|
||||
- --interwork
|
||||
- --warnings_are_errors
|
||||
# - Ohz
|
||||
- -Oh
|
||||
# - --no_cse
|
||||
# - --no_unroll
|
||||
# - --no_inline
|
||||
# - --no_code_motion
|
||||
# - --no_tbaa
|
||||
# - --no_clustering
|
||||
# - --no_scheduling
|
||||
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'arm\inc\']
|
||||
- 'src\'
|
||||
- '..\src\'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
- 'vendor\unity\src\'
|
||||
- 'iar\iar_v5\incIAR\'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- ewarm
|
||||
- PART_LM3S9B92
|
||||
- TARGET_IS_TEMPEST_RB1
|
||||
- USE_ROM_DRIVERS
|
||||
- UART_BUFFERED
|
||||
- UNITY_SUPPORT_64
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.r79'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||
options:
|
||||
- --redirect _Printf=_PrintfLarge
|
||||
- --redirect _Scanf=_ScanfSmall
|
||||
- --semihosting
|
||||
- --entry __iar_program_start
|
||||
- --config
|
||||
- [*tools_root, 'arm\config\generic.icf']
|
||||
# - ['C:\Temp\lm3s9b92.icf']
|
||||
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, 'arm\bin\armproc.dll']
|
||||
- [*tools_root, 'arm\bin\armsim2.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*tools_root, 'arm\bin\armbat.dll']
|
||||
- --backend
|
||||
- -B
|
||||
- --endian=little
|
||||
- --cpu=Cortex-M3
|
||||
- --fpu=None
|
||||
- -p
|
||||
- [*tools_root, 'arm\config\debugger\TexasInstruments\iolm3sxxxx.ddf']
|
||||
- --semihosting
|
||||
- --device=LM3SxBxx
|
||||
#- -d
|
||||
#- sim
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
84
tests/unity/test/targets/iar_cortexm3_v5.yml
Normal file
84
tests/unity/test/targets/iar_cortexm3_v5.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
# unit testing under iar compiler / simulator for STM32 Cortex-M3
|
||||
|
||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.4\'
|
||||
compiler:
|
||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --dlib_config
|
||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||
- --no_cse
|
||||
- --no_unroll
|
||||
- --no_inline
|
||||
- --no_code_motion
|
||||
- --no_tbaa
|
||||
- --no_clustering
|
||||
- --no_scheduling
|
||||
- --debug
|
||||
- --cpu_mode thumb
|
||||
- --endian=little
|
||||
- --cpu=Cortex-M3
|
||||
- --interwork
|
||||
- --warnings_are_errors
|
||||
- --fpu=None
|
||||
- --diag_suppress=Pa050
|
||||
- --diag_suppress=Pe111
|
||||
- -e
|
||||
- -On
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- [*tools_root, 'arm\inc\']
|
||||
- 'src\'
|
||||
- '..\src\'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
- 'vendor\unity\src\'
|
||||
- 'iar\iar_v5\incIAR\'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- 'IAR'
|
||||
- 'UNITY_SUPPORT_64'
|
||||
- 'UNITY_SUPPORT_TEST_CASES'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.r79'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||
options:
|
||||
- --redirect _Printf=_PrintfLarge
|
||||
- --redirect _Scanf=_ScanfSmall
|
||||
- --semihosting
|
||||
- --entry __iar_program_start
|
||||
- --config
|
||||
- [*tools_root, 'arm\config\generic_cortex.icf']
|
||||
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, 'arm\bin\armproc.dll']
|
||||
- [*tools_root, 'arm\bin\armsim.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*tools_root, 'arm\bin\armbat.dll']
|
||||
- --backend
|
||||
- -B
|
||||
- -p
|
||||
- [*tools_root, 'arm\config\debugger\ST\iostm32f107xx.ddf']
|
||||
- --cpu=Cortex-M3
|
||||
- -d
|
||||
- sim
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
95
tests/unity/test/targets/iar_msp430.yml
Normal file
95
tests/unity/test/targets/iar_msp430.yml
Normal file
@@ -0,0 +1,95 @@
|
||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\'
|
||||
core_root: &core_root [*tools_root, '430\']
|
||||
core_bin: &core_bin [*core_root, 'bin\']
|
||||
core_config: &core_config [*core_root, 'config\']
|
||||
core_lib: &core_lib [*core_root, 'lib\']
|
||||
core_inc: &core_inc [*core_root, 'inc\']
|
||||
core_config: &core_config [*core_root, 'config\']
|
||||
|
||||
compiler:
|
||||
path: [*core_bin, 'icc430.exe']
|
||||
source_path: '..\src\'
|
||||
unit_tests_path: &unit_tests_path 'tests\'
|
||||
build_path: &build_path 'build\'
|
||||
options:
|
||||
- --dlib_config
|
||||
- [*core_lib, 'dlib\dl430fn.h']
|
||||
- --no_cse
|
||||
- --no_unroll
|
||||
- --no_inline
|
||||
- --no_code_motion
|
||||
- --no_tbaa
|
||||
- --debug
|
||||
- -e
|
||||
- -Ol
|
||||
- --multiplier=16
|
||||
- --double=32
|
||||
- --diag_suppress Pa050
|
||||
- --diag_suppress Pe111
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- *core_inc
|
||||
- [*core_inc, 'dlib']
|
||||
- [*core_lib, 'dlib']
|
||||
- 'src\'
|
||||
- '../src/'
|
||||
- 'testdata/'
|
||||
- *unit_tests_path
|
||||
- 'vendor\unity\src'
|
||||
defines:
|
||||
prefix: '-D'
|
||||
items:
|
||||
- '__MSP430F149__'
|
||||
- 'INT_WIDTH=16'
|
||||
- 'UNITY_EXCLUDE_FLOAT'
|
||||
- 'UNITY_SUPPORT_TEST_CASES'
|
||||
object_files:
|
||||
prefix: '-o'
|
||||
extension: '.r43'
|
||||
destination: *build_path
|
||||
linker:
|
||||
path: [*core_bin, 'xlink.exe']
|
||||
options:
|
||||
- -rt
|
||||
- [*core_lib, 'dlib\dl430fn.r43']
|
||||
- -e_PrintfTiny=_Printf
|
||||
- -e_ScanfSmall=_Scanf
|
||||
- -s __program_start
|
||||
- -D_STACK_SIZE=50
|
||||
- -D_DATA16_HEAP_SIZE=50
|
||||
- -D_DATA20_HEAP_SIZE=50
|
||||
- -f
|
||||
- [*core_config, 'lnk430f5438.xcl']
|
||||
- -f
|
||||
- [*core_config, 'multiplier.xcl']
|
||||
includes:
|
||||
prefix: '-I'
|
||||
items:
|
||||
- *core_config
|
||||
- *core_lib
|
||||
- [*core_lib, 'dlib']
|
||||
object_files:
|
||||
path: *build_path
|
||||
extension: '.r79'
|
||||
bin_files:
|
||||
prefix: '-o'
|
||||
extension: '.d79'
|
||||
destination: *build_path
|
||||
simulator:
|
||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||
pre_support:
|
||||
- --silent
|
||||
- [*core_bin, '430proc.dll']
|
||||
- [*core_bin, '430sim.dll']
|
||||
post_support:
|
||||
- --plugin
|
||||
- [*core_bin, '430bat.dll']
|
||||
- --backend -B
|
||||
- --cpu MSP430F5438
|
||||
- -p
|
||||
- [*core_config, 'MSP430F5438.ddf']
|
||||
- -d sim
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
86
tests/unity/test/targets/iar_sh2a_v6.yml
Normal file
86
tests/unity/test/targets/iar_sh2a_v6.yml
Normal file
@@ -0,0 +1,86 @@
|
||||
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
|
||||
colour: true
|
||||
:unity:
|
||||
:plugins: []
|
||||
Reference in New Issue
Block a user