summaryrefslogtreecommitdiffstats
path: root/test/parser/test-grub2-if-formats.c
blob: cbf1afb57e7dd811e70dc1a2096133da5a85b2e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

#include "parser-test.h"

#if 0 /* PARSER_EMBEDDED_CONFIG */
if true;then t1=1;fi
if true ;then t2=2;fi
if true;then t3=3 ;fi
if true;then t4=4; ;fi
if true
then t5=5
fi
if true
then t6=6;
fi
if true
 then t7=7
fi
if true
then t8=8; fi
if true
then
t9=9

fi

menuentry $t1$t2$t3$t4$t5$t6$t7$t8$t9 {linux /vmlinux}
#endif

void run_test(struct parser_test *test)
{
	struct discover_boot_option *opt;

	test_read_conf_embedded(test, "/grub2/grub.cfg");

	test_run_parser(test, "grub2");

	check_boot_option_count(test->ctx, 1);
	opt = get_boot_option(test->ctx, 0);
	check_name(opt, "123456789");
}
OpenPOWER on IntegriCloud