aboutsummaryrefslogtreecommitdiff
path: root/core/test/run-device.c
AgeCommit message (Collapse)AuthorFilesLines
2016-08-18Build host programs (and checks) with debug enabledBenjamin Herrenschmidt1-1/+0
This enables memory poisoning in allocations and list checking among other things. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-01-21DT sorting testOliver O'Halloran1-0/+71
Moved the dt_dump() into test/dt_common.c so that it can be shared between hdata/test/hdata_to_dt.c and core/test/run-device.c run-device.c contains two tests, one basic sorting test and a generate-and-sort test. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> [stewart@linux.vnet.ibm.com: remove trailing whitespace] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-03-05core/test: Test compatible, chip id and phandle related DT functionsDaniel Axtens1-0/+56
Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-03-05core/test: Test more get/set functions in device.cDaniel Axtens1-0/+70
Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-03-05core/test: Use "" as the name of the device tree root node.Daniel Axtens1-11/+11
The device tree tests use "root" as the name of the root node. That leads to weird discrepancies between the reported path and the dt_find_by_path path. The empty string is already used as the root name in dt_expand. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-03-05core/test: Test that device paths/names function as expected.Daniel Axtens1-4/+61
Test dt_get_path/dt_find_by_name/dt_find_by_path all respond as expected. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-07-02Initial commit of Open Source releaseBenjamin Herrenschmidt1-0/+118
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>