diff options
Diffstat (limited to 'test/parser/test-grub2-noeol.c')
-rw-r--r-- | test/parser/test-grub2-noeol.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/parser/test-grub2-noeol.c b/test/parser/test-grub2-noeol.c new file mode 100644 index 0000000..e2db85e --- /dev/null +++ b/test/parser/test-grub2-noeol.c @@ -0,0 +1,15 @@ + +#include "parser-test.h" + +void run_test(struct parser_test *test) +{ + const char data[] = "true"; + + test_add_file_data(test, test->ctx->device, "/boot/grub/grubenv", + data, sizeof(data)); + + __test_read_conf_data(test, test->ctx->device, + "/boot/grub/grub.cfg", data, sizeof(data)); + + test_run_parser(test, "grub2"); +} |