| /OK3568_Linux_fs/u-boot/test/py/tests/ |
| H A D | test_efi_loader.py | 55 def test_efi_pre_commands(u_boot_console): argument 62 init_usb = u_boot_console.config.env.get('env__net_uses_usb', False) 64 u_boot_console.run_command('usb start') 66 init_pci = u_boot_console.config.env.get('env__net_uses_pci', False) 68 u_boot_console.run_command('pci enum') 71 def test_efi_dhcp(u_boot_console): argument 78 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False) 82 u_boot_console.run_command('setenv autoload no') 83 output = u_boot_console.run_command('dhcp') 90 def test_efi_setup_static(u_boot_console): argument [all …]
|
| H A D | test_gpt.py | 18 def test_gpt_guid(u_boot_console): argument 21 if u_boot_console.config.buildconfig.get('config_cmd_gpt', 'n') != 'y': 24 u_boot_console.run_command('host bind 0 testdisk.raw') 25 output = u_boot_console.run_command('gpt guid host 0') 29 def test_gpt_save_guid(u_boot_console): argument 32 if u_boot_console.config.buildconfig.get('config_cmd_gpt', 'n') != 'y': 34 u_boot_console.run_command('host bind 0 testdisk.raw') 35 output = u_boot_console.run_command('gpt guid host 0 newguid') 36 output = u_boot_console.run_command('printenv newguid') 40 def test_gpt_rename_partition(u_boot_console): argument [all …]
|
| H A D | test_net.py | 63 def test_net_pre_commands(u_boot_console): argument 70 init_usb = u_boot_console.config.env.get('env__net_uses_usb', False) 72 u_boot_console.run_command('usb start') 74 init_pci = u_boot_console.config.env.get('env__net_uses_pci', False) 76 u_boot_console.run_command('pci enum') 79 def test_net_dhcp(u_boot_console): argument 86 test_dhcp = u_boot_console.config.env.get('env__net_dhcp_server', False) 90 u_boot_console.run_command('setenv autoload no') 91 output = u_boot_console.run_command('dhcp') 98 def test_net_setup_static(u_boot_console): argument [all …]
|
| H A D | test_shell_basics.py | 11 def test_shell_execute(u_boot_console): argument 14 response = u_boot_console.run_command('echo hello') 17 def test_shell_semicolon_two(u_boot_console): argument 21 response = u_boot_console.run_command(cmd) 25 def test_shell_semicolon_three(u_boot_console): argument 31 response = u_boot_console.run_command(cmd) 33 u_boot_console.run_command('setenv list') 35 def test_shell_run(u_boot_console): argument 38 u_boot_console.run_command('setenv foo "setenv monty 1; setenv python 2"') 39 u_boot_console.run_command('run foo') [all …]
|
| H A 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 …]
|
| H A D | test_ums.py | 78 def test_ums(u_boot_console, env__usb_dev_port, env__block_devs): argument 100 u_boot_console.log.warning( 113 mount_point = u_boot_console.config.env['env__mount_points'][0] 120 test_f = u_boot_utils.PersistentRandomFile(u_boot_console, 'ums.bin', 137 u_boot_console.log.action( 140 u_boot_console.run_command(cmd, wait_for_prompt=False) 141 u_boot_console.wait_for(re.compile('UMS: LUN.*[\r\n]')) 143 u_boot_console.log.action('Reading raw data from UMS device') 157 u_boot_console.log.action('Mounting exported UMS device') 159 u_boot_utils.run_and_log(u_boot_console, cmd) [all …]
|
| H A D | test_hush_if_test.py | 99 def exec_hush_if(u_boot_console, expr, result): argument 102 config = u_boot_console.config.buildconfig 106 u_boot_console.log.warning('CONFIG_SYS_MAXARGS too low; need ' + 111 response = u_boot_console.run_command(cmd) 114 def test_hush_if_test_setup(u_boot_console): argument 117 u_boot_console.run_command('setenv ut_var_nonexistent') 118 u_boot_console.run_command('setenv ut_var_exists 1') 122 def test_hush_if_test(u_boot_console, expr, result): argument 125 exec_hush_if(u_boot_console, expr, result) 127 def test_hush_if_test_teardown(u_boot_console): argument [all …]
|
| H A D | test_md.py | 10 def test_md(u_boot_console): argument 14 ram_base = u_boot_utils.find_ram_base(u_boot_console) 18 u_boot_console.run_command('mw ' + addr + ' 0 10') 19 response = u_boot_console.run_command('md ' + addr + ' 10') 21 u_boot_console.run_command('mw ' + addr + ' ' + val) 22 response = u_boot_console.run_command('md ' + addr + ' 10') 26 def test_md_repeat(u_boot_console): argument 30 ram_base = u_boot_utils.find_ram_base(u_boot_console) 34 u_boot_console.run_command('md %s %x' % (addr_base, words)) 35 response = u_boot_console.run_command('')
|
| H A 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 …]
|
| H A D | test_sandbox_exit.py | 11 def test_reset(u_boot_console): argument 14 u_boot_console.run_command('reset', wait_for_prompt=False) 15 assert(u_boot_console.validate_exited()) 18 def test_ctrl_c(u_boot_console): argument 21 u_boot_console.kill(signal.SIGINT) 22 assert(u_boot_console.validate_exited())
|
| H A D | test_ut.py | 9 def test_ut_dm_init(u_boot_console): argument 12 fn = u_boot_console.config.source_dir + '/testflash.bin' 19 fn = u_boot_console.config.source_dir + '/spi.bin' 25 def test_ut(u_boot_console, ut_subtest): argument 28 output = u_boot_console.run_command('ut ' + ut_subtest)
|
| H A D | test_000_version.py | 11 def test_version(u_boot_console): argument 17 with u_boot_console.disable_check('main_signon'): 18 response = u_boot_console.run_command('version') 20 u_boot_console.validate_version_string_in_text(response)
|
| H A D | test_sleep.py | 8 def test_sleep(u_boot_console): argument 12 if u_boot_console.config.buildconfig.get('config_cmd_misc', 'n') != 'y': 17 u_boot_console.run_command('sleep %d' % sleep_time) 21 if not u_boot_console.config.gdbserver:
|
| H A D | test_unknown_cmd.py | 6 def test_unknown_command(u_boot_console): argument 12 with u_boot_console.disable_check('unknown_command'): 13 response = u_boot_console.run_command('non_existent_cmd')
|
| H A D | test_log.py | 17 def test_log(u_boot_console): argument 45 output = u_boot_console.run_command('log test %d' % testnum) 91 cons = u_boot_console
|
| H A D | test_help.py | 6 def test_help(u_boot_console): argument 9 u_boot_console.run_command('help')
|
| H A D | test_ofplatdata.py | 10 def test_ofplatdata(u_boot_console): argument 12 cons = u_boot_console
|
| H A D | test_vboot.py | 34 def test_vboot(u_boot_console): argument 162 cons = u_boot_console
|
| H A D | test_fit.py | 114 def test_fit(u_boot_console): argument 418 cons = u_boot_console
|
| /OK3568_Linux_fs/u-boot/test/py/ |
| H A 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 …]
|
| H A D | README.md | 338 A test fixture named `u_boot_console` should be used by each test function. This 342 The function `u_boot_console.run_command()` executes a shell command on the 349 `u_boot_console.disable_check()` to temporarily disable checking for specific 353 of the `u_boot_console.config` object, for example 354 `u_boot_console.config.ram_base`. 357 `u_boot_console.config.buildconfig`, with keys equal to the Kconfig variable
|
| H A D | conftest.py | 328 def u_boot_console(request): function
|