dtc: Add testcases for labels within values

This patch adds a testcase using asm output mode to check that labels
within property values are correctly processed.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson
2009-01-08 11:48:48 +11:00
committed by Jon Loeliger
parent 26d93f6c92
commit bae93e8992
5 changed files with 142 additions and 2 deletions

View File

@@ -239,7 +239,8 @@ dtc_tests () {
# Check -Oasm mode
for tree in test_tree1.dts escapes.dts references.dts path-references.dts \
comments.dts aliases.dts include0.dts incbin.dts ; do
comments.dts aliases.dts include0.dts incbin.dts \
value-labels.dts ; do
run_dtc_test -I dts -O asm -o oasm_$tree.test.s $tree
asm_to_so_test oasm_$tree
run_dtc_test -I dts -O dtb -o $tree.test.dtb $tree
@@ -247,6 +248,8 @@ dtc_tests () {
run_wrap_test cmp oasm_$tree.test.dtb $tree.test.dtb
done
run_test value-labels ./oasm_value-labels.dts.test.so
# Check -Odts mode preserve all dtb information
for tree in test_tree1.dtb dtc_tree1.test.dtb dtc_escapes.test.dtb \
dtc_references.test.dtb; do