| /test/py/tests/ |
| A D | test_gpio.py | 112 if not f: 115 gpio_str_count = f['gpio_str_count'] 136 if not f: 139 gpio_pin_adr = f['gpio_op_pin']; 160 if not f: 163 gpio_pin_adr = f['gpio_op_pin']; 184 if not f: 187 gpio_pin_adr = f['gpio_op_pin']; 212 if not f: 245 if not f: [all …]
|
| A D | test_mdio.py | 26 f = ubman.config.env.get("env__mdio_util_test", None) 27 if not f or len(f) == 0: 30 return f 35 f = get_mdio_test_env(ubman) 37 for dev, val in f.items(): 41 assert f"{phy_addr:x} -" in output 47 f = get_mdio_test_env(ubman) 49 for dev, val in f.items(): 62 f = get_mdio_test_env(ubman) 64 for dev, val in f.items(): [all …]
|
| A D | test_net_boot.py | 152 if not f: 160 fn = f['fn'] 167 sz = f.get('size', None) 231 if not f: 239 return f, bootfile 257 fn = f['fn'] 266 sz = f.get('size', None) 308 fn = f['fn'] 321 sz = f.get('size', None) 387 fn = f['fn'] [all …]
|
| A D | test_scsi.py | 24 if not f: 27 dev_num = f.get('dev_num', None) 31 dev_type = f.get('device_type') 35 dev_size = f.get('device_capacity') 45 assert f'Device {dev_num}:' in output 46 assert f'Type: {dev_type}' in output 55 assert f'Device {dev_num}:' in output 56 assert f'Type: {dev_type}' in output 65 assert f'Device {dev_num}:' in output 66 assert f'Type: {dev_type}' in output [all …]
|
| A D | fs_helper.py | 26 fs_img = f'{prefix}.{fs_type}.img' 58 check_call(f'rm -f {fs_img}', shell=True) 59 check_call(f'truncate -s $(( {size_gran} * {count} )) {fs_img}', 61 check_call(f'mkfs.{fs_lnxtype} {mkfs_opt} {fs_img}', shell=True) 63 sb_content = check_output(f'tune2fs -l {fs_img}', 70 check_call(f'fattools cp {src_dir}/* {fs_img}', shell=True) 73 call(f'rm -f {fs_img}', shell=True) 101 check_call(f'mkdir -p {mnt}', shell=True) 102 check_call(f'qemu-img create {fname} {img_size}M', shell=True) 103 check_call(f'printf "{spec}" | sfdisk {fname}', shell=True) [all …]
|
| A D | test_memtest.py | 28 f = ubman.config.env.get("env__memtest", None) 29 if not f: 32 start = hex(f.get("start_addr", 0x0)) 33 size = hex(f.get("size", 0x1000)) 34 pattern = hex(f.get("pattern", 0x0)) 35 iteration = f.get("iteration", 2) 36 timeout = f.get("timeout", 50000) 47 f"mtest 2000 1000 {pattern} {hex(iteration)}" 52 ubman.run_command(f"mtest {start} {end} 'xyz' {hex(iteration)}") 61 expected_response = f"Tested {str(iteration)} iteration(s) with 0 errors." [all …]
|
| A D | test_zynq_secure.py | 53 if not f: 60 dstsize = f.get('dstlen', None) 74 fn = f['fn'] 89 if not f: 102 fn = f['fnbit'] 117 if not f: 130 fn = f['fnpbit'] 143 if not f: 156 fn = f['fn'] 169 if not f: [all …]
|
| A D | test_i2c.py | 36 if not f: 39 bus_list = f.get("bus_list", None) 42 probe_all = f.get("probe_all", False) 49 expected_response = f"Bus {bus}:" 64 expected_response = f"Setting bus to {bus}" 65 response = ubman.run_command(f"i2c dev {bus}") 74 if not f: 77 bus = f.get("bus", 0) 81 addr = f.get("eeprom_addr", -1) 85 value = f.get("eeprom_val") [all …]
|
| A D | test_net.py | 276 if not f: 279 addr = f.get('addr', None) 281 fn = f['fn'] 287 sz = f.get('size', None) 317 if not f: 324 fn = f['fn'] 327 sz = f.get('size', None) 359 if not f: 413 if not f: 420 sz = f.get("size", None) [all …]
|
| A D | test_zynqmp_secure.py | 38 f = ubman.config.env.get('env__zynqmp_secure_readable_file', None) 39 if not f: 46 addr = f.get('addr', None) 51 fn = f['fn'] 61 assert f'zynqmp_verified_img_addr={ver_addr}' in output 72 if not f: 79 keyaddr = f.get('keyaddr', None) 83 keyfn = f['keyfn'] 87 addr = f.get('addr', None) 91 fn = f['enckupfn'] [all …]
|
| A D | test_ut.py | 150 ubman, f'echo here {kernel} {symlink}') 157 utils.run_and_log(ubman, f'rm -rf {mnt}') 158 utils.run_and_log(ubman, f'rm -f {fsfile}') 206 utils.run_and_log(ubman, f'mkfs.vfat {fsfile}') 209 utils.run_and_log(ubman, f'rm -rf {mnt}') 210 utils.run_and_log(ubman, f'rm -f {fsfile}') 238 f'--vmlinuz {kern}') 425 print(f'wrote to {fname}') 474 print(f'wrote to {fname}') 547 utils.run_and_log(ubman, f'rm -rf {mnt}') [all …]
|
| A D | test_fit_hashes.py | 35 return utils.run_and_log(self.ubman, f'fdtget -l {self.fit} {path}') 38 val = utils.run_and_log(self.ubman, f'fdtget {self.fit} {node} {prop}') 43 f'fdtget -tbx {self.fit} {node} {prop}') 55 self.hashable_nodes.add(f'/images/{node}') 67 algo = self.__fdt_get(f'{image}/{node}', 'algo') 72 raise ValueError(f'{image} Borked hash: {algo}'); 88 dtc_args = f'-I dts -O dtb -i {destdir}' 94 f'dtc {datadir}/{dts} -O dtb -o {tempdir}/{dtb}') 101 fit_file = f'{tempdir}/test.fit' 105 with open(f'{tempdir}/test-kernel.bin', 'w') as fd: [all …]
|
| A D | test_fit_auto_signed.py | 37 f'fdtget -l {self.fit} {path}') 41 f'fdtget -ts {self.fit} {node} {prop}') 45 f'fdtget -tbi {self.fit} {node} {prop}') 56 subnode = f'/images/{node}' 60 subnode = f'/configurations/{node}' 72 algo = self.__fdt_get_string(f'{node}/hash', 'algo') 139 kernel_file = f'{tempdir}/vmlinuz' 140 dt1_file = f'{tempdir}/dt-1.dtb' 141 dt2_file = f'{tempdir}/dt-2.dtb' 144 key_file = f'{tempdir}/{key_name}.key' [all …]
|
| A D | test_fpga.py | 68 if not f: 71 dev = f.get('dev', -1) 75 return dev, f 86 bit = f['%s' % (name)] 442 bit = f['loadfs'] 496 bit = f['loadfs'] 516 if not f: 524 fn = f['fn'] 544 if not f: 551 keyfn = f['keyfn'] [all …]
|
| A D | test_fit_ecdsa.py | 28 return utils.run_and_log(self.ubman, f'fdtget -l {self.fit} {path}') 37 f'fdtget -tbi {self.fit} {node} {prop}') 47 image = f'/images/{node}' 55 self.__fdt_set(f'{image}/signature', algo='sha256,ecdsa256') 62 raw_sig = self.__fdt_get_binary(f'{image}/signature', 'value') 80 dtc_args = f'-I dts -O dtb -i {destdir}' 91 key_file = f'{tempdir}/ecdsa-test-key.pem' 92 fit_file = f'{tempdir}/test.fit' 98 with open(f'{tempdir}/test-kernel.bin', 'w') as fd: 102 with open(key_file, 'w') as f: [all …]
|
| A D | test_suite.py | 48 ubman.log.info(f'line: {line}') 56 ubman.log.info(f'cur_suite: {cur_suite}') 69 full_name = f'{cur_suite}.{test_name}' 77 ubman.log.info(f'test_count {test_count}') 80 ubman.log.info(f"Tests: {' '.join(sorted(list(tests)))}") 116 ubman.log.info(f'line: {line}') 155 ubman.log.info(f'missing {missing}') 156 ubman.log.info(f'extra {extra}') 177 ubman.log.error(f'extra: {sorted(list(extra))}') 179 assert not missing, f'Missing suites {missing}' [all …]
|
| A D | test_zynqmp_rpu.py | 73 output = ubman.run_command(f'zynqmp tcminit {rpu_mode}') 90 ubman.run_command(f'cpu {num} disable') 119 cmd = f'cpu {cpu_num} release {rel_addr} {rpu_mode}' 123 assert f'R5 {rpu_mode} mode' in output 148 ubman.run_command(f'zynqmp tcminit {mode}') 166 cmd = f'cpu {cpu_num} release {rel_addr} {rpu_mode}' 170 assert f'R5 {rpu_mode} mode' in output 178 assert f'Unsupported mode' in output 184 f'zynqmp tcminit {get_rpu_mode(rpu_mode)}' 193 f'zynqmp tcminit {get_rpu_mode(rpu_mode)}' [all …]
|
| A D | test_mii.py | 39 f = ubman.config.env.get("env__mii_device_test", None) 40 if not f: 43 dev_list = f.get("device_list") 59 f = ubman.config.env.get("env__mii_device_test", None) 60 dev_list = f.get("device_list") 65 ubman.run_command(f"mii device {dev}") 69 ubman.run_command(f"mii device {current_dev}") 79 ubman.run_command(f"mii read {eth_addr} 0") 89 response = ubman.run_command(f"mii dump {eth_addr} 0")
|
| A D | test_bootstage.py | 58 f = ubman.config.env.get('env__bootstage_cmd_file', None) 59 if not f: 62 addr = f.get('addr') 63 size = f.get('size') 64 bootstage_magic = f.get('bootstage_magic_addr')
|
| A D | test_spi.py | 77 if not f: 80 bus = f.get('bus', 0) 81 cs = f.get('chip_select', 0) 82 mode = f.get('mode', 0) 83 part_name = f.get('part_name', None) 84 timeout = f.get('timeout', None) 94 if not f: 97 min_f = f.get('min_freq', None) 98 max_f = f.get('max_freq', None) 99 iterations = f.get('iteration', 1) [all …]
|
| A D | test_log.py | 32 run_with_format('all', f'NOTICE.arch,file.c:123-{padding}func() msg') 36 run_with_format('fm', f'{padding}func() msg') 37 run_with_format('clfm', f'NOTICE.arch,{padding}func() msg') 38 run_with_format('FLfm', f'file.c:123-{padding}func() msg')
|
| A D | test_vbe_vpl.py | 22 ubman, f'fdtput -t s {fdt} /bootstd/firmware0 status disabled') 24 ubman, f'fdtput -t s {fdt} /bootstd/firmware1 status okay') 26 ubman, f'fdtput -t s {fdt} /mmc3 status okay') 28 ubman, f'fdtput -t s {fdt} /mmc3 filename {image_fname}')
|
| /test/py/tests/test_efi_capsule/ |
| A D | capsule_common.py | 18 f'host bind 0 {disk_img}', 43 f'fatload host 0:1 4000000 {CAPSULE_DATA_DIR}/{filename}', 44 f'sf write 4000000 {target} 10', 80 f'host bind 0 {disk_img}', 81 f'fatls host 0:1 {CAPSULE_INSTALL_DIR}']) 98 f'host bind 0 {disk_img}', 99 f'fatls host 0:1 {CAPSULE_INSTALL_DIR}']) 112 f'host bind 0 {disk_img}', 113 f'fatls host 0:1 {CAPSULE_INSTALL_DIR}']) 127 f'sf read 4000000 {target} 10', [all …]
|
| /test/dm/ |
| A D | k210_pll.c | 15 u64 f, r, od, max_r, inv_ratio; in dm_test_k210_pll_calc_config() local 25 for (f = 1; f <= 64; f++) { in dm_test_k210_pll_calc_config() 27 u64 vco = DIV_ROUND_CLOSEST_ULL(rate_in * f, r); in dm_test_k210_pll_calc_config() 32 error = DIV_ROUND_CLOSEST_ULL(f * inv_ratio, in dm_test_k210_pll_calc_config() 38 best->f = f; in dm_test_k210_pll_calc_config() 54 return (u32)ours->f * theirs->r * theirs->od != in dm_test_k210_pll_compare() 55 (u32)theirs->f * ours->r * ours->od; in dm_test_k210_pll_compare()
|
| /test/py/ |
| A D | multiplexed_log.py | 239 self.f.write('''\ 318 self.f.write('''\ 323 self.f.close() 363 self.f.write('</pre>\n') 366 self.f.write('</div>\n') 367 self.f.write('</div>\n') 385 self.f.write('<pre>') 390 self.f.write('</a>') 392 self.f.write('</div>\n') 446 self.f.write('</div>\n') [all …]
|