Home
last modified time | relevance | path

Searched refs:unittest (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.12.1/drivers/comedi/drivers/tests/
Dni_routes_test.c224 unittest(strncmp(devroutes->device, pci_6070e, 10) == 0, in test_ni_assign_device_routes()
226 unittest(devroutes->n_route_sets == 37, in test_ni_assign_device_routes()
228 unittest(devroutes->routes->dest == NI_PFI(0), in test_ni_assign_device_routes()
230 unittest(devroutes->routes->n_src == 1, in test_ni_assign_device_routes()
232 unittest(devroutes->routes->src[0] == NI_AI_StartTrigger, in test_ni_assign_device_routes()
234 unittest(devroutes->routes[10].dest == TRIGGER_LINE(0), in test_ni_assign_device_routes()
236 unittest(devroutes->routes[10].n_src == 10, in test_ni_assign_device_routes()
238 unittest(devroutes->routes[10].src[0] == NI_CtrSource(0), in test_ni_assign_device_routes()
240 unittest(route_set_dests_in_order(devroutes), in test_ni_assign_device_routes()
242 unittest(route_set_sources_in_order(devroutes), in test_ni_assign_device_routes()
[all …]
Dcomedi_example_test.c47 unittest(dev.item != 11, "negative result\n"); in test0()
48 unittest(dev.item == 10, "positive result\n"); in test0()
/linux-6.12.1/Documentation/devicetree/bindings/
Dunittest.txt1 1) OF unittest platform device
3 ** unittest
6 - compatible: must be "unittest"
11 unittest {
12 compatible = "unittest";
15 2) OF unittest i2c adapter platform device
17 ** platform device unittest adapter
20 - compatible: must be unittest-i2c-bus
22 Children nodes contain unittest i2c devices.
25 unittest-i2c-bus {
[all …]
/linux-6.12.1/drivers/of/
Dunittest.c41 #define unittest(result, fmt, ...) ({ \ macro
87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
94 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
98 unittest(np && name && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
105 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
112 unittest(!np, "trailing '/' on testcase-alias/ should fail\n"); in of_unittest_find_node_by_name()
116 unittest(np && name && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
122 unittest(!np, "non-existent path returned node %pOF\n", np); in of_unittest_find_node_by_name()
126 unittest(!np, "non-existent alias returned node %pOF\n", np); in of_unittest_find_node_by_name()
130 unittest(!np, "non-existent alias with relative path returned node %pOF\n", np); in of_unittest_find_node_by_name()
[all …]
DMakefile10 obj-$(CONFIG_OF_UNITTEST) += unittest.o
27 obj-$(CONFIG_OF_UNITTEST) += unittest-data/
/linux-6.12.1/drivers/of/unittest-data/
Dtests-overlay.dtsi13 compatible = "unittest";
19 compatible = "unittest";
25 compatible = "unittest";
31 compatible = "unittest";
37 compatible = "unittest";
43 compatible = "unittest";
49 compatible = "unittest";
55 compatible = "unittest";
61 compatible = "unittest";
67 compatible = "unittest";
[all …]
Doverlay_pci_node.dtso15 unittest-pci@100 {
16 compatible = "unittest-pci";
Doverlay_10.dtso14 compatible = "unittest";
22 compatible = "unittest";
Doverlay_11.dtso14 compatible = "unittest";
22 compatible = "unittest";
Doverlay_15.dtso13 compatible = "unittest-i2c-mux";
26 compatible = "unittest-i2c-dev";
Doverlay_17.dtso12 compatible = "unittest";
Doverlay_16.dtso12 compatible = "unittest";
Doverlay_19.dtso12 compatible = "unittest";
Doverlay_20.dtso12 compatible = "unittest";
Doverlay_18.dtso12 compatible = "unittest";
/linux-6.12.1/Documentation/translations/zh_CN/devicetree/
Dof_unittest.rst35 设备树源文件(drivers/of/unittest-data/testcases.dts)包含执行drivers/of/unittest.c
38 drivers/of/unittest-data/tests-interrupts.dtsi
39 drivers/of/unittest-data/tests-platform.dtsi
40 drivers/of/unittest-data/tests-phandle.dtsi
41 drivers/of/unittest-data/tests-match.dtsi
/linux-6.12.1/Documentation/devicetree/
Dof_unittest.rst12 This document explains how the test data required for executing OF unittest
30 If unittest detects a problem it will print a warning or error message to
32 kernel code as a result of intentionally bad unittest data. This has led
34 of a test or whether there is a real problem that is independent of unittest.
37 added to unittest to report that a warning or error is expected. The
51 The Device Tree Source file (drivers/of/unittest-data/testcases.dts) contains
53 drivers/of/unittest.c. Currently, following Device Tree Source Include files
56 drivers/of/unittest-data/tests-interrupts.dtsi
57 drivers/of/unittest-data/tests-platform.dtsi
58 drivers/of/unittest-data/tests-phandle.dtsi
[all …]
/linux-6.12.1/tools/perf/pmu-events/
Dmetric_test.py3 import unittest
11 class TestMetricExpressions(unittest.TestCase):
168 unittest.main()
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_bpftool.py10 import unittest
66 class TestBpftool(unittest.TestCase):
Dtest_bpftool.sh11 python3 -m unittest -v test_bpftool.TestBpftool
/linux-6.12.1/tools/testing/selftests/tpm2/
Dtpm2_tests.py9 import unittest
13 class SmokeTest(unittest.TestCase):
238 class SpaceTest(unittest.TestCase):
306 class AsyncTest(unittest.TestCase):
Dtest_space.sh9 python3 -m unittest -v tpm2_tests.SpaceTest 2>&1
Dtest_async.sh10 python3 -m unittest -v tpm2_tests.AsyncTest 2>&1
Dtest_smoke.sh11 python3 -m unittest -v tpm2_tests.SmokeTest 2>&1
/linux-6.12.1/tools/testing/kunit/
Dkunit_tool_test.py9 import unittest
10 from unittest import mock
41 class KconfigTest(unittest.TestCase):
82 class KUnitParserTest(unittest.TestCase):
368 class LineStreamTest(unittest.TestCase):
404 class LinuxSourceTreeTest(unittest.TestCase):
540 class KUnitJsonTest(unittest.TestCase):
585 class KUnitMainTest(unittest.TestCase):
847 unittest.main()

12