1 #include "parser-test.h"
3 /* Test that an absent parameter in one boot option doesn't get set by a
6 #if 0 /* PARSER_EMBEDDED_CONFIG */
15 void run_test(struct parser_test *test)
17 struct discover_boot_option *opt;
18 struct discover_context *ctx;
20 test_read_conf_embedded(test, "/etc/yaboot.conf");
22 test_run_parser(test, "yaboot");
26 check_boot_option_count(ctx, 2);
28 opt = get_boot_option(ctx, 0);
29 check_name(opt, "one");
30 check_args(opt, "console=XXXX");
32 opt = get_boot_option(ctx, 1);
33 check_name(opt, "two");