mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01: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,78 +1,71 @@
|
||||
---
|
||||
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
|
||||
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: []
|
||||
: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"
|
||||
- "-fno-common"
|
||||
- "-fstrict-aliasing"
|
||||
- "-std=gnu99"
|
||||
- "-pedantic"
|
||||
- "-O0"
|
||||
- '-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: clang
|
||||
:arguments:
|
||||
- "${1}"
|
||||
- "-lm"
|
||||
- "-m64"
|
||||
- "-o ${2}"
|
||||
:extension:
|
||||
:object: ".o"
|
||||
:executable: ".exe"
|
||||
:paths:
|
||||
:test:
|
||||
- src/
|
||||
- "../src/"
|
||||
- testdata/
|
||||
- tests/
|
||||
:defines:
|
||||
:test:
|
||||
- UNITY_INCLUDE_DOUBLE
|
||||
- UNITY_SUPPORT_TEST_CASES
|
||||
- UNITY_SUPPORT_64
|
||||
|
||||
Reference in New Issue
Block a user