summaryrefslogtreecommitdiff
path: root/tests/node_check_compatible.c
AgeCommit message (Collapse)Author
2019-06-21tests: Replace license boilerplate with SPDX tags Rob Herring
Replace instances in tests of mostly LGPL-2.1 license boilerplate with SPDX tags. Signed-off-by: Rob Herring <robh@kernel.org> Message-Id: <20190620211944.9378-5-robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2017-10-30tests: Check non-matching cases for fdt_node_check_compatible() David Gibson
The current tests for fdt_node_check_compatible() test that it returns true on several matching cases, but don't test that it actually returns false on some non-matching cases, which isn't great coverage. Add some basic tests to address that. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2013-01-06dtc/tests: don't include fdt.h prior to libfdt.h Kim Phillips
tests will need fdt type definitions provided in a subsequent patch to libfdt_env.h. Since libfdt.h includes libfdt_env.h in the right order anyway, just remove the fdt.h include. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
2008-08-13dtc: Make many functions 'static' David Gibson
This patch marks various functions not shared between c files 'static', as they should be. There are a couple of functions in dtc, and many in the testsuite. This is *almost* enough to enable the -Wmissing-prototypes warning. It's not quite enough, because there's a mess of junk in the flex generated code which triggers that warning which I'm not yet sure how to deal with. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-10-17dtc: Restore missing code for testcases David Gibson
Recent commits 333542fabf8720b881e992a5abca32ef4bcb841a and fd1bf3a5ae46962528ef89a824261a88830758a2 added new testcases to dtc. However, although the testcases were added to the Makefile and run_tests.sh, one of the .c files for the testcase was omitted from the patch in each case. This patch restores the missing testcase code. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>