File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -173,3 +173,25 @@ def test_init_override_app_config(target):
173
173
174
174
mock_json_file_to_dict .assert_called_once_with (app_config )
175
175
assert config .app_config_data == mock_return
176
+
177
+ @pytest .mark .parametrize ("target" , ["K64F" , "UBLOX_EVK_ODIN_W2" ])
178
+ @pytest .mark .parametrize ("overrides" , [
179
+ {},
180
+ {"restrict_size" : "0x200" },
181
+ {"mbed_app_start" : "0x200" }
182
+ ])
183
+ def test_basic_regions (target , overrides ):
184
+ """
185
+ Test that the region lists are sane with various configurations
186
+ """
187
+ set_targets_json_location ()
188
+ config = Config (target )
189
+ for o , v in overrides .items ():
190
+ setattr (config .target , o , v )
191
+ try :
192
+ if config .has_regions :
193
+ regions = list (config .regions )
194
+ for r in regions :
195
+ assert r .size >= 0
196
+ except ConfigException :
197
+ pass
You can’t perform that action at this time.
0 commit comments