]> git.ozlabs.org Git - petitboot/blob - test/parser/test-syslinux-single-yocto.c
test/lib: Add OpenSSL verify and decrypt tests
[petitboot] / test / parser / test-syslinux-single-yocto.c
1 /* test a standard yocto syslinux wic cfg */
2
3 #include "parser-test.h"
4
5 #if 0 /* PARSER_EMBEDDED_CONFIG */
6 PROMPT 0
7 TIMEOUT 0
8
9 ALLOWOPTIONS 1
10 SERIAL 0 115200
11
12 DEFAULT boot
13 LABEL boot
14 KERNEL /vmlinuz
15 APPEND console=ttyS0,115200n8 console=tty0
16 #endif
17
18 void run_test(struct parser_test *test)
19 {
20         struct discover_boot_option *opt;
21         struct discover_context *ctx;
22
23         test_read_conf_embedded(test, "/syslinux.cfg");
24
25         test_run_parser(test, "syslinux");
26
27         ctx = test->ctx;
28
29         check_boot_option_count(ctx, 1);
30         opt = get_boot_option(ctx, 0);
31
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");
36 }