mirror of
https://github.com/dgibson/dtc.git
synced 2025-12-08 12:45:29 -05:00
Have tests read example tree from a generated file, rather than link it in.
This makes the tests more flexible to re-use for testing the output from the write tests.
This commit is contained in:
parent
3da0f9a10d
commit
4e6221c171
14 changed files with 158 additions and 32 deletions
|
|
@ -57,13 +57,14 @@ int check_subnode(struct fdt_header *fdt, int parent, const char *name)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct fdt_header *fdt = &_test_tree1;
|
||||
struct fdt_header *fdt;
|
||||
int subnode1_offset, subnode2_offset;
|
||||
int subnode1_offset_p, subnode2_offset_p;
|
||||
int subsubnode1_offset, subsubnode2_offset;
|
||||
int subsubnode1_offset_p, subsubnode2_offset_p;
|
||||
|
||||
test_init(argc, argv);
|
||||
fdt = load_blob_arg(argc, argv);
|
||||
|
||||
subnode1_offset = check_subnode(fdt, 0, "subnode1");
|
||||
subnode2_offset = check_subnode(fdt, 0, "subnode2");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue