2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
16 void run_test(struct parser_test *test)
18 struct discover_boot_option *opt;
19 struct discover_context *ctx;
21 test_read_conf_embedded(test);
22 test_run_parser(test, "yaboot");
26 check_boot_option_count(ctx, 2);
28 opt = get_boot_option(ctx, 0);
29 check_name(opt, "linux 1");
30 check_args(opt, "root=/dev/sda1");
32 opt = get_boot_option(ctx, 1);
33 check_name(opt, "linux 2");
34 check_args(opt, "root=/dev/sda2");