Home
last modified time | relevance | path

Searched +full:- +full:- +full:test (Results 1 – 25 of 1095) sorted by relevance

12345678910>>...44

/openbmc/qemu/tests/qtest/
H A Dmeson.build2 'ahci-test': 150,
3 'aspeed_smc-test': 360,
4 'bios-tables-test' : 910,
5 'cdrom-test' : 610,
6 'device-introspect-test' : 720,
7 'ide-test' : 120,
8 'migration-test' : 480,
9 'npcm7xx_pwm-test': 300,
10 'npcm7xx_watchdog_timer-test': 120,
11 'qmp-cmd-test' : 120,
[all …]
H A Dendianness-test.c10 * See the COPYING file in the top-level directory.
29 { "i386", "pc", -1 },
41 { "ppc64", "pseries-2.7", 0x10080000000ULL,
46 { "x86_64", "pc", -1 },
50 static uint8_t isa_inb(QTestState *qts, const TestCase *test, uint16_t addr) in isa_inb() argument
53 if (test->isa_base == -1) { in isa_inb()
56 value = qtest_readb(qts, test->isa_base + addr); in isa_inb()
61 static uint16_t isa_inw(QTestState *qts, const TestCase *test, uint16_t addr) in isa_inw() argument
64 if (test->isa_base == -1) { in isa_inw()
67 value = qtest_readw(qts, test->isa_base + addr); in isa_inw()
[all …]
/openbmc/phosphor-dbus-monitor/src/example/
H A Dtest.yaml1 # Test PDM configuration file. This file validates that all
6 - name: test path group
10 - meta: PATH
12 - meta: PATH
14 - meta: PATH
16 - meta: PATH
19 - name: test byte property group
24 - interface: xyz.openbmc_project.byteIface
28 - name: test u16 property group
33 - interface: xyz.openbmc_project.U16Iface
[all …]
/openbmc/qemu/tests/unit/
H A Dmeson.build5 'check-block-qdict': [],
6 'check-qdict': [],
7 'check-qnum': [],
8 'check-qstring': [],
9 'check-qlist': [],
10 'check-qnull': [],
11 'check-qobject': [],
12 'check-qjson': [],
13 'check-qlit': [],
14 'test-error-report': [],
[all …]
/openbmc/linux/tools/build/feature/
H A DMakefile1 # SPDX-License-Identifier: GPL-2.0
5 test-all.bin \
6 test-backtrace.bin \
7 test-bionic.bin \
8 test-dwarf.bin \
9 test-dwarf_getlocations.bin \
10 test-eventfd.bin \
11 test-fortify-source.bin \
12 test-get_current_dir_name.bin \
13 test-glibc.bin \
[all …]
/openbmc/linux/lib/kunit/
H A Dkunit-test.c1 // SPDX-License-Identifier: GPL-2.0
3 * KUnit test for core test infrastructure.
8 #include <kunit/test.h>
9 #include <kunit/test-bug.h>
11 #include "try-catch-impl.h"
20 struct kunit *test = data; in kunit_test_successful_try() local
21 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_successful_try()
23 ctx->function_called = true; in kunit_test_successful_try()
28 struct kunit *test = data; in kunit_test_no_catch() local
30 KUNIT_FAIL(test, "Catch should not be called\n"); in kunit_test_no_catch()
[all …]
H A Dexecutor_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * KUnit test for the KUnit executor.
9 #include <kunit/test.h>
12 static void free_suite_set_at_end(struct kunit *test, const void *to_free);
13 static struct kunit_suite *alloc_fake_suite(struct kunit *test,
17 static void dummy_test(struct kunit *test) {} in dummy_test() argument
20 /* .run_case is not important, just needs to be non-NULL */
26 static void parse_filter_test(struct kunit *test) in parse_filter_test() argument
31 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test()
32 KUNIT_EXPECT_FALSE(test, filter.test_glob); in parse_filter_test()
[all …]
/openbmc/linux/tools/testing/kunit/
H A Dkunit_parser.py1 # SPDX-License-Identifier: GPL-2.0
3 # Parses KTAP test results from a kernel dmesg log and incrementally prints
4 # results with reader-friendly format. Stores and returns test results in a
5 # Test object.
22 class Test: class
24 A class to represent a test parsed from KTAP results. All KTAP
25 results within a test log are stored in a main Test object as
29 status : TestStatus - status of the test
30 name : str - name of the test
31 expected_count : int - expected number of subtests (0 if single
[all …]
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_proto_test.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <kunit/test.h>
26 static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_normal() argument
28 struct cros_ec_proto_test_priv *priv = test->priv; in cros_ec_proto_test_prepare_tx_legacy_normal()
29 struct cros_ec_device *ec_dev = &priv->ec_dev; in cros_ec_proto_test_prepare_tx_legacy_normal()
30 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_legacy_normal()
34 ec_dev->proto_version = 2; in cros_ec_proto_test_prepare_tx_legacy_normal()
36 msg->command = EC_CMD_HELLO; in cros_ec_proto_test_prepare_tx_legacy_normal()
37 msg->outsize = EC_PROTO2_MAX_PARAM_SIZE; in cros_ec_proto_test_prepare_tx_legacy_normal()
38 msg->data[0] = 0xde; in cros_ec_proto_test_prepare_tx_legacy_normal()
[all …]
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_format_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * Test cases for the drm_format functions
8 #include <kunit/test.h>
12 static void drm_test_format_block_width_invalid(struct kunit *test) in drm_test_format_block_width_invalid() argument
16 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 0); in drm_test_format_block_width_invalid()
17 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, -1), 0); in drm_test_format_block_width_invalid()
18 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 1), 0); in drm_test_format_block_width_invalid()
21 static void drm_test_format_block_width_one_plane(struct kunit *test) in drm_test_format_block_width_one_plane() argument
25 KUNIT_ASSERT_NOT_NULL(test, info); in drm_test_format_block_width_one_plane()
27 KUNIT_EXPECT_EQ(test, drm_format_info_block_width(info, 0), 1); in drm_test_format_block_width_one_plane()
[all …]
H A Ddrm_cmdline_parser_test.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <kunit/test.h>
14 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only() argument
19 KUNIT_ASSERT_TRUE(test, drm_mode_parse_command_line_for_connector(cmdline, in drm_test_cmdline_force_e_only()
21 KUNIT_EXPECT_FALSE(test, mode.specified); in drm_test_cmdline_force_e_only()
22 KUNIT_EXPECT_FALSE(test, mode.refresh_specified); in drm_test_cmdline_force_e_only()
23 KUNIT_EXPECT_FALSE(test, mode.bpp_specified); in drm_test_cmdline_force_e_only()
25 KUNIT_EXPECT_FALSE(test, mode.rb); in drm_test_cmdline_force_e_only()
26 KUNIT_EXPECT_FALSE(test, mode.cvt); in drm_test_cmdline_force_e_only()
27 KUNIT_EXPECT_FALSE(test, mode.interlace); in drm_test_cmdline_force_e_only()
[all …]
/openbmc/qemu/tests/tcg/i386/
H A DMakefile.target8 config-cc.mak: Makefile
9 $(quiet-@)( \
10 $(call cc-option,-fno-pie, CROSS_CC_HAS_I386_NOPIE)) 3> config-cc.mak
12 -include config-cc.mak
16 SKIP_I386_TESTS=test-i386-ssse3 test-avx test-3dnow test-mmx test-flags
17 X86_64_TESTS:=$(filter test-i386-adcox test-i386-bmi2 $(SKIP_I386_TESTS), $(ALL_X86_TESTS))
19 test-i386-sse-exceptions: CFLAGS += -msse4.1 -mfpmath=sse
20 run-test-i386-sse-exceptions: QEMU_OPTS += -cpu max
22 test-i386-pcmpistri: CFLAGS += -msse4.2
23 run-test-i386-pcmpistri: QEMU_OPTS += -cpu max
[all …]
/openbmc/linux/drivers/base/test/
H A Dproperty-entry-test.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <kunit/test.h>
10 static void pe_test_uints(struct kunit *test) in pe_test_uints() argument
13 PROPERTY_ENTRY_U8("prop-u8", 8), in pe_test_uints()
14 PROPERTY_ENTRY_U16("prop-u16", 16), in pe_test_uints()
15 PROPERTY_ENTRY_U32("prop-u32", 32), in pe_test_uints()
16 PROPERTY_ENTRY_U64("prop-u64", 64), in pe_test_uints()
28 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints()
30 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints()
31 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints()
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-gate_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * Kunit test for clk gate basic type
6 #include <linux/clk-provider.h>
9 #include <kunit/test.h>
11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev() argument
16 pdev = platform_device_register_simple("test_gate_device", -1, NULL, 0); in clk_gate_register_test_dev()
17 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); in clk_gate_register_test_dev()
19 ret = clk_hw_register_gate(&pdev->dev, "test_gate", NULL, 0, NULL, in clk_gate_register_test_dev()
21 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_dev()
22 KUNIT_EXPECT_STREQ(test, "test_gate", clk_hw_get_name(ret)); in clk_gate_register_test_dev()
[all …]
H A Dclk_test.c1 // SPDX-License-Identifier: GPL-2.0
3 * Kunit test for clk rate management
6 #include <linux/clk-provider.h>
11 #include <kunit/test.h>
28 return ctx->rate; in clk_dummy_recalc_rate()
45 if (req->max_rate < ULONG_MAX) in clk_dummy_maximize_rate()
46 req->rate = req->max_rate; in clk_dummy_maximize_rate()
58 if (req->min_rate > 0) in clk_dummy_minimize_rate()
59 req->rate = req->min_rate; in clk_dummy_minimize_rate()
71 ctx->rate = rate; in clk_dummy_set_rate()
[all …]
/openbmc/linux/tools/pci/
H A Dpcitest.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Userspace PCI Endpoint Test Module
22 static char *irq[] = { "LEGACY", "MSI", "MSI-X" };
41 static int run_test(struct pci_test *test) in run_test() argument
44 int ret = -EINVAL; in run_test()
47 fd = open(test->device, O_RDWR); in run_test()
49 perror("can't open PCI Endpoint Test device"); in run_test()
50 return -ENODEV; in run_test()
53 if (test->barnum >= 0 && test->barnum <= 5) { in run_test()
54 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test()
[all …]
/openbmc/linux/drivers/thunderbolt/
H A Dtest.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <kunit/test.h>
20 res->data = ida; in __ida_init()
26 struct ida *ida = res->data; in __ida_destroy()
31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init() argument
33 kunit_alloc_resource(test, __ida_init, __ida_destroy, GFP_KERNEL, ida); in kunit_ida_init()
36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch() argument
43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL); in alloc_switch()
47 sw->config.upstream_port_number = upstream_port; in alloc_switch()
48 sw->config.depth = tb_route_length(route); in alloc_switch()
[all …]
/openbmc/u-boot/test/py/tests/
H A Dtest_hush_if_test.py1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved.
4 # Test operation of the "if" shell command.
12 # The list of "if test" conditions to test.
21 ('test aaa = aaa', True),
22 ('test aaa = bbb', False),
24 ('test aaa != bbb', True),
25 ('test aaa != aaa', False),
27 ('test aaa < bbb', True),
28 ('test bbb < aaa', False),
[all …]
/openbmc/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_pool_test.c1 // SPDX-License-Identifier: GPL-2.0 AND MIT
30 static int ttm_pool_test_init(struct kunit *test) in ttm_pool_test_init() argument
34 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL); in ttm_pool_test_init()
35 KUNIT_ASSERT_NOT_NULL(test, priv); in ttm_pool_test_init()
37 priv->devs = ttm_test_devices_basic(test); in ttm_pool_test_init()
38 test->priv = priv; in ttm_pool_test_init()
43 static void ttm_pool_test_fini(struct kunit *test) in ttm_pool_test_fini() argument
45 struct ttm_pool_test_priv *priv = test->priv; in ttm_pool_test_fini()
47 ttm_test_devices_put(test, priv->devs); in ttm_pool_test_fini()
50 static struct ttm_tt *ttm_tt_kunit_init(struct kunit *test, in ttm_tt_kunit_init() argument
[all …]
/openbmc/linux/security/apparmor/
H A Dpolicy_unpack_test.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <kunit/test.h>
55 struct kunit *test, size_t buf_size) in build_aa_ext_struct() argument
60 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct()
61 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, buf); in build_aa_ext_struct()
63 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct()
64 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, e); in build_aa_ext_struct()
66 e->start = buf; in build_aa_ext_struct()
67 e->end = e->start + buf_size; in build_aa_ext_struct()
68 e->pos = e->start; in build_aa_ext_struct()
[all …]
/openbmc/linux/mm/kasan/
H A Dkasan_test.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <kunit/test.h>
63 return -1; in kasan_suite_init()
70 * Temporarily enable multi-shot mode. Otherwise, KASAN would only in kasan_suite_init()
88 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() argument
90 KUNIT_EXPECT_FALSE(test, READ_ONCE(test_status.report_found)); in kasan_test_exit()
94 * KUNIT_EXPECT_KASAN_FAIL() - check that the executed expression produces a
95 * KASAN report; causes a test failure otherwise. This relies on a KUnit
99 * For hardware tag-based KASAN, when a synchronous tag fault happens, tag
100 * checking is auto-disabled. When this happens, this test handler reenables
[all …]
/openbmc/linux/include/kunit/
H A Dtest.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Base unit test (KUnit) API.
13 #include <kunit/try-catch.h>
37 /* Size of log associated with test. */
48 * sub-subtest. See the "Subtests" section in
49 * https://node-tap.org/tap-protocol/
56 * enum kunit_status - Type of result for a test or test suite
57 * @KUNIT_SUCCESS: Denotes the test suite has not failed nor been skipped
58 * @KUNIT_FAILURE: Denotes the test has failed.
59 * @KUNIT_SKIPPED: Denotes the test has been skipped.
[all …]
/openbmc/linux/drivers/misc/
H A Dpci_endpoint_test.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Host side test driver to test endpoint functionality
28 #define DRV_MODULE_NAME "pci-endpoint-test"
30 #define IRQ_TYPE_UNDEFINED -1
79 ((pdev)->device == PCI_DEVICE_ID_TI_AM654)
98 MODULE_PARM_DESC(irq_type, "IRQ mode selection in pci_endpoint_test (0 - Legacy, 1 - MSI, 2 - MSI-X…
131 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl() argument
134 return readl(test->base + offset); in pci_endpoint_test_readl()
137 static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, in pci_endpoint_test_writel() argument
140 writel(value, test->base + offset); in pci_endpoint_test_writel()
[all …]
/openbmc/linux/lib/
H A Dlist-test.c1 // SPDX-License-Identifier: GPL-2.0
3 * KUnit test for the Kernel Linked-list structures.
8 #include <kunit/test.h>
18 static void list_test_list_init(struct kunit *test) in list_test_list_init() argument
20 /* Test the different ways of initialising a list. */ in list_test_list_init()
37 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list1)); in list_test_list_init()
38 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_init()
39 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list3)); in list_test_list_init()
40 KUNIT_EXPECT_TRUE(test, list_empty_careful(list4)); in list_test_list_init()
41 KUNIT_EXPECT_TRUE(test, list_empty_careful(list5)); in list_test_list_init()
[all …]
/openbmc/linux/Documentation/dev-tools/kunit/
H A Dusage.rst1 .. SPDX-License-Identifier: GPL-2.0
6 Test Cases
7 ----------
9 The fundamental unit in KUnit is the test case. A test case is a function with
10 the signature ``void (*)(struct kunit *test)``. It calls the function under test
13 .. code-block:: c
15 void example_test_success(struct kunit *test)
19 void example_test_failure(struct kunit *test)
21 KUNIT_FAIL(test, "This test never passes.");
27 which is a special expectation that logs a message and causes the test case to
[all …]

12345678910>>...44