Home
last modified time | relevance | path

Searched full:test (Results 1 – 25 of 840) sorted by relevance

12345678910>>...34

/rk3399_rockchip-uboot/test/py/tests/
H A Dtest_hush_if_test.py5 # Test operation of the "if" shell command.
13 # The list of "if test" conditions to test.
22 ('test aaa = aaa', True),
23 ('test aaa = bbb', False),
25 ('test aaa != bbb', True),
26 ('test aaa != aaa', False),
28 ('test aaa < bbb', True),
29 ('test bbb < aaa', False),
31 ('test bbb > aaa', True),
32 ('test aaa > bbb', False),
[all …]
/rk3399_rockchip-uboot/doc/
H A DREADME.POST1 Power-On-Self-Test support in U-Boot
4 This project is to support Power-On-Self-Test (POST) in U-Boot.
11 and running Power-On-Self-Test in U-Boot. This framework shall
34 o) CPU test
35 o) Cache test
36 o) Memory test
37 o) Ethernet test
38 o) Serial channels test
39 o) Watchdog timer test
40 o) RTC test
[all …]
/rk3399_rockchip-uboot/post/
H A Dtests.c51 "OCM test",
53 "This test checks on chip memory (OCM).",
63 "Cache test",
65 "This test verifies the CPU cache operation.",
78 "Watchdog timer test",
80 "This test checks the watchdog timer.",
91 "I2C test",
93 "This test verifies the I2C operation.",
103 "RTC test",
105 "This test verifies the RTC operation.",
[all …]
H A Dpost.c30 struct post_test *test = post_list + i; in post_init_f() local
32 if (test->init_f && test->init_f()) in post_init_f()
208 printf("No such test: %s\n", name); in post_get_env_flags()
236 static int post_run_single(struct post_test *test, in post_run_single() argument
252 post_log_mark_start(test->testid); in post_run_single()
254 post_log("POST %s ", test->cmd); in post_run_single()
260 if ((*test->test)(flags) == 0) { in post_run_single()
261 post_log_mark_succ(test->testid); in post_run_single()
271 if ((*test->test)(flags) != 0) { in post_run_single()
356 static int post_info_single(struct post_test *test, int full) in post_info_single() argument
[all …]
/rk3399_rockchip-uboot/test/py/
H A DREADME.md5 This tool aims to test U-Boot by executing U-Boot shell commands using the
12 - There is no need to write or embed test-related code into U-Boot itself.
13 It is asserted that writing test-related code in Python is simpler and more
19 The test suite is implemented using pytest. Interaction with the U-Boot console
21 need to implement various "hook" scripts that are called by the test suite at
32 The test script supports either:
43 packages, or may provide versions that are too old to run the test suite. One
62 ./test/py/test.py --bd sandbox --build
65 The `--bd` option tells the test suite which board type is being tested. This
66 lets the test suite know which features the board has, and hence exactly what
[all …]
H A Dconftest.py8 # test, at shutdown etc. These hooks perform functions such as:
11 # - Creating the U-Boot console test fixture.
13 # - Monitoring each test's results.
65 help='U-Boot test result/tmp directory')
67 help='U-Boot test persistent generated data directory')
121 log = multiplexed_log.Logfile(result_dir + '/test-log.html')
182 ubconfig.dtb = build_dir + '/arch/sandbox/dts/test.dtb'
209 to test functions by parameterizing their ut_subtest fixture parameter.
212 metafunc: The pytest test function.
213 fixture_name: The fixture name to test.
[all …]
/rk3399_rockchip-uboot/test/overlay/
H A Dtest-fdt-overlay.dts12 /* Test that we can change an int by another */
14 target = <&test>;
17 test-int-property = <43>;
21 /* Test that we can replace a string by a longer one */
23 target = <&test>;
26 test-str-property = "foobar";
30 /* Test that we add a new property */
32 target = <&test>;
35 test-str-property-2 = "foobar2";
39 /* Test that we add a new node (by phandle) */
[all …]
H A Dcmd_ut_overlay.c15 #include <test/ut.h>
16 #include <test/overlay.h>
72 ut_assertok(ut_fdt_getprop_u32(fdt, "/test-node", "test-int-property", in fdt_overlay_change_int_property()
85 ut_assertok(fdt_getprop_str(fdt, "/test-node", "test-str-property", in fdt_overlay_change_str_property()
98 ut_assertok(fdt_getprop_str(fdt, "/test-node", "test-str-property-2", in fdt_overlay_add_str_property()
111 off = fdt_path_offset(fdt, "/test-node/new-node"); in fdt_overlay_add_node_by_phandle()
139 off = fdt_path_offset(fdt, "/test-node/sub-test-node"); in fdt_overlay_add_subnode_property()
142 ut_assertnonnull(fdt_getprop(fdt, off, "sub-test-property", NULL)); in fdt_overlay_add_subnode_property()
143 ut_assertnonnull(fdt_getprop(fdt, off, "new-sub-test-property", NULL)); in fdt_overlay_add_subnode_property()
162 ut_assertok(ut_fdt_getprop_u32_by_index(fdt, "/", "test-several-phandle", in fdt_overlay_local_phandle()
[all …]
/rk3399_rockchip-uboot/include/dm/
H A Dtest.h11 #include <test/test.h>
14 * struct dm_test_cdata - configuration data for test instance
25 * struct test_ops - Operations supported by the test device
37 /* Operations that our test driver supports */
56 /* Test driver types */
68 * struct dm_test_priv - private data for the test devices
78 * struct dm_test_perdev_class_priv - private per-device data for test uclass
85 * struct dm_test_uclass_priv - private data for test uclass
94 * @sum: Test value used to check parent data works correctly
103 /* Test values for test device's uclass platform data */
[all …]
/rk3399_rockchip-uboot/test/dm/
H A Dtest-main.c14 #include <dm/test.h>
17 #include <test/ut.h>
44 /* Ensure all the test devices are probed */
77 static int dm_do_test(struct unit_test_state *uts, struct unit_test *test, in dm_do_test() argument
81 const char *fname = strrchr(test->file, '/') + 1; in dm_do_test()
83 printf("Test: %s: %s%s\n", test->name, fname, in dm_do_test()
88 if (test->flags & DM_TESTF_SCAN_PDATA) in dm_do_test()
90 if (test->flags & DM_TESTF_PROBE_TEST) in dm_do_test()
92 if (test->flags & DM_TESTF_SCAN_FDT) in dm_do_test()
102 test->func(uts); in dm_do_test()
[all …]
/rk3399_rockchip-uboot/arch/sandbox/include/asm/
H A Dclk.h29 * clock test device.
59 * sandbox_clk_test_get - Ask the sandbox clock test device to request its
62 * @dev: The sandbox clock test (client) devivce.
67 * sandbox_clk_test_get_bulk - Ask the sandbox clock test device to request its
70 * @dev: The sandbox clock test (client) devivce.
75 * sandbox_clk_test_get_rate - Ask the sandbox clock test device to query a
78 * @dev: The sandbox clock test (client) devivce.
79 * @id: The test device's clock ID to query.
84 * sandbox_clk_test_set_rate - Ask the sandbox clock test device to set a
87 * @dev: The sandbox clock test (client) devivce.
[all …]
/rk3399_rockchip-uboot/test/
H A DREADME13 test/run
22 allows test to be executed without needing target hardware. The 'sandbox'
29 Many tests are available using the pytest suite, in test/py. This can run
31 inject test commands and check the result. It is slower to run than C code,
36 ./test/py/test.py --bd sandbox --build
38 This will produce HTML output in build-sandbox/test-log.html
40 See test/py/README.md for more information about the pytest suite.
48 number of boards automatically. It can be used to create a continuous test
57 test/fs - File system test (shell script)
58 test/image - FIT and legacy image tests (shell script and Python)
[all …]
/rk3399_rockchip-uboot/post/lib_powerpc/fpu/
H A Dcompare-fp-1.c8 * Test for correctness of composite floating-point comparisons.
23 #define TEST(c) if ((c) != ok) failed++ macro
39 TEST (UNEQ (x, y)); in iuneq()
40 TEST (!LTGT (x, y)); in iuneq()
41 TEST (UNLE (x, y) && UNGE (x,y)); in iuneq()
46 TEST (ORD (x, y) && UNEQ (x, y)); in ieq()
51 TEST (!UNEQ (x, y)); /* Not optimizable. */ in iltgt()
52 TEST (LTGT (x, y)); /* Same, __builtin_islessgreater does not trap. */ in iltgt()
53 TEST (ORD (x, y) && (UNLT (x, y) || UNGT (x,y))); in iltgt()
58 TEST (UNLT (x, y) || UNGT (x, y)); in ine()
[all …]
/rk3399_rockchip-uboot/post/lib_powerpc/
H A Dstore.c11 * CPU test
17 * The test cases are composed so that they do not
19 * The test contains a pre-built table describing all test cases.
23 * instruction, the test verifies the contents of the array
153 struct cpu_post_store_s *test = cpu_post_store_table + i; in cpu_post_test_store() local
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()
[all …]
H A Drlwimi.c11 * CPU test
14 * The test contains a pre-built table of instructions, operands and
15 * expected results. For each table entry, the test will cyclically use
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()
117 post_log ("Error at rlwimi test %d !\n", i); in cpu_post_test_rlwimi()
123 cpu_post_exec_22 (codecr, & cr, & res, test->op0, test->op1); in cpu_post_test_rlwimi()
[all …]
H A Drlwinm.c11 * CPU test
14 * The test contains a pre-built table of instructions, operands and
15 * expected results. For each table entry, the test will cyclically use
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()
110 post_log ("Error at rlwinm test %d !\n", i); in cpu_post_test_rlwinm()
[all …]
H A Dload.c11 * CPU test
17 * The test cases are composed so that they do not
19 * The test contains a pre-built table describing all test cases.
23 * After executing the instruction, the test verifies the
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()
183 cpu_post_exec_22w (code, &base, test->offset, &value); 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()
[all …]
H A Drlwnm.c11 * CPU test
14 * The test contains a pre-built table of instructions, operands and
15 * expected results. For each table entry, the test will cyclically use
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()
120 post_log ("Error at rlwnm test %d !\n", i); in cpu_post_test_rlwnm()
126 cpu_post_exec_22 (codecr, & cr, & res, test->op1, test->op2); in cpu_post_test_rlwnm()
[all …]
H A Dcr.c11 * CPU test
253 post_log ("Error at cr1 test %d !\n", i); in cpu_post_test_cr()
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()
279 post_log ("Error at cr2 test %d !\n", i); 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()
[all …]
/rk3399_rockchip-uboot/include/configs/
H A Dmx6sabre_common.h45 "if test ${ip_dyn} = yes; then " \
81 "if test ${ip_dyn} = yes; then " \
105 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
109 "if test ${boot_fdt} = try; then " \
123 "if test ${ip_dyn} = yes; then " \
129 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
133 "if test ${boot_fdt} = try; then " \
143 "if test $fdt_file = undefined; then " \
144 "if test $board_name = SABREAUTO && test $board_rev = MX6QP; then " \
146 "if test $board_name = SABREAUTO && test $board_rev = MX6Q; then " \
[all …]
/rk3399_rockchip-uboot/test/fs/
H A Dfs-test.sh8 # Invoke this test script from U-Boot base directory as ./test/fs/fs-test.sh
12 # fs-test.sb.ext4.out: Summary: PASS: 23 FAIL: 0
13 # fs-test.ext4.out: Summary: PASS: 23 FAIL: 0
14 # fs-test.fs.ext4.out: Summary: PASS: 23 FAIL: 0
16 # fs-test.sb.fat.out: Summary: PASS: 23 FAIL: 0
17 # fs-test.fat.out: Summary: PASS: 20 FAIL: 3
18 # fs-test.fs.fat.out: Summary: PASS: 20 FAIL: 3
24 # All generated output files from this test will be in $OUT_DIR
26 OUT_DIR="sandbox/test/fs"
43 # $MD5_FILE will have the expected md5s when we do the test
[all …]
/rk3399_rockchip-uboot/arch/sandbox/dts/
H A Dtest.dts23 testfdt6 = "/e-test";
25 testfdt0 = "/some-bus/c-test@0";
26 testfdt1 = "/some-bus/c-test@1";
27 testfdt3 = "/b-test";
28 testfdt5 = "/some-bus/c-test@5";
29 testfdt8 = "/a-test";
35 a-test {
37 compatible = "denx,u-boot-fdt-test";
41 test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>,
57 b-test {
[all …]
/rk3399_rockchip-uboot/test/env/
H A Dcmd_ut_env.c10 #include <test/env.h>
11 #include <test/suites.h>
12 #include <test/ut.h>
19 struct unit_test *test; in do_ut_env() local
24 for (test = tests; test < tests + n_ents; test++) { in do_ut_env()
25 if (argc > 1 && strcmp(argv[1], test->name)) in do_ut_env()
27 printf("Test: %s\n", test->name); in do_ut_env()
31 test->func(&uts); in do_ut_env()
/rk3399_rockchip-uboot/doc/driver-model/
H A DREADME.txt89 The intent with driver model is that the core portion has 100% test coverage
90 in sandbox, and every uclass has its own test. As a move towards this, tests
91 are provided in test/dm. To run them, try:
93 ./test/py/test.py --bd sandbox --build -k ut_dm -v
97 (venv)$ ./test/py/test.py --bd sandbox --build -k ut_dm -v
100 ============================= test session starts ==============================
106 test/py/tests/test_ut.py::test_ut_dm_init PASSED
107 test/py/tests/test_ut.py::test_ut[ut_dm_adc_bind] PASSED
108 test/py/tests/test_ut.py::test_ut[ut_dm_adc_multi_channel_conversion] PASSED
109 test/py/tests/test_ut.py::test_ut[ut_dm_adc_multi_channel_shot] PASSED
[all …]
/rk3399_rockchip-uboot/test/rockchip/
H A DMakefile7 obj-y += test-rockchip.o
8 obj-y += test-boot.o
9 obj-y += test-download.o
11 obj-y += test-display.o
12 obj-y += test-misc.o
14 obj-y += test-net.o
15 obj-y += test-power.o
16 obj-y += test-storage.o

12345678910>>...34