Lines Matching refs:uts
24 static int dm_test_init(struct unit_test_state *uts, bool of_live) in dm_test_init() argument
26 struct dm_test_state *dms = uts->priv; in dm_test_init()
35 gd->of_root = of_live ? uts->of_root : NULL; in dm_test_init()
44 static int do_autoprobe(struct unit_test_state *uts) in do_autoprobe() argument
58 static int dm_test_destroy(struct unit_test_state *uts) in dm_test_destroy() argument
78 static int dm_do_test(struct unit_test_state *uts, struct unit_test *test, in dm_do_test() argument
86 ut_assertok(dm_test_init(uts, of_live)); in dm_do_test()
88 uts->start = mallinfo(); in dm_do_test()
92 ut_assertok(do_autoprobe(uts)); in dm_do_test()
103 test->func(uts); in dm_do_test()
107 ut_assertok(dm_test_destroy(uts)); in dm_do_test()
131 struct unit_test_state *uts = &global_dm_test_state; in dm_test_main() local
135 uts->priv = &_global_priv_dm_test_state; in dm_test_main()
136 uts->fail_count = 0; in dm_test_main()
153 uts->of_root = gd->of_root; in dm_test_main()
169 ut_assertok(dm_do_test(uts, test, true)); in dm_test_main()
180 ut_assertok(dm_do_test(uts, test, false)); in dm_test_main()
189 printf("Failures: %d\n", uts->fail_count); in dm_test_main()
196 return uts->fail_count ? CMD_RET_FAILURE : 0; in dm_test_main()