1 /* test a standard yocto syslinux wic cfg */
3 #include "parser-test.h"
5 #if 0 /* PARSER_EMBEDDED_CONFIG */
14 KERNEL /backup/vmlinuz
22 void run_test(struct parser_test *test)
24 struct discover_boot_option *opt;
25 struct discover_context *ctx;
27 test_read_conf_embedded(test, "/boot/syslinux/syslinux.cfg");
29 test_run_parser(test, "syslinux");
33 check_boot_option_count(ctx, 1);
35 opt = get_boot_option(ctx, 0);
37 check_name(opt, "backup");
38 check_resolved_local_resource(opt->boot_image, ctx->device, "/backup/vmlinuz");
39 check_args(opt, "root=/dev/sdb");
40 check_resolved_local_resource(opt->initrd, ctx->device, "/boot/initrd");