2 #include "parser-test.h"
4 #if 0 /* PARSER_EMBEDDED_CONFIG */
7 image=external:/vmlinux
9 initrd=external:/initrd
12 void run_test(struct parser_test *test)
14 struct discover_boot_option *opt;
15 struct discover_context *ctx;
16 struct discover_device *dev;
18 test_read_conf_embedded(test, "/yaboot.conf");
20 test_run_parser(test, "yaboot");
24 check_boot_option_count(ctx, 1);
26 opt = get_boot_option(ctx, 0);
28 check_name(opt, "linux");
29 check_unresolved_resource(opt->boot_image);
30 check_unresolved_resource(opt->initrd);
32 dev = test_create_device(test, "external");
33 test_hotplug_device(test, dev);
35 check_resolved_local_resource(opt->boot_image, dev, "/vmlinux");
36 check_resolved_local_resource(opt->initrd, dev, "/initrd");