diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2014-02-17 00:05:40 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2014-03-03 10:51:50 +1100 |
commit | 827ac8eca016c39b13fc916bbdb16f9f2fe3c34c (patch) | |
tree | e7369759973f262d99a57641c1d503d7d15e379e /tests/run_tests.sh | |
parent | 9a8a1f41dd1ba0d8612f2177ec58e22eff312055 (diff) | |
download | device-tree-compiler-827ac8eca016c39b13fc916bbdb16f9f2fe3c34c.tar.gz |
Implement string concatenate and repeat operatorsexpressions
This patch exercises the new expression infrastructure to implement syntax
to concatenate and repeat strings. We use syntax inspired by Python,
with '+' overloaded for string concatenation and '*' overloaded for string
repeat. Normally we'd use C syntax to inspire dts syntax, but C has no
obvious candidates for these string operators.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/run_tests.sh')
-rwxr-xr-x | tests/run_tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 97e016b..44de059 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -446,6 +446,11 @@ dtc_tests () { run_dtc_test -I dts -O dtb -o integer-expressions.test.dtb integer-expressions.test.dts run_test integer-expressions integer-expressions.test.dtb + # Check string expresisons + run_test string-expressions -g string-expressions.test.dts + run_dtc_test -I dts -O dtb -o string-expressions.test.dtb string-expressions.test.dts + run_test string-expressions string-expressions.test.dtb + # Check for graceful failure in some error conditions run_sh_test dtc-fatal.sh -I dts -O dtb nosuchfile.dts run_sh_test dtc-fatal.sh -I dtb -O dtb nosuchfile.dtb |