[PATCH v2 0/2] devicetree: add infrastructure for device-tree tests

Jeremy Kerr jk at ozlabs.org
Wed Apr 20 01:42:48 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

v2:
 - Handle NULL device-tree pointer in initial tests
 - Add Acks from Colin



More information about the fwts-devel mailing list