2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2010 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
24 #include <grub/list.h>
25 #include <grub/test.h>
26 #include <grub/handler.h>
29 main (int argc
__attribute__ ((unused
)),
30 char *argv
[] __attribute__ ((unused
)))
34 extern void grub_unit_test_init (void);
35 extern void grub_unit_test_fini (void);
37 auto int run_test (grub_test_t test
);
38 int run_test (grub_test_t test
)
40 status
= grub_test_run (test
) ? : status
;
44 grub_unit_test_init ();
45 grub_list_iterate (GRUB_AS_LIST (grub_test_list
),
46 (grub_list_hook_t
) run_test
);
47 grub_unit_test_fini ();
52 /* Other misc. functions necessary for successful linking. */
61 grub_env_get (const char *name
__attribute__ ((unused
)))
67 grub_error (grub_err_t n
, const char *fmt
, ...)
72 vfprintf (stderr
, fmt
, ap
);
79 grub_malloc (grub_size_t size
)
108 struct grub_handler_class grub_term_input_class
;
109 struct grub_handler_class grub_term_output_class
;