-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.yml
204 lines (183 loc) · 4.78 KB
/
project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
:project:
:build_root: build/ceedling/generated
:test_file_prefix: test_
:which_ceedling: vendor/ceedling
:use_exceptions: FALSE
:release_build: FALSE
:use_test_preprocessor: FALSE
:use_auxiliary_dependencies: TRUE
:default_tasks:
- test:all
:environment:
- :mcu: PIC16F18345
- :mplabx_root: "C:/MPLABX/"
- :path:
- "C:/xc8/bin"
- 'D:/Ruby26-x64/bin'
- "#{ENV['PATH']}"
- build
#:test_build:
# :use_assembly: TRUE
#:release_build:
# :output: MyApp.out
# :use_assembly: FALSE
:extension:
:object: .p1
:executable: .elf
:assembly: .S
:paths:
:test:
- +:test/**
- -:test/support
:source:
- src/**
:include:
- "C:/xc8/pic/include"
:support:
- test/support
:libraries: []
:defines:
# in order to add common defines:
# 1) remove the trailing [] from the :common: section
# 2) add entries to the :common: section (e.g. :test: has TEST defined)
:commmon: &common_defines []
:test:
- *common_defines
# - UNITY_INCLUDE_CONFIG_H
- UNITY_OUTPUT_COLOR #this is just here to make sure it gets removed by ceedling
- TEST
:test_preprocess:
- *common_defines
- TEST
:unity:
:defines:
- UNITY_EXCLUDE_SETJMP_H
- UNITY_EXCLUDE_MATH_H
- UNITY_EXCLUDE_FLOAT
:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:treat_externs: :include
:enforce_strict_ordering: TRUE
:fail_on_unexpected_calls: FALSE
:exclude_setjmp_h: TRUE
:defines:
- CMOCK_MEM_SIZE=256
:plugins:
- :ignore
- :ignore_arg
- :callback
- :expect_any_args
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
int8: INT8
bool: UINT8
# Add -gcov to the plugins list to make sure of the gcov plugin
# You will need to have gcov and gcovr both installed to make it work.
# For more information on these options, see docs in plugins/gcov
:gcov:
:reports:
- HtmlDetailed
:gcovr:
:html_medium_threshold: 75
:html_high_threshold: 90
:tools:
:release_compiler:
:name: "Microchip XC8 Compiler"
:executable: xc8-cc
:arguments:
- "-mcpu=#{ENV['MCU']}"
- -std=c99
- -O1
- -Wa,-a
- -D"$": COLLECTION_DEFINES_RELEASE_AND_VENDOR
- -I"$": COLLECTION_PATHS_SOURCE_AND_INCLUDE
- -Iinclude/
- -o "${2}"
- -c
- "${1}"
:release_assembler:
:name: "Microchip XC8 Compiler"
:executable: xc8-cc
:arguments:
- "-mcpu=#{ENV['MCU']}"
- -std=c99
- -O1
- -Wa,-a
- -D"$": COLLECTION_DEFINES_RELEASE_AND_VENDOR
- -I"$": COLLECTION_PATHS_SOURCE_AND_INCLUDE
- -o "${2}"
- -c
- "${1}"
:release_linker:
:name: "Microchip XC8 Linker"
:executable: xc8-cc
:arguments:
- "-mcpu=#{ENV['MCU']}"
- -gdwarf-3
- -D"$": COLLECTION_DEFINES_RELEASE_AND_VENDOR
- -I"$": COLLECTION_PATHS_SOURCE_AND_INCLUDE
- -Wl,-Map="${3}"
- -o "${2}"
- "{'${1}'.split(' ').map { |x| (x.include? '/out/c/') ? (Pathname(x).sub_ext('.p1')).to_s : x }.join(' ') }"
- "${4}"
:test_compiler:
:name: "Microchip XC8 Compiler"
:executable: xc8-cc
:arguments:
- -mcpu=#{ENV['MCU']}
- -std=c99
- -O1
- -Wa,-a
- -D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- -Iinclude/
- -o "${2}"
- -c
- "${1}"
:test_file_preprocessor:
:name: "Microchip XC8 preprocessor"
:executable: xc8-cc
:arguments:
- -mcpu=#{ENV['MCU']}
- -std=c99
- -D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- "${1}"
:test_includes_preprocessor:
:name: "Microchip XC8 includes preprocessor"
:executable: xc8-cc
:arguments:
- -mcpu=#{ENV['MCU']}
- -std=c99
- -D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- "${1}"
:test_linker:
:name: "Microchip XC8 Linker"
:executable: xc8-cc
:arguments:
- -mcpu=#{ENV['MCU']}
- -gdwarf-3
- -D"$": COLLECTION_DEFINES_TEST_AND_VENDOR
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- -Wl,-Map="${3}"
- -o"./build/ceedling/generated/test/out/test_build.elf"
- "{'${1}'.split(' ').map { |x| (x.include? '/out/c/') ? (Pathname(x).sub_ext('.p1')).to_s : x }.join(' ') }"
- "${4}"
:test_fixture:
:executable: ruby
:name: "Microchip simulator test fixture"
:stderr_redirect: :win #inform Ceedling what model of $stderr capture to use
:arguments:
- test/simulation/sim_test_fixture.rb
:plugins:
:load_paths:
- vendor/ceedling/plugins
:enabled:
- stdout_pretty_tests_report
- module_generator
- raw_output_report
- warnings_report