summaryrefslogtreecommitdiffstats
path: root/test/parser/test-grub2-f20-ppc64.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-28 09:42:28 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-30 21:59:10 +0800
commitd239d484e3d34da52024f6e97e7046774d7b299d (patch)
tree759f16e894854ab924bde5d02bf711834383ffd7 /test/parser/test-grub2-f20-ppc64.c
parent1b272c7d47390077eee0a0638329b1a7df521329 (diff)
downloadtalos-petitboot-d239d484e3d34da52024f6e97e7046774d7b299d.tar.gz
talos-petitboot-d239d484e3d34da52024f6e97e7046774d7b299d.zip
test/parser: Add Fedora 20 ppc64 parser testcase
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/test-grub2-f20-ppc64.c')
-rw-r--r--test/parser/test-grub2-f20-ppc64.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/parser/test-grub2-f20-ppc64.c b/test/parser/test-grub2-f20-ppc64.c
new file mode 100644
index 0000000..fdba933
--- /dev/null
+++ b/test/parser/test-grub2-f20-ppc64.c
@@ -0,0 +1,18 @@
+
+#include "parser-test.h"
+
+void run_test(struct parser_test *test)
+{
+ struct discover_context *ctx;
+
+ test_add_dir(test, test->ctx->device, "/ppc/ppc64");
+
+ test_read_conf_file(test, "grub2-f20-ppc.conf",
+ "/boot/grub/grub.cfg");
+
+ test_run_parser(test, "grub2");
+
+ ctx = test->ctx;
+
+ check_boot_option_count(ctx, 3);
+}
OpenPOWER on IntegriCloud