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:
David Gibson 2006-11-28 17:20:01 +11:00
parent 3da0f9a10d
commit 4e6221c171
14 changed files with 158 additions and 32 deletions

View file

@ -31,12 +31,13 @@
int main(int argc, char *argv[])
{
struct fdt_header *fdt = &_test_tree1;
struct fdt_header *fdt;
uint32_t *intp;
char *strp;
int err;
test_init(argc, argv);
fdt = load_blob_arg(argc, argv);
intp = check_getprop_typed(fdt, 0, "prop-int", TEST_VALUE_1);
verbose_printf("int value was 0x%08x\n", *intp);