Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
libufdt_verify/ | 23-Mar-2024 | - | 539 | 352 | ||
src/ | 23-Mar-2024 | - | 883 | 599 | ||
testdata/ | 23-Mar-2024 | - | 215 | 162 | ||
README | D | 23-Mar-2024 | 1,014 | 52 | 42 | |
apply_overlay.sh | D | 23-Mar-2024 | 3.1 KiB | 125 | 79 | |
apply_verify_multiple_overlay.sh | D | 23-Mar-2024 | 2.7 KiB | 72 | 56 | |
common.sh | D | 23-Mar-2024 | 1.2 KiB | 41 | 19 | |
gen_test.sh | D | 23-Mar-2024 | 1.7 KiB | 56 | 17 | |
run_performance_test.sh | D | 23-Mar-2024 | 3.4 KiB | 131 | 80 | |
run_stress_test.sh | D | 23-Mar-2024 | 2.5 KiB | 102 | 54 | |
run_tests.sh | D | 23-Mar-2024 | 2.9 KiB | 96 | 57 | |
verifyDTBO.sh | D | 23-Mar-2024 | 1.2 KiB | 51 | 31 | |
verify_dto_inc.sh | D | 23-Mar-2024 | 1.8 KiB | 65 | 31 |
README
1This folder contains scripts and test data to test libufdt. 2 3# Test scripts 4 5* run_tests.sh: The main entry to run test cases. Using different 6 test cases under testdata/*. 7* gen_test.sh: The script to run a single test case. 8* common.sh: A common lib containing several useful functions. 9 10# Test data 11 12testdata/${my_test_case}.base_dts 13 - Base device tree source. 14 - Sample format: 15 ``` 16 /dts-v1/; 17 / { 18 a: a{}; 19 }; 20 ``` 21 22testdata/${my_test_case}.add_dts 23 - Additional device tree source. 24 - Sample format: 25 ``` 26 &a{ name = "a"; }; 27 ``` 28 29testdata/${my_test_case}.add_ov_dts (optional) 30 - Additional device tree fragment source. 31 - Sample format: 32 ``` 33 /dts-v1/ /plugin/; 34 / { 35 fragment@0{ 36 target = <&a>; 37 __overlay__ { 38 name = "a"; 39 }; 40 }; 41 }; 42 ``` 43 44# Steps to run the test 45 46Suppose you are at the root directory of your Android source. 47 481. `source build/envsetup.sh` 492. `lunch` 503. `mmma system/libufdt` 514. `system/libufdt/tests/run_tests.sh` 52