]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-grub2-noeol.c
discover/grub2: improve handling of word & delimiter tokens
[petitboot] / test / parser / test-grub2-noeol.c
diff --git a/test/parser/test-grub2-noeol.c b/test/parser/test-grub2-noeol.c
new file mode 100644 (file)
index 0000000..e2db85e
--- /dev/null
@@ -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");
+}