Home
last modified time | relevance | path

Searched refs:run_command (Results 1 – 25 of 122) sorted by relevance

12345

/u-boot/test/py/tests/
A Dtest_tpm2.py44 output = u_boot_console.run_command('tpm2 init')
66 u_boot_console.run_command('tpm2 init')
67 output = u_boot_console.run_command('echo $?')
77 output = u_boot_console.run_command('echo $?')
86 u_boot_console.run_command('tpm2 init')
87 output = u_boot_console.run_command('echo $?')
94 output = u_boot_console.run_command('echo $?')
98 output = u_boot_console.run_command('echo $?')
109 u_boot_console.run_command('tpm2 init')
121 output = u_boot_console.run_command('echo $?')
[all …]
A Dtest_source.py21 assert '2' in cons.run_command('source')
22 assert '1' in cons.run_command('source :')
23 assert '1' in cons.run_command('source :script-1')
24 assert '2' in cons.run_command('source :script-2')
26 assert '2' in cons.run_command('source \\#')
27 assert '1' in cons.run_command('source \\#conf-1')
28 assert '2' in cons.run_command('source \\#conf-2')
30 cons.run_command('fdt addr $loadaddr')
31 cons.run_command('fdt rm /configurations default')
32 assert '1' in cons.run_command('source')
[all …]
A Dtest_bootmenu.py15 u_boot_console.run_command('setenv bootmenu_default 1')
16 u_boot_console.run_command('setenv bootmenu_0 test 1=echo ok 1')
17 u_boot_console.run_command('setenv bootmenu_1 test 2=echo ok 2')
18 u_boot_console.run_command('setenv bootmenu_2 test 3=echo ok 3')
19 u_boot_console.run_command('bootmenu 2', wait_for_prompt=False)
25 u_boot_console.run_command('bootmenu 2', wait_for_prompt=False)
31 u_boot_console.run_command('bootmenu 2', wait_for_prompt=False)
43 u_boot_console.run_command('setenv bootmenu_default')
44 u_boot_console.run_command('setenv bootmenu_0')
45 u_boot_console.run_command('setenv bootmenu_1')
[all …]
A Dtest_bind.py32 tree = u_boot_console.run_command('dm tree')
41 tree = u_boot_console.run_command('dm tree')
47 tree = u_boot_console.run_command('dm tree')
55 tree = u_boot_console.run_command('dm tree')
63 tree = u_boot_console.run_command('dm tree')
72 tree = u_boot_console.run_command('dm tree')
80 tree = u_boot_console.run_command('dm tree')
137 response = u_boot_console.run_command(
159 response = u_boot_console.run_command(
173 response = u_boot_console.run_command(
[all …]
A Dtest_gpt.py85 output = u_boot_console.run_command('gpt read host 0')
90 output = u_boot_console.run_command('part list host 0')
101 output = u_boot_console.run_command('gpt verify host 0')
111 output = u_boot_console.run_command('gpt repair host 0')
121 output = u_boot_console.run_command('gpt guid host 0')
134 output = u_boot_console.run_command('printenv newguid')
157 output = u_boot_console.run_command('printenv newguid')
169 u_boot_console.run_command('gpt rename host 0 1 first')
170 output = u_boot_console.run_command('gpt read host 0')
173 output = u_boot_console.run_command('gpt read host 0')
[all …]
A Dtest_efi_selftest.py17 u_boot_console.run_command(cmd='setenv efi_selftest')
34 u_boot_console.run_command(cmd='setenv efi_selftest list')
35 output = u_boot_console.run_command('bootefi selftest')
54 u_boot_console.run_command(cmd='setenv efi_selftest list')
55 output = u_boot_console.run_command('bootefi selftest')
77 u_boot_console.run_command(cmd=chr(4), wait_for_echo=False,
83 u_boot_console.run_command(cmd=chr(8), wait_for_echo=False,
89 u_boot_console.run_command(cmd=chr(9), wait_for_echo=False,
190 u_boot_console.run_command(cmd='setenv efi_selftest list')
191 output = u_boot_console.run_command('bootefi selftest')
[all …]
A Dtest_fpga.py110 output = u_boot_console.run_command('fpga')
145 u_boot_console.run_command('setenv fpga')
167 u_boot_console.run_command('setenv fpga')
263 u_boot_console.run_command('imi %x' % (addr))
282 u_boot_console.run_command('imi %x' % (addr))
296 u_boot_console.run_command('imi %x' % (addr))
303 u_boot_console.run_command('setenv fpga')
313 u_boot_console.run_command('imi %x' % (addr))
338 u_boot_console.run_command('setenv fpga')
395 u_boot_console.run_command('setenv fpga')
[all …]
A Dtest_shell_basics.py13 response = u_boot_console.run_command('echo hello')
20 response = u_boot_console.run_command(cmd)
30 response = u_boot_console.run_command(cmd)
32 u_boot_console.run_command('setenv list')
37 u_boot_console.run_command('setenv foo \'setenv monty 1; setenv python 2\'')
38 u_boot_console.run_command('run foo')
39 response = u_boot_console.run_command('echo ${monty}')
41 response = u_boot_console.run_command('echo ${python}')
43 u_boot_console.run_command('setenv foo')
44 u_boot_console.run_command('setenv monty')
[all …]
A Dtest_env.py144 state_test_env.u_boot_console.run_command(
313 c.run_command('env export %s' % addr)
350 c.run_command('env export %s' % addr)
378 response = c.run_command('env info')
415 response = c.run_command('env info')
424 response = c.run_command('echo $?')
428 response = c.run_command('echo $?')
432 response = c.run_command('echo $?')
484 response = c.run_command('env save')
504 response = c.run_command('echo $?')
[all …]
A Dtest_gpio.py20 response = u_boot_console.run_command('gpio input 0; echo rc:$?')
34 response = u_boot_console.run_command('gpio clear 0; echo rc:$?')
36 response = u_boot_console.run_command('gpio set 0; echo rc:$?')
54 u_boot_console.run_command('gpio clear 0')
112 response = u_boot_console.run_command(cmd)
137 response = u_boot_console.run_command(cmd)
161 response = u_boot_console.run_command(cmd)
185 response = u_boot_console.run_command(cmd)
190 response = u_boot_console.run_command(cmd)
213 response = u_boot_console.run_command(cmd)
[all …]
A Dtest_extension.py18 …u_boot_console.run_command('host load hostfs - $fdt_addr_r %s' % (os.path.join(u_boot_console.conf…
19 u_boot_console.run_command('fdt addr $fdt_addr_r')
28 output = u_boot_console.run_command('extension list')
31 output = u_boot_console.run_command('extension scan')
34 output = u_boot_console.run_command('extension list')
42 output = u_boot_console.run_command('extension apply 0')
45 output = u_boot_console.run_command('fdt print')
48 output = u_boot_console.run_command('extension apply all')
51 output = u_boot_console.run_command('fdt print')
A Dtest_net.py82 u_boot_console.run_command('usb start')
86 u_boot_console.run_command('pci enum')
100 u_boot_console.run_command('setenv autoload no')
101 output = u_boot_console.run_command('dhcp')
119 u_boot_console.run_command('setenv autoload no')
120 output = u_boot_console.run_command('dhcp6')
139 u_boot_console.run_command('setenv %s %s' % (var, val))
156 output = u_boot_console.run_command('ping $serverip')
178 output = u_boot_console.run_command('ping6 ' + fake_host_ip)
205 output = u_boot_console.run_command('tftpboot %s' % (fn))
[all …]
A Dtest_efi_loader.py64 u_boot_console.run_command('usb start')
68 u_boot_console.run_command('pci enum')
85 u_boot_console.run_command('setenv autoload no')
86 output = u_boot_console.run_command('dhcp')
108 u_boot_console.run_command('setenv %s %s' % (var, val))
131 output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn))
145 output = u_boot_console.run_command('crc32 %x $filesize' % addr)
161 output = u_boot_console.run_command('bootefi %x' % addr)
175 output = u_boot_console.run_command('bootefi hello')
190 u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False)
[all …]
A Dtest_button.py10 response = u_boot_console.run_command('button list; echo rc:$?')
25 u_boot_console.run_command('gpio set a3; gpio input a3');
26 response = u_boot_console.run_command('button button1; echo rc:$?')
30 u_boot_console.run_command('gpio clear a3; gpio input a3');
31 response = u_boot_console.run_command('button button1; echo rc:$?')
35 response = u_boot_console.run_command('button nonexistent-button; echo rc:$?')
A Dtest_dm.py9 response = u_boot_console.run_command('dm tree')
15 response = u_boot_console.run_command('dm compat')
29 response = u_boot_console.run_command('dm tree -s')
60 response = u_boot_console.run_command('dm compat')
62 response = u_boot_console.run_command('dm drivers')
69 response = u_boot_console.run_command('dm static')
71 response = u_boot_console.run_command('dm drivers')
77 response = u_boot_console.run_command("dm uclass")
81 response = u_boot_console.run_command("dm devres")
A Dtest_pinmux.py10 output = u_boot_console.run_command('pinmux')
17 output = u_boot_console.run_command('pinmux status')
24 output = u_boot_console.run_command('pinmux status -a')
45 output = u_boot_console.run_command('pinmux list')
53 output = u_boot_console.run_command('pinmux dev ' + pincontroller)
62 output = u_boot_console.run_command('pinmux dev ' + pincontroller)
71 u_boot_console.run_command('pinmux dev pinctrl')
72 output = u_boot_console.run_command('pinmux status')
/u-boot/test/cmd/
A Dsetexpr.c31 ut_assertok(run_command("setexpr.b fred 0", 0)); in setexpr_test_int()
33 ut_assertok(run_command("setexpr.b fred *0", 0)); in setexpr_test_int()
38 ut_assertok(run_command("setexpr.w fred 0", 0)); in setexpr_test_int()
40 ut_assertok(run_command("setexpr.w fred *0", 0)); in setexpr_test_int()
45 ut_assertok(run_command("setexpr.l fred 0", 0)); in setexpr_test_int()
47 ut_assertok(run_command("setexpr.l fred *0", 0)); in setexpr_test_int()
52 ut_assertok(run_command("setexpr.q fred 0", 0)); in setexpr_test_int()
54 ut_assertok(run_command("setexpr.q fred *0", 0)); in setexpr_test_int()
58 ut_assertok(run_command("setexpr fred 0", 0)); in setexpr_test_int()
60 ut_assertok(run_command("setexpr fred *0", 0)); in setexpr_test_int()
[all …]
A Dpwm.c29 ut_asserteq(1, run_command("pwm invert 0 0 1", 0)); in dm_test_pwm_cmd()
33 ut_asserteq(1, run_command("pwm invert 0 0 0", 0)); in dm_test_pwm_cmd()
38 ut_assertok(run_command("pwm config 0 0 10 50", 0)); in dm_test_pwm_cmd()
42 ut_assertok(run_command("pwm enable 0 0", 0)); in dm_test_pwm_cmd()
45 ut_assertok(run_command("pwm disable 0 0", 0)); in dm_test_pwm_cmd()
55 ut_assertok(run_command("pwm invert 1 0 1", 0)); in dm_test_pwm_cmd()
58 ut_assertok(run_command("pwm invert 1 0 0", 0)); in dm_test_pwm_cmd()
62 ut_assertok(run_command("pwm config 1 0 10 50", 0)); in dm_test_pwm_cmd()
66 ut_assertok(run_command("pwm enable 1 0", 0)); in dm_test_pwm_cmd()
69 ut_assertok(run_command("pwm disable 1 0", 0)); in dm_test_pwm_cmd()
/u-boot/test/py/tests/test_efi_bootmgr/
A Dtest_efi_bootmgr.py23 u_boot_console.run_command(cmd = 'efidebug boot add ' \
26 u_boot_console.run_command(cmd = 'efidebug boot dump')
27 u_boot_console.run_command(cmd = 'efidebug boot order 0001')
28 u_boot_console.run_command(cmd = 'bootefi bootmgr')
31 u_boot_console.run_command(cmd = 'exit', wait_for_echo=False)
33 u_boot_console.run_command(cmd = 'efidebug boot add ' \
36 u_boot_console.run_command(cmd = 'efidebug boot dump')
37 u_boot_console.run_command(cmd = 'efidebug boot order 0002')
38 u_boot_console.run_command(cmd = 'bootefi bootmgr')
43 u_boot_console.run_command(cmd = 'efidebug boot rm 0001')
[all …]
/u-boot/test/py/tests/test_android/
A Dtest_abootimg.py199 u_boot_console.run_command('abootimg get ver v')
221 u_boot_console.run_command('fdt addr $dtb1_start')
245 response = cons.run_command('abootimg get ver')
247 cons.run_command('abootimg get ver v')
248 response = cons.run_command('env print v')
256 cons.run_command('abootimg get dtb_load_addr a')
257 response = cons.run_command('env print a')
262 response = cons.run_command('env print dtb2_start')
266 cons.run_command('fdt addr $dtb2_start')
267 cons.run_command('fdt get value v / model')
[all …]
A Dtest_avb.py34 response = u_boot_console.run_command('avb init %s' %str(mmc_dev))
36 response = u_boot_console.run_command('avb verify')
48 response = u_boot_console.run_command('avb init %s' % str(mmc_dev))
51 response = u_boot_console.run_command('mmc rescan; mmc dev %s' %
55 part_lines = u_boot_console.run_command('mmc part').splitlines()
80 response = u_boot_console.run_command('avb init %s' % str(mmc_dev))
83 response = u_boot_console.run_command('avb read_rb 1')
95 response = u_boot_console.run_command('avb is_unlocked')
106 response = u_boot_console.run_command('mmc rescan; mmc dev %s 0' %
121 response = u_boot_console.run_command('cmp 0x%x 0x%x 40' %
[all …]
/u-boot/test/py/tests/test_eficonfig/
A Dtest_eficonfig.py15 u_boot_console.run_command(cmd=user_str, wait_for_prompt=False,
17 u_boot_console.run_command(cmd='\x0d', wait_for_prompt=False,
78 u_boot_console.run_command('eficonfig', wait_for_prompt=False)
106 u_boot_console.run_command(cmd=' ', wait_for_prompt=False,
155 u_boot_console.run_command(cmd = 'bootefi bootmgr')
204 u_boot_console.run_command(cmd='+', wait_for_prompt=False,
215 u_boot_console.run_command(cmd = 'bootefi bootmgr')
231 u_boot_console.run_command(cmd='-', wait_for_prompt=False,
241 u_boot_console.run_command(cmd = 'bootefi bootmgr')
317 u_boot_console.run_command(cmd = 'bootefi bootmgr')
[all …]
/u-boot/test/
A Dcommand_ut.c25 run_command("env default -f -a", 0); in do_ut_cmd()
36 run_command("setenv list", 0); in do_ut_cmd()
48 assert(run_command("false", 0) == 1); in do_ut_cmd()
49 assert(run_command("echo", 0) == 0); in do_ut_cmd()
54 run_command("setenv foo 'setenv black 1\nsetenv adder 2'", 0); in do_ut_cmd()
55 run_command("run foo", 0); in do_ut_cmd()
62 assert(run_command("", 0) == 0); in do_ut_cmd()
63 assert(run_command(" ", 0) == 0); in do_ut_cmd()
65 assert(run_command("'", 0) == 1); in do_ut_cmd()
87 run_command("run foo", 0); in do_ut_cmd()
[all …]
/u-boot/test/boot/
A Dbootmeth.c21 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_list()
42 ut_assertok(run_command("bootmeth order extlinux", 0)); in bootmeth_cmd_order()
48 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order()
57 ut_assertok(run_command("bootmeth list -a", 0)); in bootmeth_cmd_order()
70 ut_assertok(run_command("bootmeth order \"efi extlinux\"", 0)); in bootmeth_cmd_order()
72 ut_assertok(run_command("bootmeth list -a", 0)); in bootmeth_cmd_order()
85 ut_assertok(run_command("bootmeth order", 0)); in bootmeth_cmd_order()
88 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order()
95 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order()
119 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order_glob()
[all …]
/u-boot/test/py/tests/test_fs/test_squashfs/
A Dtest_sqfs_ls.py23 no_slash = u_boot_console.run_command('sqfsls host 0')
24 slash = u_boot_console.run_command('sqfsls host 0 /')
30 output = u_boot_console.run_command('sqfsls host 0')
43 assert u_boot_console.run_command('sqfsls host 0 empty-dir') == 'Empty directory.'
55 output = u_boot_console.run_command('sqfsls host 0 subdir')
68 output = u_boot_console.run_command('sqfsls host 0 sym')
69 output_subdir = u_boot_console.run_command('sqfsls host 0 subdir')
86 out_non_existent = u_boot_console.run_command('sqfsls host 0 fff')
87 out_not_dir = u_boot_console.run_command('sqfsls host 0 f1000')
130 u_boot_console.run_command('host bind 0 {}'.format(image_path))

Completed in 749 milliseconds

12345