| /test/hush/ |
| A D | list.c | 16 ut_asserteq(1, run_command("false; false", 0)); in hush_test_semicolon() 17 ut_assertok(run_command("false; true", 0)); in hush_test_semicolon() 18 ut_assertok(run_command("true; true", 0)); in hush_test_semicolon() 19 ut_asserteq(1, run_command("true; false", 0)); in hush_test_semicolon() 28 ut_asserteq(1, run_command("false && false", 0)); in hush_test_and() 29 ut_asserteq(1, run_command("false && true", 0)); in hush_test_and() 30 ut_assertok(run_command("true && true", 0)); in hush_test_and() 31 ut_asserteq(1, run_command("true && false", 0)); in hush_test_and() 41 ut_assertok(run_command("false || true", 0)); in hush_test_or() 42 ut_assertok(run_command("true || true", 0)); in hush_test_or() [all …]
|
| A D | dollar.c | 18 ut_assertok(run_command("echo $dollar_foo", 0)); in hush_test_simple_dollar() 26 ut_assertok(run_command("dollar_foo=bar", 0)); in hush_test_simple_dollar() 28 ut_assertok(run_command("echo $dollar_foo", 0)); in hush_test_simple_dollar() 110 ut_assertok(run_command("dollar_foo=", 0)); in hush_test_simple_dollar() 142 ut_assertok(run_command("env_foo=", 0)); in hush_test_env_dollar() 155 ut_assertok(run_command("$dollar_bar", 0)); in hush_test_command_dollar() 165 ut_assertok(run_command("$dollar_bar", 0)); in hush_test_command_dollar() 171 ut_assertok(run_command("$dollar_bar", 0)); in hush_test_command_dollar() 177 ut_assertok(run_command("$dollar_bar", 0)); in hush_test_command_dollar() 194 ut_assertok(run_command("$dollar_bar", 0)); in hush_test_command_dollar() [all …]
|
| A D | if.c | 30 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_base() 33 ut_asserteq(1, run_command(if_formatted, 0)); in hush_test_if_base() 44 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 50 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 56 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 62 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 68 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 74 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 80 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() 89 ut_assertok(run_command(if_formatted, 0)); in hush_test_if_basic_operators() [all …]
|
| /test/env/ |
| A D | cmd_ut_env.c | 12 ut_assertok(run_command("setenv non_default_var1 1", 0)); in env_test_env_cmd() 15 ut_assertok(run_command("setenv non_default_var2 2", 0)); in env_test_env_cmd() 18 ut_assertok(run_command("env print non_default_var1", 0)); in env_test_env_cmd() 22 ut_assertok(run_command("env default non_default_var1", 0)); in env_test_env_cmd() 26 ut_asserteq(1, run_command("env exists non_default_var1", 0)); in env_test_env_cmd() 29 ut_asserteq(0, run_command("env exists non_default_var2", 0)); in env_test_env_cmd() 32 ut_assertok(run_command("setenv non_default_var1 3", 0)); in env_test_env_cmd() 38 ut_asserteq(0, run_command("env exists non_default_var1", 0)); in env_test_env_cmd() 41 ut_asserteq(0, run_command("env exists non_default_var2", 0)); in env_test_env_cmd() 44 ut_assertok(run_command("env default -k -a -f", 0)); in env_test_env_cmd() [all …]
|
| /test/cmd/ |
| A D | setexpr.c | 30 ut_assertok(run_command("setexpr.b fred 0", 0)); in setexpr_test_int() 32 ut_assertok(run_command("setexpr.b fred *0", 0)); in setexpr_test_int() 37 ut_assertok(run_command("setexpr.w fred 0", 0)); in setexpr_test_int() 39 ut_assertok(run_command("setexpr.w fred *0", 0)); in setexpr_test_int() 44 ut_assertok(run_command("setexpr.l fred 0", 0)); in setexpr_test_int() 46 ut_assertok(run_command("setexpr.l fred *0", 0)); in setexpr_test_int() 51 ut_assertok(run_command("setexpr.q fred 0", 0)); in setexpr_test_int() 53 ut_assertok(run_command("setexpr.q fred *0", 0)); in setexpr_test_int() 57 ut_assertok(run_command("setexpr fred 0", 0)); in setexpr_test_int() 59 ut_assertok(run_command("setexpr fred *0", 0)); in setexpr_test_int() [all …]
|
| A D | pwm.c | 27 ut_asserteq(1, run_command("pwm invert 0 0 1", 0)); in dm_test_pwm_cmd() 31 ut_asserteq(1, run_command("pwm invert 0 0 0", 0)); in dm_test_pwm_cmd() 36 ut_assertok(run_command("pwm config 0 0 10 50", 0)); in dm_test_pwm_cmd() 40 ut_assertok(run_command("pwm enable 0 0", 0)); in dm_test_pwm_cmd() 43 ut_assertok(run_command("pwm disable 0 0", 0)); in dm_test_pwm_cmd() 51 ut_assertok(run_command("pwm invert 1 0 1", 0)); in dm_test_pwm_cmd() 54 ut_assertok(run_command("pwm invert 1 0 0", 0)); in dm_test_pwm_cmd() 58 ut_assertok(run_command("pwm config 1 0 10 50", 0)); in dm_test_pwm_cmd() 62 ut_assertok(run_command("pwm enable 1 0", 0)); in dm_test_pwm_cmd() 65 ut_assertok(run_command("pwm disable 1 0", 0)); in dm_test_pwm_cmd()
|
| A D | command.c | 25 run_command("env default -f -a", 0); in command_test() 36 run_command("setenv list", 0); in command_test() 48 ut_assertok(run_command("echo", 0)); in command_test() 52 ut_asserteq(1, run_command("false", 0)); in command_test() 54 run_command("setenv foo 'setenv black 1\nsetenv adder 2'", 0); in command_test() 55 run_command("run foo", 0); in command_test() 60 ut_assertok(run_command("", 0)); in command_test() 61 ut_assertok(run_command(" ", 0)); in command_test() 64 ut_asserteq(1, run_command("'", 0)); in command_test() 93 ut_assertok(run_command("run foo", 0)); in command_test() [all …]
|
| A D | hash.c | 18 ut_assert(run_command("hash md5 $loadaddr 0", 0)); in dm_test_cmd_hash_md5() 23 ut_assertok(run_command("hash md5 $loadaddr 0", 0)); in dm_test_cmd_hash_md5() 31 ut_assertok(run_command("hash md5 $loadaddr 0 foo; echo $foo", 0)); in dm_test_cmd_hash_md5() 41 ut_assert(run_command("hash -v sha256 $loadaddr 0 foo", 0)); in dm_test_cmd_hash_md5() 48 ut_assertok(run_command("hash -v md5 $loadaddr 0 foo", 0)); in dm_test_cmd_hash_md5() 52 ut_assert(run_command("hash -v md5 $loadaddr 0 foo", 0)); in dm_test_cmd_hash_md5() 64 ut_assert(run_command("hash sha256 $loadaddr 0", 0)); in dm_test_cmd_hash_sha256() 69 ut_assertok(run_command("hash sha256 $loadaddr 0", 0)); in dm_test_cmd_hash_sha256() 87 ut_assert(run_command("hash -v sha256 $loadaddr 0 foo", 0)); in dm_test_cmd_hash_sha256() 94 ut_assertok(run_command("hash -v sha256 $loadaddr 0 foo", 0)); in dm_test_cmd_hash_sha256() [all …]
|
| /test/py/tests/ |
| A D | test_source.py | 20 assert '2' in ubman.run_command('source') 21 assert '1' in ubman.run_command('source :') 22 assert '1' in ubman.run_command('source :script-1') 23 assert '2' in ubman.run_command('source :script-2') 25 assert '2' in ubman.run_command('source \\#') 26 assert '1' in ubman.run_command('source \\#conf-1') 27 assert '2' in ubman.run_command('source \\#conf-2') 29 ubman.run_command('fdt addr $loadaddr') 30 ubman.run_command('fdt rm /configurations default') 31 assert '1' in ubman.run_command('source') [all …]
|
| A D | test_tpm2.py | 69 ubman.run_command('tpm2 autostart') 70 output = ubman.run_command('echo $?') 85 output = ubman.run_command('echo $?') 104 output = ubman.run_command('echo $?') 108 output = ubman.run_command('echo $?') 123 output = ubman.run_command('echo $?') 127 output = ubman.run_command('echo $?') 148 output = ubman.run_command('echo $?') 170 output = ubman.run_command('echo $?') 175 output = ubman.run_command('echo $?') [all …]
|
| A D | test_bootmenu.py | 15 ubman.run_command('setenv bootmenu_default 1') 16 ubman.run_command('setenv bootmenu_0 test 1=echo ok 1') 17 ubman.run_command('setenv bootmenu_1 test 2=echo ok 2') 18 ubman.run_command('setenv bootmenu_2 test 3=echo ok 3') 19 ubman.run_command('bootmenu 2', wait_for_prompt=False) 25 ubman.run_command('bootmenu 2', wait_for_prompt=False) 31 ubman.run_command('bootmenu 2', wait_for_prompt=False) 43 ubman.run_command('setenv bootmenu_default') 44 ubman.run_command('setenv bootmenu_0') 45 ubman.run_command('setenv bootmenu_1') [all …]
|
| A D | test_gpt.py | 113 output = ubman.run_command('gpt read host 0') 118 output = ubman.run_command('part list host 0') 133 output = ubman.run_command('echo ${gpt_parts}') 164 output = ubman.run_command('gpt verify host 0') 174 output = ubman.run_command('gpt repair host 0') 184 output = ubman.run_command('gpt guid host 0') 229 output = ubman.run_command('printenv newguid') 252 output = ubman.run_command('printenv newguid') 265 output = ubman.run_command('gpt read host 0') 268 output = ubman.run_command('gpt read host 0') [all …]
|
| A D | test_bind.py | 38 tree = ubman.run_command('dm tree') 47 tree = ubman.run_command('dm tree') 53 tree = ubman.run_command('dm tree') 61 tree = ubman.run_command('dm tree') 69 tree = ubman.run_command('dm tree') 78 tree = ubman.run_command('dm tree') 86 tree = ubman.run_command('dm tree') 149 response = ubman.run_command( 171 response = ubman.run_command( 185 response = ubman.run_command( [all …]
|
| A D | test_shell_basics.py | 13 response = ubman.run_command('echo hello') 20 response = ubman.run_command(cmd) 30 response = ubman.run_command(cmd) 32 ubman.run_command('setenv list') 37 ubman.run_command('setenv foo \'setenv monty 1; setenv python 2\'') 38 ubman.run_command('run foo') 39 response = ubman.run_command('echo ${monty}') 41 response = ubman.run_command('echo ${python}') 43 ubman.run_command('setenv foo') 44 ubman.run_command('setenv monty') [all …]
|
| A D | test_gpio.py | 54 ubman.run_command('gpio clear 0') 119 response = ubman.run_command(cmd) 144 response = ubman.run_command(cmd) 168 response = ubman.run_command(cmd) 192 response = ubman.run_command(cmd) 197 response = ubman.run_command(cmd) 220 response = ubman.run_command(cmd) 230 response = ubman.run_command(cmd) 254 ubman.run_command(f'gpio input {gpin}') 260 ubman.run_command(f'gpio set {gpin}') [all …]
|
| A D | test_efi_selftest.py | 17 ubman.run_command(cmd='setenv efi_selftest') 34 ubman.run_command(cmd='setenv efi_selftest list') 35 output = ubman.run_command('bootefi selftest') 54 ubman.run_command(cmd='setenv efi_selftest list') 55 output = ubman.run_command('bootefi selftest') 77 ubman.run_command(cmd=chr(4), wait_for_echo=False, 83 ubman.run_command(cmd=chr(8), wait_for_echo=False, 89 ubman.run_command(cmd=chr(9), wait_for_echo=False, 191 ubman.run_command(cmd='setenv efi_selftest list') 192 output = ubman.run_command('bootefi selftest') [all …]
|
| A D | test_efi_bootmgr.py | 42 ubman.run_command(cmd = 'efidebug boot add ' \ 45 ubman.run_command(cmd = 'efidebug boot dump') 46 ubman.run_command(cmd = 'efidebug boot order 0001') 47 ubman.run_command(cmd = 'bootefi bootmgr') 50 ubman.run_command(cmd = 'exit', wait_for_echo=False) 52 ubman.run_command(cmd = 'efidebug boot add ' \ 55 ubman.run_command(cmd = 'efidebug boot dump') 56 ubman.run_command(cmd = 'efidebug boot order 0002') 57 ubman.run_command(cmd = 'bootefi bootmgr') 62 ubman.run_command(cmd = 'efidebug boot rm 0001') [all …]
|
| A D | test_fpga.py | 110 output = ubman.run_command('fpga') 145 ubman.run_command('setenv fpga') 167 ubman.run_command('setenv fpga') 263 ubman.run_command('imi %x' % (addr)) 282 ubman.run_command('imi %x' % (addr)) 296 ubman.run_command('imi %x' % (addr)) 303 ubman.run_command('setenv fpga') 313 ubman.run_command('imi %x' % (addr)) 338 ubman.run_command('setenv fpga') 395 ubman.run_command('setenv fpga') [all …]
|
| A D | test_extension.py | 18 …ubman.run_command('host load hostfs - $fdt_addr_r %s' % (os.path.join(ubman.config.build_dir, SAND… 19 ubman.run_command('fdt addr $fdt_addr_r') 28 output = ubman.run_command('extension list') 33 output = ubman.run_command('extension scan') 36 output = ubman.run_command('extension list') 44 output = ubman.run_command('extension apply 0') 47 output = ubman.run_command('fdt print') 50 output = ubman.run_command('extension apply all') 53 output = ubman.run_command('fdt print')
|
| A D | test_env.py | 144 state_test_env.ubman.run_command( 312 c.run_command('env export %s' % addr) 349 c.run_command('env export %s' % addr) 377 response = c.run_command('env info') 414 response = c.run_command('env info') 423 response = c.run_command('echo $?') 427 response = c.run_command('echo $?') 431 response = c.run_command('echo $?') 483 response = c.run_command('env save') 503 response = c.run_command('echo $?') [all …]
|
| A D | test_eficonfig.py | 59 ubman.run_command(cmd=user_str, wait_for_prompt=False, 61 ubman.run_command(cmd='\x0d', wait_for_prompt=False, 117 ubman.run_command('eficonfig', wait_for_prompt=False) 145 ubman.run_command(cmd=' ', wait_for_prompt=False, 194 ubman.run_command(cmd = 'bootefi bootmgr') 243 ubman.run_command(cmd='+', wait_for_prompt=False, 254 ubman.run_command(cmd = 'bootefi bootmgr') 270 ubman.run_command(cmd='-', wait_for_prompt=False, 280 ubman.run_command(cmd = 'bootefi bootmgr') 356 ubman.run_command(cmd = 'bootefi bootmgr') [all …]
|
| A D | test_net.py | 107 ubman.run_command('usb start') 111 ubman.run_command('pci enum') 113 ubman.run_command('net list') 127 ubman.run_command('setenv autoload no') 128 output = ubman.run_command('dhcp') 150 ubman.run_command('setenv autoload no') 158 output = ubman.run_command('mii info') 172 output = ubman.run_command( 181 ubman.run_command('sleep 1') 198 output = ubman.run_command('dhcp6') [all …]
|
| /test/py/tests/test_android/ |
| A D | test_abootimg.py | 199 ubman.run_command('abootimg get ver v') 200 response = ubman.run_command('env print v') 213 response = ubman.run_command('env print a') 221 ubman.run_command('fdt addr $dtb1_start') 222 ubman.run_command('fdt get value v / model') 223 response = ubman.run_command('env print v') 246 ubman.run_command('abootimg get ver v') 247 response = ubman.run_command('env print v') 256 response = ubman.run_command('env print a') 265 ubman.run_command('fdt addr $dtb2_start') [all …]
|
| A D | test_avb.py | 32 response = ubman.run_command('avb init %s' %str(mmc_dev)) 34 response = ubman.run_command('avb verify') 46 response = ubman.run_command('avb init %s' % str(mmc_dev)) 49 response = ubman.run_command('mmc rescan; mmc dev %s' % 53 part_lines = ubman.run_command('mmc part').splitlines() 78 response = ubman.run_command('avb init %s' % str(mmc_dev)) 81 response = ubman.run_command('avb read_rb 1') 93 response = ubman.run_command('avb is_unlocked') 104 response = ubman.run_command('mmc rescan; mmc dev %s 0' % 119 response = ubman.run_command('cmp 0x%x 0x%x 40' % [all …]
|
| /test/boot/ |
| A D | bootmeth.c | 19 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_list() 39 ut_assertok(run_command("bootmeth order extlinux", 0)); in bootmeth_cmd_order() 45 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order() 54 ut_assertok(run_command("bootmeth list -a", 0)); in bootmeth_cmd_order() 67 ut_assertok(run_command("bootmeth order \"efi extlinux\"", 0)); in bootmeth_cmd_order() 69 ut_assertok(run_command("bootmeth list -a", 0)); in bootmeth_cmd_order() 82 ut_assertok(run_command("bootmeth order", 0)); in bootmeth_cmd_order() 85 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order() 92 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order() 115 ut_assertok(run_command("bootmeth list", 0)); in bootmeth_cmd_order_glob() [all …]
|