diff options
author | Stefan Mavrodiev <stefan@olimex.com> | 2019-11-11 10:04:44 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-11-15 20:42:47 +1100 |
commit | adcd676491ccbefc17da551cf911b2f4d7d330f6 (patch) | |
tree | 7baa22fbdc1279492480499e06dd23b2b525e5a4 /tests | |
parent | d9c55f855b65872e9cc74799499416414441c217 (diff) | |
download | dtc-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-x | tests/run_tests.sh | 4 |
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 |