Lines Matching refs:test_case
468 def id_fn(test_case): argument
469 if test_case.coprocessor is None:
473 s = 'soft_reset' if test_case.softreset else 'pin_reset'
474 sn = 'default_snr' if test_case.snr else 'override_snr'
475 e = 'chip_erase' if test_case.erase else 'sector[anduicr]_erase'
476 r = 'recover' if test_case.recover else 'no_recover'
477 t = 'tool_opt' if test_case.tool_opt else 'no_tool_opt'
481 def fix_up_runner_config(test_case, runner_config, tmpdir): argument
498 if test_case.family != 'NRF53_FAMILY':
501 if test_case.coprocessor == 'APP':
503 elif test_case.coprocessor == 'NET':
505 elif test_case.coprocessor == 'APP+NET':
516 def check_expected(tool, test_case, check_fn, get_snr, tmpdir, runner_config): argument
518 expected = EXPECTED_RESULTS[test_case][EXPECTED_MAP[tool]]
538 if not test_case.snr:
550 def test_init(check_call, popen, get_snr, require, tool, test_case, argument
555 runner_config = fix_up_runner_config(test_case, runner_config, tmpdir)
556 snr = TEST_OVR_SNR if test_case.snr else None
557 tool_opt = TEST_TOOL_OPT_L if test_case.tool_opt else []
560 test_case.family,
561 test_case.softreset,
563 erase=test_case.erase,
565 recover=test_case.recover)
572 check_expected(tool, test_case, CHECK_FN_MAP[tool], get_snr, tmpdir,
582 def test_create(check_call, popen, get_snr, require, tool, test_case, argument
587 runner_config = fix_up_runner_config(test_case, runner_config, tmpdir)
590 if test_case.softreset:
592 if test_case.snr:
594 if test_case.erase:
596 if test_case.recover:
598 if test_case.tool_opt:
612 check_expected(tool, test_case, CHECK_FN_MAP[tool], get_snr, tmpdir,