Home
last modified time | relevance | path

Searched refs:u_boot_console (Results 1 – 25 of 27) sorted by relevance

12

/external/u-boot/test/py/tests/
Dtest_tpm2.py25 def force_init(u_boot_console, force=False): argument
32 output = u_boot_console.run_command('tpm init')
34 u_boot_console.run_command('echo --- start of init ---')
35 u_boot_console.run_command('tpm startup TPM2_SU_CLEAR')
36 u_boot_console.run_command('tpm self_test full')
37 u_boot_console.run_command('tpm clear TPM2_RH_LOCKOUT')
38 output = u_boot_console.run_command('echo $?')
40 u_boot_console.run_command('tpm clear TPM2_RH_PLATFORM')
41 u_boot_console.run_command('echo --- end of init ---')
44 def test_tpm2_init(u_boot_console): argument
[all …]
Dtest_gpt.py19 def __init__(self, u_boot_console): argument
31 persistent = u_boot_console.config.persistent_data_dir + '/' + filename
32 self.path = u_boot_console.config.result_dir + '/' + filename
34 with u_boot_utils.persistent_file_helper(u_boot_console.log, persistent):
36 u_boot_console.log.action('Disk image file ' + persistent +
39 u_boot_console.log.action('Generating ' + persistent)
45 u_boot_utils.run_and_log(u_boot_console, cmd)
49 u_boot_utils.run_and_log(u_boot_console, cmd)
51 u_boot_utils.run_and_log(u_boot_console, cmd)
53 u_boot_utils.run_and_log(u_boot_console, cmd)
[all …]
Dtest_efi_loader.py54 def test_efi_pre_commands(u_boot_console): argument
61 init_usb = u_boot_console.config.env.get('env__net_uses_usb', False)
63 u_boot_console.run_command('usb start')
65 init_pci = u_boot_console.config.env.get('env__net_uses_pci', False)
67 u_boot_console.run_command('pci enum')
70 def test_efi_dhcp(u_boot_console): argument
77 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False)
81 u_boot_console.run_command('setenv autoload no')
82 output = u_boot_console.run_command('dhcp')
89 def test_efi_setup_static(u_boot_console): argument
[all …]
Dtest_efi_selftest.py10 def test_efi_selftest(u_boot_console): argument
15 u_boot_console.run_command(cmd='setenv efi_selftest')
16 u_boot_console.run_command(cmd='bootefi selftest', wait_for_prompt=False)
17 m = u_boot_console.p.expect(['Summary: 0 failures', 'Press any key'])
20 u_boot_console.run_command(cmd='', wait_for_echo=False, wait_for_prompt=False);
21 m = u_boot_console.p.expect(['resetting', 'U-Boot'])
24 u_boot_console.restart_uboot();
28 def test_efi_selftest_device_tree(u_boot_console): argument
29 u_boot_console.run_command(cmd='setenv efi_selftest list')
30 output = u_boot_console.run_command('bootefi selftest')
[all …]
Dtest_net.py62 def test_net_pre_commands(u_boot_console): argument
69 init_usb = u_boot_console.config.env.get('env__net_uses_usb', False)
71 u_boot_console.run_command('usb start')
73 init_pci = u_boot_console.config.env.get('env__net_uses_pci', False)
75 u_boot_console.run_command('pci enum')
78 def test_net_dhcp(u_boot_console): argument
85 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False)
89 u_boot_console.run_command('setenv autoload no')
90 output = u_boot_console.run_command('dhcp')
97 def test_net_setup_static(u_boot_console): argument
[all …]
Dtest_sf.py47 def sf_prepare(u_boot_console, env__sf_config): argument
60 sf_params['ram_base'] = u_boot_utils.find_ram_base(u_boot_console)
72 output = u_boot_console.run_command(cmd)
104 def sf_read(u_boot_console, env__sf_config, sf_params): argument
125 u_boot_console.run_command(cmd)
126 crc_pattern = u_boot_utils.crc32(u_boot_console, addr, count)
131 response = u_boot_console.run_command(cmd)
133 crc_readback = u_boot_utils.crc32(u_boot_console, addr, count)
140 def sf_update(u_boot_console, env__sf_config, sf_params): argument
158 u_boot_console.run_command(cmd)
[all …]
Dtest_avb.py27 def test_avb_verify(u_boot_console): argument
33 response = u_boot_console.run_command('avb init %s' %str(mmc_dev))
35 response = u_boot_console.run_command('avb verify')
40 def test_avb_mmc_uuid(u_boot_console): argument
45 response = u_boot_console.run_command('avb init %s' % str(mmc_dev))
48 response = u_boot_console.run_command('mmc rescan; mmc dev %s' %
52 part_lines = u_boot_console.run_command('mmc part').splitlines()
68 avb_guid_resp = u_boot_console.run_command('avb get_uuid %s' % part)
73 def test_avb_read_rb(u_boot_console): argument
77 response = u_boot_console.run_command('avb init %s' % str(mmc_dev))
[all …]
Dtest_shell_basics.py10 def test_shell_execute(u_boot_console): argument
13 response = u_boot_console.run_command('echo hello')
16 def test_shell_semicolon_two(u_boot_console): argument
20 response = u_boot_console.run_command(cmd)
24 def test_shell_semicolon_three(u_boot_console): argument
30 response = u_boot_console.run_command(cmd)
32 u_boot_console.run_command('setenv list')
34 def test_shell_run(u_boot_console): argument
37 u_boot_console.run_command('setenv foo "setenv monty 1; setenv python 2"')
38 u_boot_console.run_command('run foo')
[all …]
Dtest_ums.py77 def test_ums(u_boot_console, env__usb_dev_port, env__block_devs): argument
99 u_boot_console.log.warning(
112 mount_point = u_boot_console.config.env['env__mount_points'][0]
119 test_f = u_boot_utils.PersistentRandomFile(u_boot_console, 'ums.bin',
136 u_boot_console.log.action(
139 u_boot_console.run_command(cmd, wait_for_prompt=False)
140 u_boot_console.wait_for(re.compile('UMS: LUN.*[\r\n]'))
142 u_boot_console.log.action('Reading raw data from UMS device')
156 u_boot_console.log.action('Mounting exported UMS device')
158 u_boot_utils.run_and_log(u_boot_console, cmd)
[all …]
Dtest_dfu.py116 def test_dfu(u_boot_console, env__usb_dev_port, env__dfu_config): argument
154 u_boot_console.log.action(
162 u_boot_console.run_command(cmd)
165 u_boot_console.run_command(cmd, wait_for_prompt=False)
166 u_boot_console.log.action('Waiting for DFU USB device to appear')
188 u_boot_console.log.action(
190 u_boot_console.ctrlc()
191 u_boot_console.log.action(
216 u_boot_utils.run_and_log(u_boot_console, cmd)
217 u_boot_console.wait_for('Ctrl+C to exit ...')
[all …]
Dtest_hush_if_test.py98 def exec_hush_if(u_boot_console, expr, result): argument
101 config = u_boot_console.config.buildconfig
105 u_boot_console.log.warning('CONFIG_SYS_MAXARGS too low; need ' +
110 response = u_boot_console.run_command(cmd)
113 def test_hush_if_test_setup(u_boot_console): argument
116 u_boot_console.run_command('setenv ut_var_nonexistent')
117 u_boot_console.run_command('setenv ut_var_exists 1')
121 def test_hush_if_test(u_boot_console, expr, result): argument
124 exec_hush_if(u_boot_console, expr, result)
126 def test_hush_if_test_teardown(u_boot_console): argument
[all …]
Dtest_md.py9 def test_md(u_boot_console): argument
13 ram_base = u_boot_utils.find_ram_base(u_boot_console)
17 u_boot_console.run_command('mw ' + addr + ' 0 10')
18 response = u_boot_console.run_command('md ' + addr + ' 10')
20 u_boot_console.run_command('mw ' + addr + ' ' + val)
21 response = u_boot_console.run_command('md ' + addr + ' 10')
25 def test_md_repeat(u_boot_console): argument
29 ram_base = u_boot_utils.find_ram_base(u_boot_console)
33 u_boot_console.run_command('md %s %x' % (addr_base, words))
34 response = u_boot_console.run_command('')
Dtest_env.py17 def __init__(self, u_boot_console): argument
27 self.u_boot_console = u_boot_console
41 if self.u_boot_console.config.buildconfig.get(
43 with self.u_boot_console.disable_check('main_signon'):
44 response = self.u_boot_console.run_command('printenv')
46 response = self.u_boot_console.run_command('printenv')
86 def state_test_env(u_boot_console): argument
91 ste = StateTestEnv(u_boot_console)
108 state_test_env.u_boot_console.run_command('setenv %s' % var)
127 bc = state_test_env.u_boot_console.config.buildconfig
[all …]
Dtest_mmc_rd.py61 def test_mmc_rd(u_boot_console, env__mmc_rd_config): argument
82 bcfg = u_boot_console.config.buildconfig
85 ram_base = u_boot_utils.find_ram_base(u_boot_console)
92 response = u_boot_console.run_command(cmd)
105 u_boot_console.run_command(cmd)
108 response = u_boot_console.run_command(cmd)
111 u_boot_console.log.warning(
116 response = u_boot_console.run_command(cmd)
125 response = u_boot_console.run_command(cmd)
128 u_boot_console.log.warning('CONFIG_CMD_CRC32 != y: Skipping check')
Dtest_sandbox_exit.py10 def test_reset(u_boot_console): argument
13 u_boot_console.run_command('reset', wait_for_prompt=False)
14 assert(u_boot_console.validate_exited())
17 def test_ctrl_c(u_boot_console): argument
20 u_boot_console.kill(signal.SIGINT)
21 assert(u_boot_console.validate_exited())
Dtest_sleep.py16 def test_sleep(u_boot_console): argument
20 sleep_skip = u_boot_console.config.env.get('env__sleep_accurate', True)
24 if u_boot_console.config.buildconfig.get('config_cmd_misc', 'n') != 'y':
29 u_boot_console.run_command('sleep %d' % sleep_time)
33 if not u_boot_console.config.gdbserver:
Dtest_ut.py8 def test_ut_dm_init(u_boot_console): argument
11 fn = u_boot_console.config.source_dir + '/testflash.bin'
18 fn = u_boot_console.config.source_dir + '/spi.bin'
24 def test_ut(u_boot_console, ut_subtest): argument
27 output = u_boot_console.run_command('ut ' + ut_subtest)
Dtest_000_version.py10 def test_version(u_boot_console): argument
16 with u_boot_console.disable_check('main_signon'):
17 response = u_boot_console.run_command('version')
19 u_boot_console.validate_version_string_in_text(response)
Dtest_log.py16 def test_log(u_boot_console): argument
43 output = u_boot_console.run_command('log test %d' % testnum)
89 cons = u_boot_console
102 def test_log_format(u_boot_console): argument
116 cons = u_boot_console
Dtest_unknown_cmd.py5 def test_unknown_command(u_boot_console): argument
11 with u_boot_console.disable_check('unknown_command'):
12 response = u_boot_console.run_command('non_existent_cmd')
Dtest_help.py5 def test_help(u_boot_console): argument
8 u_boot_console.run_command('help')
Dtest_ofplatdata.py9 def test_ofplatdata(u_boot_console): argument
11 cons = u_boot_console
Dtest_vboot.py37 def test_vboot(u_boot_console): argument
165 cons = u_boot_console
Dtest_fit.py114 def test_fit(u_boot_console): argument
418 cons = u_boot_console
/external/u-boot/test/py/
Du_boot_utils.py54 def __init__(self, u_boot_console, fn, size): argument
75 self.abs_fn = u_boot_console.config.persistent_data_dir + '/' + fn
78 u_boot_console.log.action('Persistent data file ' + self.abs_fn +
82 u_boot_console.log.action('Generating ' + self.abs_fn +
156 def run_and_log(u_boot_console, cmd, ignore_errors=False): argument
174 runner = u_boot_console.log.get_runner(cmd[0], sys.stdout)
179 def run_and_log_expect_exception(u_boot_console, cmd, retcode, msg): argument
192 runner = u_boot_console.log.get_runner(cmd[0], sys.stdout)
204 def find_ram_base(u_boot_console): argument
222 if u_boot_console.config.buildconfig.get('config_cmd_bdi', 'n') != 'y':
[all …]

12