1 #include "parser-test.h"
3 #if 0 /* PARSER_EMBEDDED_CONFIG */
11 void run_test(struct parser_test *test)
13 struct discover_boot_option *opt;
14 struct discover_context *ctx;
15 struct discover_device *dev;
17 test_read_conf_embedded(test, "/yaboot.conf");
19 test_run_parser(test, "yaboot");
23 check_boot_option_count(ctx, 1);
25 opt = get_boot_option(ctx, 0);
27 check_name(opt, "linux");
28 check_unresolved_resource(opt->boot_image);
30 dev = test_create_device(test, "sda2");
31 test_hotplug_device(test, dev);
33 check_resolved_local_resource(opt->boot_image, dev, "/vmlinux");