This is the main test function for driver model but not for other tests.
Rename the file and the function so this is clear.
Signed-off-by: Simon Glass <sjg@chromium.org>
if (state->run_unittests) {
int ret;
- ret = dm_test_main(state->select_unittests);
+ ret = dm_test_run(state->select_unittests);
/* continue execution into U-Boot */
}
}
struct udevice *testbus_get_clear_removed(void);
/**
- * dm_test_main() - Run driver model tests
+ * dm_test_run() - Run driver model tests
*
* Run all the available driver model tests, or a selection
*
* "fdt_pre_reloc"), or NULL to run all
* @return 0 if all tests passed, 1 if not
*/
-int dm_test_main(const char *test_name);
+int dm_test_run(const char *test_name);
#endif /* __TEST_TEST_H */
#
# Copyright (c) 2013 Google, Inc
-obj-$(CONFIG_UT_DM) += test-main.o
+obj-$(CONFIG_UT_DM) += test-dm.o
# Tests for particular subsystems - when enabling driver model for a new
# subsystem you must add sandbox tests here.
return false;
}
-int dm_test_main(const char *test_name)
+int dm_test_run(const char *test_name)
{
struct unit_test *tests = ll_entry_start(struct unit_test, dm_test);
const int n_ents = ll_entry_count(struct unit_test, dm_test);
if (argc > 1)
test_name = argv[1];
- return dm_test_main(test_name);
+ return dm_test_run(test_name);
}