Lines Matching +full:- +full:- +full:json

4 # SPDX-License-Identifier: Apache-2.0
10 import json
17 # pylint: disable=no-name-in-module
31 r'Found [1-9]+[0-9]* footprint deltas to .*blackbox-out\.[0-9]+/twister.json as a baseline'
33 DELTA_WARNING_RUN = re.compile(r'Found [1-9]+[0-9]* footprint deltas to the last twister run')
37 DELTA_DETAIL = re.compile(RAM_KEY + r' \+[0-9]+, is now +[0-9]+ \+[0-9.]+%')
62 args = ['-i', '--outdir', out_path, '-T', path] + \
63 ['--enable-size-report'] + \
65 ['-p'] * len(test_platforms), test_platforms
75 # Note: if footprint tests take too long, replace first run with a prepared twister.json
76 # That will increase test-to-code_under_test coupling, however.
77 with open(os.path.join(out_path, 'twister.json')) as f:
78 j = json.load(f)
84 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
85 f.write(json.dumps(j, indent=4))
90 'twister.json'
96 args = ['-i', '--outdir', out_path, '-T', path] + \
97 ['--compare-report', report_path] + \
98 ['--show-footprint'] + \
100 ['-p'] * len(test_platforms), test_platforms
124 args = ['-i', '--outdir', out_path, '-T', path] + \
126 ['--enable-size-report'] + \
128 ['-p'] * len(test_platforms), test_platforms
139 with open(os.path.join(out_path, 'twister.json')) as f:
140 j = json.load(f)
149 args = ['-i', '--outdir', out_path, '-T', path] + \
150 ['--footprint-from-buildlog'] + \
151 ['--enable-size-report'] + \
153 ['-p'] * len(test_platforms), test_platforms
164 with open(os.path.join(out_path, 'twister.json')) as f:
165 j = json.load(f)
189 args = ['-i', '--outdir', out_path, '-T', path] + \
190 ['--enable-size-report'] + \
192 ['-p'] * len(test_platforms), test_platforms
202 # Note: if footprint tests take too long, replace first run with a prepared twister.json
203 # That will increase test-to-code_under_test coupling, however.
204 with open(os.path.join(out_path, 'twister.json')) as f:
205 j = json.load(f)
210 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
211 f.write(json.dumps(j, indent=4))
216 'twister.json'
222 args = ['-i', '--outdir', out_path, '-T', path] + \
223 [f'--footprint-threshold={threshold}'] + \
224 ['--compare-report', report_path, '--show-footprint'] + \
226 ['-p'] * len(test_platforms), test_platforms
250 (['--show-footprint'], 0.75, True),
258 args = ['-i', '--outdir', out_path, '-T', path] + \
259 ['--enable-size-report'] + \
261 ['-p'] * len(test_platforms), test_platforms
271 # Note: if footprint tests take too long, replace first run with a prepared twister.json
272 # That will increase test-to-code_under_test coupling, however.
273 with open(os.path.join(out_path, 'twister.json')) as f:
274 j = json.load(f)
279 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
280 f.write(json.dumps(j, indent=4))
285 'twister.json'
291 args = ['-i', '--outdir', out_path, '-T', path] + \
293 ['--compare-report', report_path] + \
295 ['-p'] * len(test_platforms), test_platforms
331 args = ['-i', '--outdir', out_path, '-T', path] + \
332 ['--enable-size-report'] + \
334 ['-p'] * len(test_platforms), test_platforms
344 # Note: if footprint tests take too long, replace first run with a prepared twister.json
345 # That will increase test-to-code_under_test coupling, however.
346 with open(os.path.join(out_path, 'twister.json')) as f:
347 j = json.load(f)
352 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
353 f.write(json.dumps(j, indent=4))
358 'twister.json'
364 args = ['-i', '--outdir', out_path, '-T', path] + \
365 ['--last-metrics'] + \
366 ['--show-footprint'] + \
368 ['-p'] * len(test_platforms), test_platforms
395 args = ['-i', '--outdir', out_path, '-T', path] + \
396 ['--compare-report', report_path] + \
397 ['--show-footprint'] + \
399 ['-p'] * len(test_platforms), test_platforms
428 args = ['-i', '--outdir', out_path, '-T', path] + \
429 ['--enable-size-report'] + \
431 ['-p'] * len(test_platforms), test_platforms
441 # Note: if footprint tests take too long, replace first run with a prepared twister.json
442 # That will increase test-to-code_under_test coupling, however.
443 with open(os.path.join(out_path, 'twister.json')) as f:
444 j = json.load(f)
449 with open(os.path.join(out_path, 'twister.json'), 'w') as f:
450 f.write(json.dumps(j, indent=4))
455 'twister.json'
461 args = ['-i', '--outdir', out_path, '-T', path] + \
462 ['--all-deltas'] + \
463 ['--compare-report', report_path, '--show-footprint'] + \
465 ['-p'] * len(test_platforms), test_platforms