mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
test: Update bootstd to do init from tests
Rather than having an init function and then running the tests, create a test-init function to do it. This will allow us to get rid of the command function. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
/* Declare a new bootdev test */
|
||||
#define BOOTSTD_TEST(_name, _flags) UNIT_TEST(_name, _flags, bootstd)
|
||||
#define BOOTSTD_TEST_INIT(_name, _flags) UNIT_TEST_INIT(_name, _flags, bootstd)
|
||||
|
||||
#define NVDATA_START_BLK ((0x400 + 0x400) / MMC_MAX_BLOCK_LEN)
|
||||
#define VERSION_START_BLK ((0x400 + 0x800) / MMC_MAX_BLOCK_LEN)
|
||||
@@ -35,15 +36,6 @@ struct unit_test_state;
|
||||
*/
|
||||
int bootstd_test_drop_bootdev_order(struct unit_test_state *uts);
|
||||
|
||||
/**
|
||||
* bootstd_setup_for_tests() - Set up MMC data for VBE tests
|
||||
*
|
||||
* Some data is needed for VBE tests to work. This function sets that up.
|
||||
*
|
||||
* @return 0 if OK, -ve on error
|
||||
*/
|
||||
int bootstd_setup_for_tests(void);
|
||||
|
||||
/**
|
||||
* bootstd_test_check_mmc_hunter() - Check that the mmc bootdev hunter was used
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user