added functional tests to make-check
This commit is contained in:
parent
6fc804ffbb
commit
169b1cd2d8
7 changed files with 41 additions and 41 deletions
|
@ -45,19 +45,16 @@ grub_functional_test (struct grub_extcmd *cmd __attribute__ ((unused)),
|
|||
int argc __attribute__ ((unused)),
|
||||
char **args __attribute__ ((unused)))
|
||||
{
|
||||
int i;
|
||||
int status;
|
||||
grub_test_t test;
|
||||
auto int run_test (grub_test_t test);
|
||||
int run_test (grub_test_t test)
|
||||
{
|
||||
grub_test_run (test);
|
||||
return 0;
|
||||
}
|
||||
|
||||
status = 0;
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
test = grub_named_list_find (GRUB_AS_NAMED_LIST (grub_test_list),
|
||||
args[i]);
|
||||
status = grub_test_run (test->name) ? : status;
|
||||
}
|
||||
|
||||
return status;
|
||||
grub_list_iterate (GRUB_AS_LIST (grub_test_list),
|
||||
(grub_list_hook_t) run_test);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
static grub_extcmd_t cmd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue