of/unittest: Rename selftest.c to unittest.c
authorGrant Likely <grant.likely@linaro.org>
Tue, 4 Nov 2014 13:24:45 +0000 (13:24 +0000)
committerGrant Likely <grant.likely@linaro.org>
Tue, 4 Nov 2014 16:43:07 +0000 (16:43 +0000)
This is unit testing code. It should use that name because it makes more
sense than 'selftest'. Rename the files to match and rename the config
variable.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/Kconfig
drivers/of/Makefile
drivers/of/unittest-data/testcases.dts [moved from drivers/of/testcase-data/testcases.dts with 100% similarity]
drivers/of/unittest-data/tests-interrupts.dtsi [moved from drivers/of/testcase-data/tests-interrupts.dtsi with 100% similarity]
drivers/of/unittest-data/tests-match.dtsi [moved from drivers/of/testcase-data/tests-match.dtsi with 100% similarity]
drivers/of/unittest-data/tests-phandle.dtsi [moved from drivers/of/testcase-data/tests-phandle.dtsi with 100% similarity]
drivers/of/unittest-data/tests-platform.dtsi [moved from drivers/of/testcase-data/tests-platform.dtsi with 100% similarity]
drivers/of/unittest.c [moved from drivers/of/selftest.c with 100% similarity]

index 1a13f5b..be16ce2 100644 (file)
@@ -7,8 +7,8 @@ config OF
 menu "Device Tree and Open Firmware support"
        depends on OF
 
-config OF_SELFTEST
-       bool "Device Tree Runtime self tests"
+config OF_UNITTEST
+       bool "Device Tree runtime unit tests"
        depends on OF_IRQ && OF_EARLY_FLATTREE
        select OF_DYNAMIC
        select OF_RESOLVE
index ca9209c..d90553f 100644 (file)
@@ -6,8 +6,8 @@ obj-$(CONFIG_OF_PROMTREE) += pdt.o
 obj-$(CONFIG_OF_ADDRESS)  += address.o
 obj-$(CONFIG_OF_IRQ)    += irq.o
 obj-$(CONFIG_OF_NET)   += of_net.o
-obj-$(CONFIG_OF_SELFTEST) += of_selftest.o
-of_selftest-objs := selftest.o testcase-data/testcases.dtb.o
+obj-$(CONFIG_OF_UNITTEST) += of_unittest.o
+of_unittest-objs := unittest.o unittest-data/testcases.dtb.o
 obj-$(CONFIG_OF_MDIO)  += of_mdio.o
 obj-$(CONFIG_OF_PCI)   += of_pci.o
 obj-$(CONFIG_OF_PCI_IRQ)  += of_pci_irq.o
similarity index 100%
rename from drivers/of/selftest.c
rename to drivers/of/unittest.c