Lines Matching refs:test
16 #include <kunit/test.h>
23 * @test: The test context object.
27 * This driver will automatically be cleaned up on test exit.
31 struct device_driver *kunit_driver_create(struct kunit *test, const char *name);
35 * @test: The test context object.
39 * and a corresponding driver. The device and driver will be cleaned up on test
44 * Return: a pointer to a struct device which will be cleaned up when the test
47 struct device *kunit_device_register(struct kunit *test, const char *name);
51 * @test: The test context object.
56 * name, and driver. The device will be cleaned up on test exit, or when
60 * Return: a pointer to a struct device which will be cleaned up when the test
63 struct device *kunit_device_register_with_driver(struct kunit *test,
69 * @test: The test context object which created the device
76 void kunit_device_unregister(struct kunit *test, struct device *dev);