[PATCH 0/2] Add infrastructure for devicetree tests
Jeremy Kerr
jk at ozlabs.org
Tue Apr 19 08:36:56 UTC 2016
Hi all,
This series is a resend of my earlier device-tree test series, with a
rework to allow multiple tests to consume device tree data without
having to load it from (from /sys/firmware/device-tree) multiple times.
Patch 1 introduces the actual infrastructure, while patch 2 implements a
couple of simple tests that use this; mainly as a demonstration of the
functionality.
The core of the change is a new member for the 'fwts_framework' type,
(void *fdt), a pointer to flattened-device tree data. We load this
before running tests, and link with libfdt to allow tests to query the
data.
I'm not sure where it'd be best to perform the once-off load of the
device-tree data; if there's somewhere more suitable, I'm happy to
change it.
Questions & comments most welcome.
Cheers,
Jeremy
More information about the fwts-devel
mailing list