Mirror of DTC
Find a file
David Gibson 8d59bd3b17 dtc: Add basic testcases for dtc
This patch adds a handful of simple testcases for dtc.  It adds a dts
file which should generate the same sample tree as is used for the
libfdt testcases, and tests invoking dtc on this dts, plus the
standard batch of libfdt cases on the resulting dtb, which effectively
checks that the dtb is correct.

Because the test framework assumes each testcase is an executable with
the right output conventions, we use a little shell script, dtc.sh, as
a wrapper around dtc itself.  It simply invokes dtc and returns a PASS
or FAIL depending on whether dtc returned an error.

It's not much, but it's a start.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-09-18 08:40:36 -05:00
Documentation Add initial Device Tree Compiler manual 2007-08-09 15:58:47 -05:00
libfdt libfdt: Add fdt_node_offset_by_prop_value() 2007-09-17 13:18:09 -05:00
scripts Add DTC release version information. 2007-07-07 13:52:25 -05:00
tests dtc: Add basic testcases for dtc 2007-09-18 08:40:36 -05:00
.gitignore Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
comment-test.dts Initial label support. Also switch to glr-parser mode and get rid of 2005-06-16 14:36:37 +10:00
data.c dtc: store labels in ascending order 2007-07-07 10:14:12 -05:00
dtc-lexer.l dtc: allow a label: in any dts context 2007-07-07 10:10:12 -05:00
dtc-parser.y dtc: implement labels on property data 2007-07-07 10:13:31 -05:00
dtc.c dtc: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -05:00
dtc.h dtc: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -05:00
flat_dt.h Improve options, #define default version. 2007-03-19 08:54:40 -05:00
flattree.c dtc: Assume properties preced subnodes in the flattened tree 2007-09-05 13:17:14 -05:00
fstree.c Rework tracking of reserve entries during processing. This is initial work 2005-10-24 18:18:38 +10:00
ftdump.c ftdump missing be32_to_cpu() on size cell. 2007-03-22 08:30:52 -05:00
GPL dtc: Remove redundant copy of the GPL 2007-06-25 21:43:11 -05:00
livetree.c Remove bogus errors from check_chosen. 2007-03-26 08:34:23 -05:00
Makefile dtc: Optimise by default, fix warnings thus uncovered 2007-08-31 08:34:18 -05:00
srcpos.c DTC: Add support for a C-like #include "file" mechanism. 2007-03-26 08:36:07 -05:00
srcpos.h dtc: move declaration of yyerror 2007-07-07 10:07:27 -05:00
TODO Update TODO 2005-10-19 16:29:52 +10:00
treesource.c DTC: Add support for a C-like #include "file" mechanism. 2007-03-26 08:36:07 -05:00