X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=test%2Fparser%2Ftest-grub2-noeol.c;fp=test%2Fparser%2Ftest-grub2-noeol.c;h=e2db85e72d8c91c5b737563ad9f287924f3fb610;hb=00a881a1adb6f656049939adecb9bf9edd29a658;hp=0000000000000000000000000000000000000000;hpb=46fbb1e1e33b130284ec211f9c647268ff709ba7;p=petitboot 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"); +}