Home
last modified time | relevance | path

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

1234

/openbmc/u-boot/test/py/tests/
H A Dtest_tpm2.py32 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 ---')
47 u_boot_console.run_command('tpm2 init')
48 output = u_boot_console.run_command('echo $?')
[all …]
H A Dtest_bind.py29 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')
64 tree = u_boot_console.run_command('dm tree')
[all …]
H A Dtest_fpga.py90 output = u_boot_console.run_command('tftpboot %x %s' % (addr, bit))
103 output = u_boot_console.run_command('fpga broken 0')
110 output = u_boot_console.run_command('fpga')
134 output = u_boot_console.run_command('fpga info 0 0')
145 u_boot_console.run_command('setenv fpga')
146 output = u_boot_console.run_command('fpga info')
153 output = u_boot_console.run_command('fpga info %x' % (dev))
163 u_boot_console.run_command('setenv fpga %x' % (dev))
165 output = u_boot_console.run_command('fpga info')
167 u_boot_console.run_command('setenv fpga')
[all …]
H A Dtest_gpt.py78 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
79 output = u_boot_console.run_command('gpt read host 0')
84 output = u_boot_console.run_command('part list host 0')
94 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
95 output = u_boot_console.run_command('gpt verify host 0')
104 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
105 output = u_boot_console.run_command('gpt guid host 0')
116 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
117 output = u_boot_console.run_command('gpt guid host 0 newguid')
118 output = u_boot_console.run_command('printenv newguid')
[all …]
H A Dtest_efi_selftest.py17 u_boot_console.run_command(cmd='setenv efi_selftest')
18 u_boot_console.run_command(cmd='bootefi selftest ${fdtcontroladdr}', wait_for_prompt=False)
22 u_boot_console.run_command(cmd='', wait_for_echo=False, wait_for_prompt=False);
31 u_boot_console.run_command(cmd='setenv efi_selftest list')
32 output = u_boot_console.run_command('bootefi selftest')
34 u_boot_console.run_command(cmd='setenv efi_selftest device tree')
35 u_boot_console.run_command(cmd='setenv -f serial# Testing DT')
36 u_boot_console.run_command(cmd='bootefi selftest ${fdtcontroladdr}', wait_for_prompt=False)
44 u_boot_console.run_command(cmd='setenv efi_selftest list')
45 output = u_boot_console.run_command('bootefi selftest')
[all …]
H A Dtest_avb.py33 response = u_boot_console.run_command('avb init %s' %str(mmc_dev))
35 response = u_boot_console.run_command('avb verify')
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)
77 response = u_boot_console.run_command('avb init %s' % str(mmc_dev))
80 response = u_boot_console.run_command('avb read_rb 1')
89 response = u_boot_console.run_command('avb init %s' % str(mmc_dev))
92 response = u_boot_console.run_command('avb is_unlocked')
[all …]
H 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 …]
H A Dtest_efi_loader.py63 u_boot_console.run_command('usb start')
67 u_boot_console.run_command('pci enum')
81 u_boot_console.run_command('setenv autoload no')
82 output = u_boot_console.run_command('dhcp')
101 u_boot_console.run_command('setenv %s %s' % (var, val))
124 output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn))
138 output = u_boot_console.run_command('crc32 %x $filesize' % addr)
153 output = u_boot_console.run_command('bootefi %x' % addr)
167 output = u_boot_console.run_command('bootefi hello')
181 u_boot_console.run_command('bootefi %x' % addr, wait_for_prompt=False)
[all …]
H A Dtest_net.py71 u_boot_console.run_command('usb start')
75 u_boot_console.run_command('pci enum')
89 u_boot_console.run_command('setenv autoload no')
90 output = u_boot_console.run_command('dhcp')
109 u_boot_console.run_command('setenv %s %s' % (var, val))
126 output = u_boot_console.run_command('ping $serverip')
151 output = u_boot_console.run_command('tftpboot %s' % (fn))
153 output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn))
167 output = u_boot_console.run_command('crc32 $fileaddr $filesize')
193 output = u_boot_console.run_command('nfs %x %s' % (addr, fn))
[all …]
H 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')
35 output = u_boot_console.run_command('pinmux list')
43 output = u_boot_console.run_command('pinmux dev ' + pincontroller)
52 output = u_boot_console.run_command('pinmux dev ' + pincontroller)
61 output = u_boot_console.run_command('pinmux status')
H A Dtest_md.py17 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')
33 u_boot_console.run_command('md %s %x' % (addr_base, words))
34 response = u_boot_console.run_command('')
H A Dtest_env.py45 response = self.u_boot_console.run_command('printenv')
47 response = self.u_boot_console.run_command('printenv')
109 state_test_env.u_boot_console.run_command('setenv %s' % var)
136 state_test_env.u_boot_console.run_command(
150 response = state_test_env.u_boot_console.run_command('echo $%s' % var)
166 response = state_test_env.u_boot_console.run_command('printenv %s' % var)
189 response = c.run_command('printenv %s' % var)
254 response = c.run_command('env import -c %s -' % addr)
267 response = c.run_command('env import -c %s - foo1 foo2 foo4' % addr)
282 c.run_command('env export %s' % addr)
[all …]
H A Dtest_mmc_rd.py92 response = u_boot_console.run_command(cmd)
105 u_boot_console.run_command(cmd)
108 response = u_boot_console.run_command(cmd)
116 response = u_boot_console.run_command(cmd)
125 response = u_boot_console.run_command(cmd)
H A Dtest_sf.py72 output = u_boot_console.run_command(cmd)
125 u_boot_console.run_command(cmd)
131 response = u_boot_console.run_command(cmd)
158 u_boot_console.run_command(cmd)
162 u_boot_console.run_command(cmd)
199 output = u_boot_console.run_command(cmd)
203 u_boot_console.run_command(cmd)
H A Dtest_log.py43 output = u_boot_console.run_command('log test %d' % testnum)
117 output = cons.run_command('log format %s' % fmt)
119 output = cons.run_command('log rec arch notice file.c 123 func msg')
125 output = cons.run_command('log format')
H A Dtest_hush_if_test.py110 response = u_boot_console.run_command(cmd)
116 u_boot_console.run_command('setenv ut_var_nonexistent')
117 u_boot_console.run_command('setenv ut_var_exists 1')
129 u_boot_console.run_command('setenv ut_var_exists')
/openbmc/u-boot/test/
H A Dcommand_ut.c17 run_command("env default -f -a", 0); in do_ut_cmd()
28 run_command("setenv list", 0); in do_ut_cmd()
40 assert(run_command("false", 0) == 1); in do_ut_cmd()
41 assert(run_command("echo", 0) == 0); in do_ut_cmd()
46 run_command("setenv foo 'setenv black 1\nsetenv adder 2'", 0); in do_ut_cmd()
47 run_command("run foo", 0); in do_ut_cmd()
54 assert(run_command("", 0) == 0); in do_ut_cmd()
55 assert(run_command(" ", 0) == 0); in do_ut_cmd()
57 assert(run_command("'", 0) == 1); in do_ut_cmd()
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dtinfoil.py54 … return self.tinfoil.run_command('dataStoreConnectorVarHistCmd', self.dsindex, cmd, args, kwargs)
57 …ret = self.tinfoil.run_command('dataStoreConnectorVarHistCmdEmit', self.dsindex, var, oval, val, d…
74 … return self.tinfoil.run_command('dataStoreConnectorIncHistCmd', self.dsindex, cmd, args, kwargs)
98 ret = self.tinfoil.run_command('dataStoreConnectorCmd', self.dsindex, cmd, args, kwargs)
112 keys = self.tinfoil.run_command('dataStoreConnectorCmd', self.dsindex, "keys", [], {})
133 return self.tinfoil.run_command('getAllAppends', self.mc)
145 pkg_pn = defaultdict(list, self.tinfoil.run_command('getRecipes', self.mc) or [])
164 … attrvalue = defaultdict(list, self.tinfoil.run_command('getRecipeDepends', self.mc) or [])
166 …attrvalue = defaultdict(lambda: defaultdict(list), self.tinfoil.run_command('getRuntimeDepends', s…
168 …attrvalue = defaultdict(lambda: defaultdict(list), self.tinfoil.run_command('getRuntimeRecommends'…
[all …]
/openbmc/u-boot/test/py/tests/test_fs/
H A Dtest_mkdir.py28 output = u_boot_console.run_command(
45 output = u_boot_console.run_command(
98 output = u_boot_console.run_command(
101 output = u_boot_console.run_command('%sls host 0:0 dir6' % fs_type)
105 output = u_boot_console.run_command(
110 output = u_boot_console.run_command(
H A Dtest_unlink.py29 output = u_boot_console.run_command(
40 output = u_boot_console.run_command('host bind 0 %s' % fs_img)
48 output = u_boot_console.run_command(
74 output = u_boot_console.run_command(
/openbmc/openbmc/poky/meta/lib/oeqa/core/target/
H A Dserial.py92 output = conn.run_command(cmd, timeout)
93 status = conn.run_command("echo $?")
102 conn.run_command('cd "$HOME"')
131 conn.run_command(f'echo -n "" > {TEMP}')
134 conn.run_command(f'echo -n {line} >> {TEMP}')
137 is_directory = conn.run_command(f'[[ -d {remoteDst} ]]; echo $?')
142 conn.run_command(f'base32 -d {TEMP} > {remoteDst}')
143 conn.run_command(f'rm {TEMP}')
157 b32 = self.get_connection().run_command(f'base32 {remoteSrc}')
268 self.run_command('stty -echo')
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Ddevlink_port_split.py26 def run_command(cmd, should_fail=False): function
58 stdout, stderr = run_command(cmd)
82 stdout, stderr = run_command(cmd)
100 stdout, stderr = run_command(cmd)
116 stdout, stderr = run_command(cmd, should_fail=should_fail)
136 stdout, stderr = run_command(cmd)
215 stdout, stderr = run_command(cmd)
263 stdout, stderr = run_command(cmd)
271 stdout, stderr = run_command(cmd)
/openbmc/linux/tools/testing/ktest/
H A Dktest.pl575 sub run_command;
1453 run_command "$power_cycle";
1472 if (run_command $reboot) {
1475 run_command "$power_cycle";
1479 run_command "$power_cycle";
1494 run_command "$power_cycle";
1511 run_command $switch_to_good;
1594 run_command $post_test;
1845 run_command $post_test;
1851 sub run_command { subroutine
[all …]
H A Dconfig-bisect.pl159 sub run_command { subroutine
235 if (!run_command "$make olddefconfig") {
239 if (!run_command "$make oldnoconfig") {
242 run_command "yes '' | $make oldconfig" or
734 run_command "cp $good_start $good" or die "failed to copy to $good\n";
735 run_command "cp $bad_start $bad" or die "failed to copy to $bad\n";
744 run_command "cp $output_config $good" or die "failed to copy $config to $good\n";
746 run_command "cp $output_config $bad" or die "failed to copy $config to $bad\n";
760 run_command "rm $good";
761 run_command "rm $bad";
/openbmc/linux/tools/tracing/rtla/src/
H A Drtla.c46 int run_command(int argc, char **argv, int start_position) in run_command() function
69 retval = run_command(argc, argv, 0); in main()
82 retval = run_command(argc, argv, 1); in main()

1234