1 /* test a standard yocto syslinux wic cfg */
3 #include "parser-test.h"
5 #if 0 /* PARSER_EMBEDDED_CONFIG */
15 APPEND console=ttyS0,115200n8 console=tty0
18 void run_test(struct parser_test *test)
20 struct discover_boot_option *opt;
21 struct discover_context *ctx;
23 test_read_conf_embedded(test, "/syslinux.cfg");
25 test_run_parser(test, "syslinux");
29 check_boot_option_count(ctx, 1);
30 opt = get_boot_option(ctx, 0);
32 check_name(opt, "boot");
33 check_resolved_local_resource(opt->boot_image, ctx->device, "/vmlinuz");
34 check_is_default(opt);
35 check_args(opt, " console=ttyS0,115200n8 console=tty0");