]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-pxe-empty.c
discover/pxe: check for a valid boot option before adding
[petitboot] / test / parser / test-pxe-empty.c
diff --git a/test/parser/test-pxe-empty.c b/test/parser/test-pxe-empty.c
new file mode 100644 (file)
index 0000000..eb3b758
--- /dev/null
@@ -0,0 +1,19 @@
+
+#include "parser-test.h"
+
+#if 0 /* PARSER_EMBEDDED_CONFIG */
+
+#endif
+
+void run_test(struct parser_test *test)
+{
+       struct discover_context *ctx;
+
+       test_read_conf_embedded(test);
+       test_set_conf_source(test, "tftp://host/dir/conf.txt");
+       test_run_parser(test, "pxe");
+
+       ctx = test->ctx;
+
+       check_boot_option_count(ctx, 0);
+}