diff --git a/examples/example_3/rakefile.rb b/examples/example_3/rakefile.rb index 85f3272..d34619b 100644 --- a/examples/example_3/rakefile.rb +++ b/examples/example_3/rakefile.rb @@ -20,7 +20,7 @@ end task prepare_for_tests: TEMP_DIRS -DEFAULT_CONFIG_FILE = 'gcc_64.yml'.freeze +DEFAULT_CONFIG_FILE = 'gcc.yml'.freeze configure_toolchain(DEFAULT_CONFIG_FILE) task unit: [:prepare_for_tests] do diff --git a/test/rakefile b/test/rakefile index 3c9f9bb..0bfa70c 100644 --- a/test/rakefile +++ b/test/rakefile @@ -27,7 +27,7 @@ task :prepare_for_tests => TEMP_DIRS include RakefileHelpers # Load proper GCC as defult configuration -DEFAULT_CONFIG_FILE = 'gcc_64_auto_stdint.yml' +DEFAULT_CONFIG_FILE = 'gcc.yml' $unity_test_config_file = DEFAULT_CONFIG_FILE ############# ALL THE SELF-TESTS WE CAN PERFORM diff --git a/test/targets/clang_strict.yml b/test/targets/clang.yml similarity index 85% rename from test/targets/clang_strict.yml rename to test/targets/clang.yml index 777c712..dc7018d 100644 --- a/test/targets/clang_strict.yml +++ b/test/targets/clang.yml @@ -5,6 +5,11 @@ # SPDX-License-Identifier: MIT # ========================================================================= +# This file provides a base configuration for working with the clang (llvm) +# toolchain, targetting native compilation, using mostly default settings, +# with many warnings enabled for self-validation. It can be modified or +# mixed to customize for your project needs. + --- :tools: :test_compiler: diff --git a/test/targets/clang_file.yml b/test/targets/clang_file.yml deleted file mode 100644 index 886bb8c..0000000 --- a/test/targets/clang_file.yml +++ /dev/null @@ -1,70 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: clang - :arguments: - - "-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" - - "-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" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: clang - :arguments: - - "${1}" - - "-lm" - - "-m64" - - "-o ${2}" -:extension: - :object: ".o" - :executable: ".exe" -:defines: - :test: - - UNITY_INCLUDE_DOUBLE - - UNITY_SUPPORT_64 - - UNITY_OUTPUT_RESULTS_FILE - - UNITY_POINTER_WIDTH=64 diff --git a/test/targets/gcc_64_auto_stdint.yml b/test/targets/gcc.yml similarity index 79% rename from test/targets/gcc_64_auto_stdint.yml rename to test/targets/gcc.yml index 34e08d6..c4aa96a 100644 --- a/test/targets/gcc_64_auto_stdint.yml +++ b/test/targets/gcc.yml @@ -5,6 +5,11 @@ # SPDX-License-Identifier: MIT # ========================================================================= +# This file provides a base configuration for working with the gcc +# toolchain, targetting native compilation, using mostly default settings, +# with many warnings enabled for self-validation. It can be modified or +# mixed to customize for your project needs. + --- :tools: :test_compiler: @@ -12,7 +17,6 @@ :executable: gcc :arguments: - "-c" - - "-m64" - "-Wall" - "-Wno-address" - "-std=c99" @@ -40,7 +44,6 @@ :arguments: - "${1}" - "-lm" - - "-m64" - "-o ${2}" :extension: :object: ".o" @@ -50,3 +53,4 @@ - UNITY_INCLUDE_DOUBLE - UNITY_SUPPORT_TEST_CASES - UNITY_SUPPORT_64 + - UNITY_POINTER_WIDTH=64 diff --git a/test/targets/gcc_32.yml b/test/targets/gcc_32.yml deleted file mode 100644 index fc763c1..0000000 --- a/test/targets/gcc_32.yml +++ /dev/null @@ -1,43 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: gcc - :arguments: - - "-c" - - "-m32" - - "-Wall" - - "-Wno-address" - - "-std=c99" - - "-pedantic" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: gcc - :arguments: - - "${1}" - - "-lm" - - "-m32" - - "-o ${2}" -:extension: - :object: ".o" - :executable: ".exe" -:defines: - :test: - - UNITY_EXCLUDE_STDINT_H - - UNITY_EXCLUDE_LIMITS_H - - UNITY_INCLUDE_DOUBLE - - UNITY_SUPPORT_TEST_CASES - - UNITY_INT_WIDTH=32 - - UNITY_LONG_WIDTH=32 - - UNITY_SUPPORT_64 diff --git a/test/targets/gcc_64.yml b/test/targets/gcc_64.yml deleted file mode 100644 index 2991bdd..0000000 --- a/test/targets/gcc_64.yml +++ /dev/null @@ -1,44 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: gcc - :arguments: - - "-c" - - "-m64" - - "-Wall" - - "-Wno-address" - - "-std=c99" - - "-pedantic" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: gcc - :arguments: - - "${1}" - - "-lm" - - "-m64" - - "-o ${2}" -:extension: - :object: ".o" - :executable: ".exe" -:defines: - :test: - - 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 - - UNITY_POINTER_WIDTH=64 diff --git a/test/targets/gcc_64_ansi.yml b/test/targets/gcc_64_ansi.yml deleted file mode 100644 index fb4b4ce..0000000 --- a/test/targets/gcc_64_ansi.yml +++ /dev/null @@ -1,41 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:skip_tests: -- :parameterized -:tools: - :test_compiler: - :name: compiler - :executable: gcc - :arguments: - - "-c" - - "-m64" - - "-Wall" - - "-Wno-address" - - "-ansi" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: gcc - :arguments: - - "${1}" - - "-lm" - - "-m64" - - "-o ${2}" -:extension: - :object: ".o" - :executable: ".exe" -:defines: - :test: - - UNITY_INCLUDE_DOUBLE - - UNITY_SUPPORT_TEST_CASES - - UNITY_EXCLUDE_TESTING_NEW_COMMENTS - - UNITY_SUPPORT_64 \ No newline at end of file diff --git a/test/targets/gcc_64_auto_limits.yml b/test/targets/gcc_64_auto_limits.yml deleted file mode 100644 index 609a785..0000000 --- a/test/targets/gcc_64_auto_limits.yml +++ /dev/null @@ -1,40 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: gcc - :arguments: - - "-c" - - "-m64" - - "-Wall" - - "-Wno-address" - - "-std=c99" - - "-pedantic" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: gcc - :arguments: - - "${1}" - - "-lm" - - "-m64" - - "-o ${2}" -:extension: - :object: ".o" - :executable: ".exe" -:defines: - :test: - - UNITY_EXCLUDE_STDINT_H - - UNITY_INCLUDE_DOUBLE - - UNITY_SUPPORT_TEST_CASES - - UNITY_SUPPORT_64 diff --git a/test/targets/gcc_64_manual_math.yml b/test/targets/gcc_64_manual_math.yml deleted file mode 100644 index 8558f1e..0000000 --- a/test/targets/gcc_64_manual_math.yml +++ /dev/null @@ -1,40 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: gcc - :arguments: - - "-c" - - "-m64" - - "-Wall" - - "-Wno-address" - - "-std=c99" - - "-pedantic" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: gcc - :arguments: - - "${1}" - - "-lm" - - "-m64" - - "-o ${2}" -:extension: - :object: ".o" - :executable: ".exe" -:defines: - :test: - - UNITY_EXCLUDE_MATH_H - - UNITY_INCLUDE_DOUBLE - - UNITY_SUPPORT_TEST_CASES - - UNITY_SUPPORT_64 diff --git a/test/targets/hitech_picc18.yml b/test/targets/hitech_picc18.yml index c0a51f6..0d22a59 100644 --- a/test/targets/hitech_picc18.yml +++ b/test/targets/hitech_picc18.yml @@ -5,6 +5,11 @@ # SPDX-License-Identifier: MIT # ========================================================================= +# This file provides a sample configuration for working with Hitech's PICC +# toolchain, targetting native compilation, using mostly default settings, +# with many warnings enabled for self-validation. It can be modified or +# mixed to customize for your project needs. + --- :cmock: :plugins: [] @@ -76,15 +81,6 @@ :extension: :object: ".obj" :executable: ".hex" -:paths: - :test: - - 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/ - - tests\ :defines: :test: - UNITY_INT_WIDTH=16 diff --git a/test/targets/iar_arm.yml b/test/targets/iar_arm.yml new file mode 100644 index 0000000..9d0b336 --- /dev/null +++ b/test/targets/iar_arm.yml @@ -0,0 +1,88 @@ +# ========================================================================= +# Unity - A Test Framework for C +# ThrowTheSwitch.org +# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams +# SPDX-License-Identifier: MIT +# ========================================================================= + +# This file provides a sample configuration for working with IAR's arm +# toolchain, targetting native compilation, using mostly default settings, +# with many warnings enabled for self-validation. It can be modified or +# mixed to customize for your project needs. + +# Because IAR specifies things often with absolute paths, it is very likely +# that this file will need to be edited. The items which vary from target to +# target and host to host have been broken into this top iar_config section +# for easy editing: + +--- +:iar_config: + :iccarm: &iccarm "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\bin\\iccarm.exe" + :ilinkarm: &ilinkarm "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\bin\\ilinkarm.exe" + :cspybat: &cspybat "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\common\\bin\\CSpyBat.exe" + :config_file: &config_file "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\inc\\DLib_Config_Normal.h" + :icf_file: &icf_file "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\config\\generic.icf" + :armproc_file: &armproc_file "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\bin\\armproc.dll" + :armsim_file: &armsim_file "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\bin\\armsim2.dll" + :armbat_file: &armbat_file "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\bin\\armbat.dll" + :debug_file: &debug_file "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 5.4 Kickstart\\arm\\config\\debugger\\TexasInstruments\\iolm3sxxxx.ddf" + :cpu: &cpu "--cpu=Cortex-M3" + :device: &device "--device=LM3SxBxx" + +:tools: + :test_compiler: + :name: compiler + :executable: *iccarm + :arguments: + - "--diag_suppress=Pa050" + - "--debug" + - "--endian=little" + - "--cpu=Cortex-M3" + - "--no_path_in_file_macros" + - "-e" + - "--fpu=None" + - "--dlib_config" + - *config_file + - "--interwork" + - "--warnings_are_errors" + - "-Oh" + - '-I"${5}"' + - "-D${6}" + - "${1}" + - "-o ${2}" + :test_linker: + :name: linker + :executable: *ilinkarm + :arguments: + - "${1}" + - "--redirect _Printf=_PrintfLarge" + - "--redirect _Scanf=_ScanfSmall" + - "--semihosting" + - "--entry __iar_program_start" + - "--config" + - *icf_file + - "-o ${2}" + :test_fixture: + :name: simulator + :executable: + :arguments: + - *armproc_file + - *armsim_file + - "${1}" + - "--plugin" + - *armbat_file + - "--backend" + - "-B" + - "--endian=little" + - *cpu + - "--fpu=None" + - "-p" + - *debug_file + - "--semihosting" + - *device +:extension: + :object: ".r79" + :executable: ".out" +:defines: + :test: + - IAR diff --git a/test/targets/iar_arm_v4.yml b/test/targets/iar_arm_v4.yml deleted file mode 100644 index 8c0a28f..0000000 --- a/test/targets/iar_arm_v4.yml +++ /dev/null @@ -1,86 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\arm\bin\iccarm.exe - :arguments: - - "--dlib_config" - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\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" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\common\bin\xlink.exe - :arguments: - - "${1}" - - "-rt" - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\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" - - "C:\\Program Files\\IAR Systems\\Embedded Workbench 4.0 Kickstart\\arm\\config\\lnkarm.xcl" - - "-o ${2}" - :test_fixture: - :name: simulator - :executable: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\common\bin\CSpyBat.exe - :arguments: - - "--silent" - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\arm\bin\armproc.dll - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\arm\bin\armsim.dll - - "${1}" - - "--plugin" - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\arm\bin\armbat.dll - - "--backend" - - "-B" - - "-p" - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\arm\config\ioat91sam7X256.ddf - - "-d" - - sim -:extension: - :object: ".r79" - :executable: ".d79" -:paths: - :test: - - C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\arm\inc\ - - src\ - - "..\\src\\" - - testdata/ - - tests\ - - vendor\unity\src\ -:defines: - :test: - - UNITY_SUPPORT_64 - - UNITY_SUPPORT_TEST_CASES diff --git a/test/targets/iar_arm_v5.yml b/test/targets/iar_arm_v5.yml deleted file mode 100644 index 4ac5d9b..0000000 --- a/test/targets/iar_arm_v5.yml +++ /dev/null @@ -1,81 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\iccarm.exe - :arguments: - - "--dlib_config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\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" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\ilinkarm.exe - :arguments: - - "${1}" - - "--redirect _Printf=_PrintfLarge" - - "--redirect _Scanf=_ScanfSmall" - - "--semihosting" - - "--entry __iar_program_start" - - "--config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\config\generic.icf - - "-o ${2}" - :test_fixture: - :name: simulator - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3\common\bin\CSpyBat.exe - :arguments: - - "--silent" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\armproc.dll - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\armsim.dll - - "${1}" - - "--plugin" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\armbat.dll - - "--backend" - - "-B" - - "-p" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\config\debugger\atmel\ioat91sam7X256.ddf - - "-d" - - sim -:extension: - :object: ".r79" - :executable: ".out" -:paths: - :test: - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\inc\ - - src\ - - "..\\src\\" - - testdata/ - - tests\ - - vendor\unity\src\ - - iar\iar_v5\incIAR\ -:defines: - :test: - - UNITY_SUPPORT_64 - - UNITY_SUPPORT_TEST_CASES diff --git a/test/targets/iar_arm_v5_3.yml b/test/targets/iar_arm_v5_3.yml deleted file mode 100644 index 4ac5d9b..0000000 --- a/test/targets/iar_arm_v5_3.yml +++ /dev/null @@ -1,81 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\iccarm.exe - :arguments: - - "--dlib_config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\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" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\ilinkarm.exe - :arguments: - - "${1}" - - "--redirect _Printf=_PrintfLarge" - - "--redirect _Scanf=_ScanfSmall" - - "--semihosting" - - "--entry __iar_program_start" - - "--config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\config\generic.icf - - "-o ${2}" - :test_fixture: - :name: simulator - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3\common\bin\CSpyBat.exe - :arguments: - - "--silent" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\armproc.dll - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\armsim.dll - - "${1}" - - "--plugin" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\bin\armbat.dll - - "--backend" - - "-B" - - "-p" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\config\debugger\atmel\ioat91sam7X256.ddf - - "-d" - - sim -:extension: - :object: ".r79" - :executable: ".out" -:paths: - :test: - - C:\Program Files\IAR Systems\Embedded Workbench 5.3\arm\inc\ - - src\ - - "..\\src\\" - - testdata/ - - tests\ - - vendor\unity\src\ - - iar\iar_v5\incIAR\ -:defines: - :test: - - UNITY_SUPPORT_64 - - UNITY_SUPPORT_TEST_CASES diff --git a/test/targets/iar_armcortex_LM3S9B92_v5_4.yml b/test/targets/iar_armcortex_LM3S9B92_v5_4.yml deleted file mode 100644 index 8bf938f..0000000 --- a/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +++ /dev/null @@ -1,79 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\bin\iccarm.exe - :arguments: - - "--diag_suppress=Pa050" - - "--debug" - - "--endian=little" - - "--cpu=Cortex-M3" - - "--no_path_in_file_macros" - - "-e" - - "--fpu=None" - - "--dlib_config" - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\inc\DLib_Config_Normal.h - - "--interwork" - - "--warnings_are_errors" - - "-Oh" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\bin\ilinkarm.exe - :arguments: - - "${1}" - - "--redirect _Printf=_PrintfLarge" - - "--redirect _Scanf=_ScanfSmall" - - "--semihosting" - - "--entry __iar_program_start" - - "--config" - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\config\generic.icf - - "-o ${2}" - :test_fixture: - :name: simulator - :executable: C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\common\bin\CSpyBat.exe - :arguments: - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\bin\armproc.dll - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\bin\armsim2.dll - - "${1}" - - "--plugin" - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\bin\armbat.dll - - "--backend" - - "-B" - - "--endian=little" - - "--cpu=Cortex-M3" - - "--fpu=None" - - "-p" - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\config\debugger\TexasInstruments\iolm3sxxxx.ddf - - "--semihosting" - - "--device=LM3SxBxx" -:extension: - :object: ".r79" - :executable: ".out" -:paths: - :test: - - C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\arm\inc\ - - src\ - - "..\\src\\" - - testdata/ - - tests\ - - vendor\unity\src\ - - iar\iar_v5\incIAR\ -:defines: - :test: - - ewarm - - PART_LM3S9B92 - - TARGET_IS_TEMPEST_RB1 - - USE_ROM_DRIVERS - - UART_BUFFERED - - UNITY_SUPPORT_64 diff --git a/test/targets/iar_cortexm3_v5.yml b/test/targets/iar_cortexm3_v5.yml deleted file mode 100644 index 4f3912c..0000000 --- a/test/targets/iar_cortexm3_v5.yml +++ /dev/null @@ -1,83 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\bin\iccarm.exe - :arguments: - - "--dlib_config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\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" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\bin\ilinkarm.exe - :arguments: - - "${1}" - - "--redirect _Printf=_PrintfLarge" - - "--redirect _Scanf=_ScanfSmall" - - "--semihosting" - - "--entry __iar_program_start" - - "--config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\config\generic_cortex.icf - - "-o ${2}" - :test_fixture: - :name: simulator - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.4\common\bin\CSpyBat.exe - :arguments: - - "--silent" - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\bin\armproc.dll - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\bin\armsim.dll - - "${1}" - - "--plugin" - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\bin\armbat.dll - - "--backend" - - "-B" - - "-p" - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\config\debugger\ST\iostm32f107xx.ddf - - "--cpu=Cortex-M3" - - "-d" - - sim -:extension: - :object: ".r79" - :executable: ".out" -:paths: - :test: - - C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\inc\ - - src\ - - "..\\src\\" - - testdata/ - - tests\ - - vendor\unity\src\ - - iar\iar_v5\incIAR\ -:defines: - :test: - - IAR - - UNITY_SUPPORT_64 - - UNITY_SUPPORT_TEST_CASES diff --git a/test/targets/iar_msp430.yml b/test/targets/iar_msp430.yml deleted file mode 100644 index 70e76e0..0000000 --- a/test/targets/iar_msp430.yml +++ /dev/null @@ -1,83 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -:tools: - :test_compiler: - :name: compiler - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\bin\icc430.exe - :arguments: - - "--dlib_config" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\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" - - '-I"${5}"' - - "-D${6}" - - "${1}" - - "-o ${2}" - :test_linker: - :name: linker - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\bin\xlink.exe - :arguments: - - "${1}" - - "-rt" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\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" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\config\lnk430f5438.xcl - - "-f" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\config\multiplier.xcl - - "-o ${2}" - :test_fixture: - :name: simulator - :executable: C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\common\bin\CSpyBat.exe - :arguments: - - "--silent" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\bin\430proc.dll - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\bin\430sim.dll - - "${1}" - - "--plugin" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\bin\430bat.dll - - "--backend -B" - - "--cpu MSP430F5438" - - "-p" - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\config\MSP430F5438.ddf - - "-d sim" -:extension: - :object: ".r43" - :executable: ".d79" -:paths: - :test: - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\inc\ - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\inc\dlib - - C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\430\lib\dlib - - src\ - - "../src/" - - testdata/ - - tests\ - - vendor\unity\src -:defines: - :test: - - __MSP430F149__ - - INT_WIDTH=16 - - UNITY_EXCLUDE_FLOAT - - UNITY_SUPPORT_TEST_CASES diff --git a/test/targets/iar_sh2a_v6.yml b/test/targets/iar_sh2a_v6.yml deleted file mode 100644 index ae4a123..0000000 --- a/test/targets/iar_sh2a_v6.yml +++ /dev/null @@ -1,87 +0,0 @@ -# ========================================================================= -# Unity - A Test Framework for C -# ThrowTheSwitch.org -# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams -# SPDX-License-Identifier: MIT -# ========================================================================= - ---- -: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"${5}"' - - "-D${6}" - - "${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 diff --git a/test/targets/no_stdlib.yml b/test/targets/no_stdlib.yml new file mode 100644 index 0000000..05ee97d --- /dev/null +++ b/test/targets/no_stdlib.yml @@ -0,0 +1,23 @@ +# ========================================================================= +# Unity - A Test Framework for C +# ThrowTheSwitch.org +# Copyright (c) 2007-26 Mike Karlesky, Mark VanderVoord, & Greg Williams +# SPDX-License-Identifier: MIT +# ========================================================================= + +# This file is meant to be used with a toolchain specifying file. +# This adds common settings for dealing with platforms which don't include +# a standard library (often embedded devices). Specific defines can be +# overwritten if assumptions here are not correct. + +--- +:defines: + :test: + - UNITY_EXCLUDE_STDINT_H + - UNITY_EXCLUDE_LIMITS_H + - UNITY_EXCLUDE_MATH_H + - UNITY_EXCLUDE_FLOAT + - UNITY_EXCLUDE_DOUBLE + - UNITY_INT_WIDTH=32 + - UNITY_LONG_WIDTH=64 + - UNITY_POINTER_WIDTH=64