mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-08 20:55:18 -05:00
dtc: More detailed testing of tree checks
This patch modifies the dtc-checkfails.sh testcase wrapper so that instead of testing just that dtc fails with a particular error code on the sample input, it scans dtc's stderr output looking for a message that dtc failed a specific check or checks. This has several advantages: - It means we more precisely check dtc's checking behaviour - It means we can check for generation of warnings using the same script - It means we can test cases where dtc should generate multiple errors or warnings from different checks Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
d6060bd231
commit
5ba0086bfd
4 changed files with 38 additions and 21 deletions
|
|
@ -158,14 +158,14 @@ dtc_tests () {
|
|||
done
|
||||
|
||||
# Check some checks
|
||||
run_test dtc-checkfails.sh -I dts -O dtb dup-nodename.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb dup-propname.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb dup-phandle.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb zero-phandle.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb minusone-phandle.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb nonexist-node-ref.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb nonexist-label-ref.dts
|
||||
run_test dtc-checkfails.sh -I dts -O dtb bad-name-property.dts
|
||||
run_test dtc-checkfails.sh duplicate_node_names -- -I dts -O dtb dup-nodename.dts
|
||||
run_test dtc-checkfails.sh duplicate_property_names -- -I dts -O dtb dup-propname.dts
|
||||
run_test dtc-checkfails.sh explicit_phandles -- -I dts -O dtb dup-phandle.dts
|
||||
run_test dtc-checkfails.sh explicit_phandles -- -I dts -O dtb zero-phandle.dts
|
||||
run_test dtc-checkfails.sh explicit_phandles -- -I dts -O dtb minusone-phandle.dts
|
||||
run_test dtc-checkfails.sh phandle_references -- -I dts -O dtb nonexist-node-ref.dts
|
||||
run_test dtc-checkfails.sh phandle_references -- -I dts -O dtb nonexist-label-ref.dts
|
||||
run_test dtc-checkfails.sh name_properties -- -I dts -O dtb bad-name-property.dts
|
||||
}
|
||||
|
||||
while getopts "vt:m" ARG ; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue