aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Mavrodiev <stefan@olimex.com>2019-11-11 10:04:44 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2019-11-15 20:42:47 +1100
commitadcd676491ccbefc17da551cf911b2f4d7d330f6 (patch)
tree7baa22fbdc1279492480499e06dd23b2b525e5a4 /tests
parentd9c55f855b65872e9cc74799499416414441c217 (diff)
downloaddtc-adcd676491ccbefc17da551cf911b2f4d7d330f6.zip
dtc-adcd676491ccbefc17da551cf911b2f4d7d330f6.tar.gz
dtc-adcd676491ccbefc17da551cf911b2f4d7d330f6.tar.bz2
Add test-case for trailing zero
If there is trailing zero, fdtget adds extra chacarter to the property value. Thus comparing the expected with the actual value, an error is emitted. Signed-off-by: Stefan Mavrodiev <stefan@olimex.com> Message-Id: <20191111080444.9819-3-stefan@olimex.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run_tests.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index a0a5245..06bbccb 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -944,6 +944,10 @@ fdtoverlay_tests() {
# test that baz correctly inserted the property
run_fdtoverlay_test baz "/foonode/barnode/baznode" "baz-property" "-ts" ${stacked_basedtb} ${stacked_targetdtb} ${stacked_bardtb} ${stacked_bazdtb}
+ # test that bar and baz are correctly appended to __symbols__
+ run_fdtoverlay_test "/foonode/barnode" "/__symbols__" "bar" "-ts" ${stacked_basedtb} ${stacked_targetdtb} ${stacked_bardtb}
+ run_fdtoverlay_test "/foonode/barnode/baznode" "/__symbols__" "baz" "-ts" ${stacked_basedtb} ${stacked_targetdtb} ${stacked_bardtb} ${stacked_bazdtb}
+
overlay_long_path="$SRCDIR/overlay_overlay_long_path.dts"
overlay_long_pathdtb=overlay_overlay_long_path.fdoverlay.test.dtb
target_long_pathdtb=overlay_overlay_long_path_target.fdoverlay.test.dtb