/external/u-boot/test/py/tests/ |
D | test_tpm2.py | 25 def force_init(u_boot_console, force=False): argument 32 output = u_boot_console.run_command('tpm2 init') 34 u_boot_console.run_command('echo --- start of init ---') 35 u_boot_console.run_command('tpm2 startup TPM2_SU_CLEAR') 36 u_boot_console.run_command('tpm2 self_test full') 37 u_boot_console.run_command('tpm2 clear TPM2_RH_LOCKOUT') 38 output = u_boot_console.run_command('echo $?') 40 u_boot_console.run_command('tpm2 clear TPM2_RH_PLATFORM') 41 u_boot_console.run_command('echo --- end of init ---') 44 def test_tpm2_init(u_boot_console): argument [all …]
|
D | test_efi_selftest.py | 10 def test_efi_selftest(u_boot_console): argument 17 u_boot_console.run_command(cmd='setenv efi_selftest') 18 u_boot_console.run_command(cmd='bootefi selftest', wait_for_prompt=False) 19 m = u_boot_console.p.expect(['Summary: 0 failures', 'Press any key']) 22 u_boot_console.restart_uboot(); 27 def test_efi_selftest_device_tree(u_boot_console): argument 28 u_boot_console.run_command(cmd='setenv efi_selftest list') 29 output = u_boot_console.run_command('bootefi selftest') 31 u_boot_console.run_command(cmd='setenv efi_selftest device tree') 32 u_boot_console.run_command(cmd='setenv -f serial# Testing DT') [all …]
|
D | test_fpga.py | 66 def check_dev(u_boot_console): argument 67 f = u_boot_console.config.env.get('env__fpga_under_test', None) 77 def load_file_from_var(u_boot_console, name): argument 78 dev, f = check_dev(u_boot_console) 84 test_net.test_net_dhcp(u_boot_console) 85 test_net.test_net_setup_static(u_boot_console) 90 output = u_boot_console.run_command('tftpboot %x %s' % (addr, bit)) 100 def test_fpga_fail(u_boot_console): argument 103 output = u_boot_console.run_command('fpga broken 0') 108 def test_fpga_help(u_boot_console): argument [all …]
|
D | test_gpt.py | 19 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) 46 u_boot_utils.run_and_log(u_boot_console, cmd) 51 u_boot_utils.run_and_log(u_boot_console, cmd) 54 u_boot_utils.run_and_log(u_boot_console, cmd) 56 u_boot_utils.run_and_log(u_boot_console, cmd) [all …]
|
D | test_efi_loader.py | 54 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 …]
|
D | test_bind.py | 26 def test_bind_unbind_with_node(u_boot_console): argument 29 response = u_boot_console.run_command('bind /bind-test generic_simple_bus') 31 tree = u_boot_console.run_command('dm tree') 37 response = u_boot_console.run_command('unbind /bind-test/bind-test-child1') 39 tree = u_boot_console.run_command('dm tree') 45 response = u_boot_console.run_command('bind /bind-test/bind-test-child1 phy_sandbox') 47 tree = u_boot_console.run_command('dm tree') 53 response = u_boot_console.run_command('unbind /bind-test/bind-test-child2') 55 tree = u_boot_console.run_command('dm tree') 62 response = u_boot_console.run_command('bind /bind-test/bind-test-child2 generic_simple_bus') [all …]
|
D | test_net.py | 62 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 …]
|
D | test_sf.py | 47 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 …]
|
D | test_shell_basics.py | 10 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 …]
|
D | test_ums.py | 77 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 …]
|
D | test_mmc_rd.py | 108 def mmc_dev(u_boot_console, is_emmc, devid, partid): argument 125 response = u_boot_console.run_command(cmd) 135 def test_mmc_dev(u_boot_console, env__mmc_dev_config): argument 153 mmc_dev(u_boot_console, is_emmc, devid, partid) 156 def test_mmc_rescan(u_boot_console, env__mmc_dev_config): argument 174 mmc_dev(u_boot_console, is_emmc, devid, partid) 178 response = u_boot_console.run_command(cmd) 182 def test_mmc_info(u_boot_console, env__mmc_dev_config): argument 204 mmc_dev(u_boot_console, is_emmc, devid, partid) 208 response = u_boot_console.run_command(cmd) [all …]
|
D | test_dfu.py | 116 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 …]
|
D | test_pinmux.py | 7 def test_pinmux_usage_1(u_boot_console): argument 10 output = u_boot_console.run_command('pinmux') 14 def test_pinmux_usage_2(u_boot_console): argument 17 output = u_boot_console.run_command('pinmux status') 22 def test_pinmux_status_all(u_boot_console): argument 24 output = u_boot_console.run_command('pinmux status -a') 33 def test_pinmux_list(u_boot_console): argument 35 output = u_boot_console.run_command('pinmux list') 39 def test_pinmux_dev_bad(u_boot_console): argument 43 output = u_boot_console.run_command('pinmux dev ' + pincontroller) [all …]
|
D | test_hush_if_test.py | 98 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 …]
|
D | test_env.py | 18 def __init__(self, u_boot_console): argument 28 self.u_boot_console = u_boot_console 42 if self.u_boot_console.config.buildconfig.get( 44 with self.u_boot_console.disable_check('main_signon'): 45 response = self.u_boot_console.run_command('printenv') 47 response = self.u_boot_console.run_command('printenv') 87 def state_test_env(u_boot_console): argument 92 ste = StateTestEnv(u_boot_console) 109 state_test_env.u_boot_console.run_command('setenv %s' % var) 128 bc = state_test_env.u_boot_console.config.buildconfig [all …]
|
D | test_md.py | 9 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('')
|
D | test_sandbox_exit.py | 10 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())
|
/external/u-boot/test/py/tests/test_fs/ |
D | test_basic.py | 19 def test_fs1(self, u_boot_console, fs_obj_basic): argument 24 with u_boot_console.log.section('Test Case 1a - ls'): 26 output = u_boot_console.run_command_list([ 32 with u_boot_console.log.section('Test Case 1b - ls (invalid dir)'): 34 output = u_boot_console.run_command( 41 def test_fs2(self, u_boot_console, fs_obj_basic): argument 46 with u_boot_console.log.section('Test Case 2a - size (small)'): 49 output = u_boot_console.run_command_list([ 56 with u_boot_console.log.section('Test Case 2b - size (/../<file>)'): 58 output = u_boot_console.run_command_list([ [all …]
|
D | test_ext.py | 19 def test_fs_ext1(self, u_boot_console, fs_obj_ext): argument 24 with u_boot_console.log.section('Test Case 1 - write with abs path'): 26 output = u_boot_console.run_command_list([ 34 output = u_boot_console.run_command_list([ 42 def test_fs_ext2(self, u_boot_console, fs_obj_ext): argument 47 with u_boot_console.log.section('Test Case 2 - write with rel path'): 49 output = u_boot_console.run_command_list([ 57 output = u_boot_console.run_command_list([ 65 def test_fs_ext3(self, u_boot_console, fs_obj_ext): argument 70 with u_boot_console.log.section('Test Case 3 - write with invalid path'): [all …]
|
D | test_unlink.py | 18 def test_unlink1(self, u_boot_console, fs_obj_unlink): argument 23 with u_boot_console.log.section('Test Case 1 - unlink (file)'): 24 output = u_boot_console.run_command_list([ 30 output = u_boot_console.run_command( 36 def test_unlink2(self, u_boot_console, fs_obj_unlink): argument 41 with u_boot_console.log.section('Test Case 2 - unlink (many)'): 42 output = u_boot_console.run_command('host bind 0 %s' % fs_img) 45 output = u_boot_console.run_command_list([ 50 output = u_boot_console.run_command( 55 def test_unlink3(self, u_boot_console, fs_obj_unlink): argument [all …]
|
D | test_mkdir.py | 17 def test_mkdir1(self, u_boot_console, fs_obj_mkdir): argument 22 with u_boot_console.log.section('Test Case 1 - mkdir'): 23 output = u_boot_console.run_command_list([ 29 output = u_boot_console.run_command( 36 def test_mkdir2(self, u_boot_console, fs_obj_mkdir): argument 41 with u_boot_console.log.section('Test Case 2 - mkdir (sub-sub directory)'): 42 output = u_boot_console.run_command_list([ 48 output = u_boot_console.run_command( 54 def test_mkdir3(self, u_boot_console, fs_obj_mkdir): argument 60 with u_boot_console.log.section('Test Case 3 - mkdir (non-existing path)'): [all …]
|
D | test_symlink.py | 21 def test_symlink1(self, u_boot_console, fs_obj_symlink): argument 26 with u_boot_console.log.section('Test Case 1 - create link and read'): 27 output = u_boot_console.run_command_list([ 34 output = u_boot_console.run_command_list([ 40 output = u_boot_console.run_command_list([ 46 def test_symlink2(self, u_boot_console, fs_obj_symlink): argument 51 with u_boot_console.log.section('Test Case 2 - create chained links'): 52 output = u_boot_console.run_command_list([ 63 output = u_boot_console.run_command_list([ 69 output = u_boot_console.run_command_list([ [all …]
|
/external/u-boot/test/py/tests/test_android/ |
D | test_avb.py | 28 def test_avb_verify(u_boot_console): argument 34 response = u_boot_console.run_command('avb init %s' %str(mmc_dev)) 36 response = u_boot_console.run_command('avb verify') 42 def test_avb_mmc_uuid(u_boot_console): argument 47 response = u_boot_console.run_command('avb init %s' % str(mmc_dev)) 50 response = u_boot_console.run_command('mmc rescan; mmc dev %s' % 54 part_lines = u_boot_console.run_command('mmc part').splitlines() 70 avb_guid_resp = u_boot_console.run_command('avb get_uuid %s' % part) 75 def test_avb_read_rb(u_boot_console): argument 79 response = u_boot_console.run_command('avb init %s' % str(mmc_dev)) [all …]
|
D | test_ab.py | 13 def __init__(self, u_boot_console): argument 25 persistent = u_boot_console.config.persistent_data_dir + '/' + filename 26 self.path = u_boot_console.config.result_dir + '/' + filename 28 with u_boot_utils.persistent_file_helper(u_boot_console.log, persistent): 30 u_boot_console.log.action('Disk image file ' + persistent + 33 u_boot_console.log.action('Generating ' + persistent) 38 u_boot_utils.run_and_log(u_boot_console, cmd) 42 u_boot_utils.run_and_log(u_boot_console, cmd) 44 u_boot_utils.run_and_log(u_boot_console, cmd) 47 u_boot_utils.run_and_log(u_boot_console, cmd) [all …]
|
/external/u-boot/test/py/ |
D | u_boot_utils.py | 54 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 …]
|