of: Add device tree selftests
authorGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Dec 2011 16:25:57 +0000 (09:25 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 12 Dec 2011 20:40:16 +0000 (13:40 -0700)
commit53a42093d96ef5ede3b4f4cdb8f3256f27228ab0
tree7ed1bf6fc3b9aa764072a2969903b316fd333871
parent15c9a0acc3f7873db4b7d35d016729b2dc229b49
of: Add device tree selftests

Add some runtime test cases for the library of device tree parsing functions.

v2: - Add testcase for phandle with 0 args
    - Don't run testcases if testcase data isn't present in device tree

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/arm/boot/dts/testcases/tests-phandle.dtsi [new file with mode: 0644]
arch/arm/boot/dts/testcases/tests.dtsi [new file with mode: 0644]
arch/arm/boot/dts/versatile-pb.dts
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/selftest.c [new file with mode: 0644]