/u-boot/lib/efi_selftest/ |
A D | efi_selftest.c | 84 if (!test->setup) in setup() 109 if (!test->execute) in execute() 112 ret = test->execute(); in execute() 134 if (!test->teardown) in teardown() 137 ret = test->teardown(); in teardown() 159 test < ll_entry_end(struct efi_unit_test, efi_unit_test); ++test) { in need_reset() 180 test < ll_entry_end(struct efi_unit_test, efi_unit_test); ++test) { in find_test() 182 return test; in find_test() 198 test < ll_entry_end(struct efi_unit_test, efi_unit_test); ++test) { in list_all_tests() 220 ++test, ++i) { in efi_st_do_tests() [all …]
|
/u-boot/post/lib_powerpc/ |
A D | store.c | 159 if (test->index) in cpu_post_test_store() 163 ASM_12(test->cmd, 5, 3, 4), in cpu_post_test_store() 167 cpu_post_exec_12w (code, &base, test->offset, test->value); in cpu_post_test_store() 173 ASM_11I(test->cmd, 4, 3, test->offset), in cpu_post_test_store() 177 cpu_post_exec_11w (code, &base, test->value); in cpu_post_test_store() 182 if (test->update) in cpu_post_test_store() 183 ret = base == base0 + test->offset ? 0 : -1; in cpu_post_test_store() 190 switch (test->width) in cpu_post_test_store() 193 ret = *(uchar *)(base0 + test->offset) == test->value ? in cpu_post_test_store() 197 ret = *(ushort *)(base0 + test->offset) == test->value ? in cpu_post_test_store() [all …]
|
A D | load.c | 168 struct cpu_post_load_s *test = cpu_post_load_table + i; in cpu_post_test_load() local 175 if (test->index) in cpu_post_test_load() 179 ASM_12(test->cmd, 5, 3, 4), in cpu_post_test_load() 189 ASM_11I(test->cmd, 4, 3, test->offset), in cpu_post_test_load() 198 if (test->update) in cpu_post_test_load() 199 ret = base == base0 + test->offset ? 0 : -1; in cpu_post_test_load() 206 switch (test->width) in cpu_post_test_load() 209 ret = *(uchar *)(base0 + test->offset) == value ? in cpu_post_test_load() 213 ret = *(ushort *)(base0 + test->offset) == value ? in cpu_post_test_load() 217 ret = *(short *)(base0 + test->offset) == value ? in cpu_post_test_load() [all …]
|
A D | cr.c | 259 struct cpu_post_cr_s2 *test = cpu_post_cr_table2 + i; in cpu_post_test_cr() local 266 ASM_MCRXR(test->cr), in cpu_post_test_cr() 272 cpu_post_exec_21x (code, &res, &xer, test->xer); in cpu_post_test_cr() 274 ret = xer == 0 && ((res << (4 * test->cr)) & 0xe0000000) == test->xer ? in cpu_post_test_cr() 285 struct cpu_post_cr_s3 *test = cpu_post_cr_table3 + i; in cpu_post_test_cr() local 291 ASM_MCRF(test->cd, test->cs), in cpu_post_test_cr() 296 cpu_post_exec_11 (code, &res, test->cr); in cpu_post_test_cr() 298 ret = res == test->res ? 0 : -1; in cpu_post_test_cr() 314 ASM_12F(test->cmd, test->op3, test->op1, test->op2), in cpu_post_test_cr() 319 cpu_post_exec_11 (code, &res, test->cr); in cpu_post_test_cr() [all …]
|
A D | rlwimi.c | 59 struct cpu_post_rlwimi_s *test = cpu_post_rlwimi_table + i; in cpu_post_test_rlwimi() local 76 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, test->me), in cpu_post_test_rlwimi() 95 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, test->me) | in cpu_post_test_rlwimi() 111 cpu_post_exec_22 (code, & cr, & res, test->op0, test->op1); in cpu_post_test_rlwimi() 113 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_rlwimi() 123 cpu_post_exec_22 (codecr, & cr, & res, test->op0, test->op1); in cpu_post_test_rlwimi() 125 ret = res == test->res && in cpu_post_test_rlwimi()
|
A D | rlwinm.c | 56 struct cpu_post_rlwinm_s *test = cpu_post_rlwinm_table + i; in cpu_post_test_rlwinm() local 71 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, test->me), in cpu_post_test_rlwinm() 88 ASM_113(test->cmd, reg1, reg0, test->op2, test->mb, in cpu_post_test_rlwinm() 89 test->me) | BIT_C, in cpu_post_test_rlwinm() 104 cpu_post_exec_21 (code, & cr, & res, test->op1); in cpu_post_test_rlwinm() 106 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_rlwinm() 116 cpu_post_exec_21 (codecr, & cr, & res, test->op1); in cpu_post_test_rlwinm() 118 ret = res == test->res && in cpu_post_test_rlwinm()
|
A D | rlwnm.c | 57 struct cpu_post_rlwnm_s *test = cpu_post_rlwnm_table + i; in cpu_post_test_rlwnm() local 76 ASM_122(test->cmd, reg2, reg1, reg0, test->mb, test->me), in cpu_post_test_rlwnm() 97 ASM_122(test->cmd, reg2, reg1, reg0, test->mb, test->me) | in cpu_post_test_rlwnm() 114 cpu_post_exec_22 (code, & cr, & res, test->op1, test->op2); in cpu_post_test_rlwnm() 116 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_rlwnm() 126 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_rlwnm() 128 ret = res == test->res && in cpu_post_test_rlwnm()
|
A D | cmp.c | 92 struct cpu_post_cmp_s *test = cpu_post_cmp_table + i; in cpu_post_test_cmp() local 95 ASM_2C(test->cmd, test->cr, 3, 4), in cpu_post_test_cmp() 101 cpu_post_exec_12 (code, & res, test->op1, test->op2); in cpu_post_test_cmp() 103 ret = ((res >> (28 - 4 * test->cr)) & 0xe) == test->res ? 0 : -1; in cpu_post_test_cmp()
|
A D | cmpi.c | 92 struct cpu_post_cmpi_s *test = cpu_post_cmpi_table + i; in cpu_post_test_cmpi() local 95 ASM_1IC(test->cmd, test->cr, 3, test->op2), in cpu_post_test_cmpi() 101 cpu_post_exec_11 (code, & res, test->op1); in cpu_post_test_cmpi() 103 ret = ((res >> (28 - 4 * test->cr)) & 0xe) == test->res ? 0 : -1; in cpu_post_test_cmpi()
|
A D | srawi.c | 58 struct cpu_post_srawi_s *test = cpu_post_srawi_table + i; in cpu_post_test_srawi() local 73 ASM_11S(test->cmd, reg1, reg0, test->op2), in cpu_post_test_srawi() 90 ASM_11S(test->cmd, reg1, reg0, test->op2) | BIT_C, in cpu_post_test_srawi() 105 cpu_post_exec_21 (code, & cr, & res, test->op1); in cpu_post_test_srawi() 107 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_srawi() 117 cpu_post_exec_21 (codecr, & cr, & res, test->op1); in cpu_post_test_srawi() 119 ret = res == test->res && in cpu_post_test_srawi()
|
A D | threex.c | 122 struct cpu_post_threex_s *test = cpu_post_threex_table + i; in cpu_post_test_threex() local 141 ASM_12X(test->cmd, reg2, reg1, reg0), in cpu_post_test_threex() 162 ASM_12X(test->cmd, reg2, reg1, reg0) | BIT_C, in cpu_post_test_threex() 178 cpu_post_exec_22 (code, & cr, & res, test->op1, test->op2); in cpu_post_test_threex() 180 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_threex() 190 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_threex() 192 ret = res == test->res && in cpu_post_test_threex()
|
A D | three.c | 152 struct cpu_post_three_s *test = cpu_post_three_table + i; in cpu_post_test_three() local 171 ASM_12(test->cmd, reg2, reg1, reg0), in cpu_post_test_three() 192 ASM_12(test->cmd, reg2, reg1, reg0) | BIT_C, in cpu_post_test_three() 208 cpu_post_exec_22 (code, & cr, & res, test->op1, test->op2); in cpu_post_test_three() 210 ret = res == test->res && cr == 0 ? 0 : -1; in cpu_post_test_three() 220 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_three() 222 ret = res == test->res && in cpu_post_test_three()
|
/u-boot/post/ |
A D | post.c | 37 if (test->init_f && test->init_f()) in post_init_f() 267 if ((*test->test)(flags) == 0) { in post_run_single() 278 if ((*test->test)(flags) != 0) { in post_run_single() 368 " %s\n", test->cmd, test->name, test->desc); in post_info_single() 370 printf(" %-15s - %s\n", test->cmd, test->name); in post_info_single() 431 if (test->name) { in post_reloc() 436 if (test->cmd) { in post_reloc() 446 if (test->test) { in post_reloc() 447 addr = (ulong)(test->test) + gd->reloc_off; in post_reloc() 448 test->test = (int (*)(int flags)) addr; in post_reloc() [all …]
|
/u-boot/test/overlay/ |
A D | test-fdt-overlay.dts | 13 target = <&test>; 16 test-int-property = <43>; 22 target = <&test>; 25 test-str-property = "foobar"; 31 target = <&test>; 34 test-str-property-2 = "foobar2"; 40 target = <&test>; 74 test-phandle = <&test>, <&local>; 87 target = <&test>; 90 sub-test-node { [all …]
|
A D | test-fdt-base.dts | 10 test: test-node { label 11 test-int-property = <42>; 12 test-str-property = "foo"; 14 subtest: sub-test-node { 15 sub-test-property;
|
/u-boot/test/dm/ |
A D | test-main.c | 87 printf("Test: %s: %s%s\n", test->name, fname, in dm_do_test() 92 if (test->flags & UT_TESTF_SCAN_PDATA) in dm_do_test() 94 if (test->flags & UT_TESTF_PROBE_TEST) in dm_do_test() 97 (test->flags & UT_TESTF_SCAN_FDT)) in dm_do_test() 107 test->func(uts); in dm_do_test() 154 struct unit_test *test; in dm_test_main() local 178 for (test = tests; test < tests + n_ents; test++) { in dm_test_main() 179 const char *name = test->name; in dm_test_main() 188 if (!(test->flags & UT_TESTF_FLAT_TREE)) { in dm_test_main() 189 ut_assertok(dm_do_test(uts, test, true)); in dm_test_main() [all …]
|
/u-boot/ |
A D | .gitlab-ci.yml | 10 - test.py 15 stage: test.py 51 ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} 187 sandbox test.py: 200 sandbox_spl test.py: 242 qemu_arm test.py: 249 qemu_arm64 test.py: 256 qemu_mips test.py: 284 qemu_malta test.py: 351 qemu-x86 test.py: [all …]
|
/u-boot/doc/ |
A D | README.POST | 34 o) CPU test 35 o) Cache test 36 o) Memory test 37 o) Ethernet test 40 o) RTC test 41 o) I2C test 42 o) SPI test 43 o) USB test 206 o) test 307 cpu - CPU test [all …]
|
/u-boot/doc/develop/ |
A D | testing.rst | 26 allows test to be executed without needing target hardware. The 'sandbox' 33 Many tests are available using the pytest suite, in test/py. This can run 35 inject test commands and check the result. It is slower to run than C code, 40 ./test/py/test.py --bd sandbox --build 42 This will produce HTML output in build-sandbox/test-log.html 44 See test/py/README.md for more information about the pytest suite. 61 test/fs - File system test (shell script) 62 test/image - FIT and legacy image tests (shell script and Python) 63 test/stdint - A test that stdint.h can be used in U-Boot (shell script) 85 - If you are modifying code covered by an existing test, add a new test case [all …]
|
A D | py_testing.rst | 89 ./test/py/test.py --bd sandbox --build 100 then print a summary of the test process. A complete log of the test session 125 ./test/py/test.py --bd sandbox --gdbserver localhost:1234 231 u-boot-test-console 250 u-boot-test-flash 280 u-boot-test-reset 285 first test function. If any test fails, the test infra-structure will execute 287 next test function. 379 ./test/py/test.py --bd seaboard 390 ./test/py/test.py --bd seaboard --build [all …]
|
/u-boot/arch/sandbox/dts/ |
A D | test.dts | 140 a-test { 246 bind-test { 258 b-test { 303 c-test@5 { 323 d-test { 330 e-test { 337 f-test { 341 g-test { 345 h-test { 349 i-test { [all …]
|
/u-boot/tools/binman/test/ |
A D | 066_text.dts | 11 text-label = "test-id"; 15 text-label = "test-id2"; 19 text-label = "test-id3"; 24 text-label = "test-id4"; 25 test-id4 = "some text";
|
/u-boot/tools/buildman/ |
A D | buildman | 33 import test 43 test.use_network = False 44 for module in (test.TestBuild, func_test.TestFunctional): 49 for test, err in result.errors: 51 for test, err in result.failures: 58 if options.test:
|
A D | main.py | 33 import test 43 test.use_network = False 44 for module in (test.TestBuild, func_test.TestFunctional): 49 for test, err in result.errors: 51 for test, err in result.failures: 58 if options.test:
|
/u-boot/cmd/ |
A D | sf.c | 417 if (test->time_ms[stage]) in show_time() 428 test->time_ms[test->stage] = get_timer(test->base_ms); in spi_test_next_stage() 429 show_time(test, test->stage); in spi_test_next_stage() 431 test->stage++; in spi_test_next_stage() 447 struct test_info test; in spi_flash_test() local 451 memset(&test, '\0', sizeof(test)); in spi_flash_test() 453 test.bytes = len; in spi_flash_test() 459 spi_test_next_stage(&test); in spi_flash_test() 474 spi_test_next_stage(&test); in spi_flash_test() 482 spi_test_next_stage(&test); in spi_flash_test() [all …]
|