Skip to content

Commit 9a93fd5

Browse files
committed
Test the parsing of spec.yaml
1 parent 19a6aab commit 9a93fd5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modulemd/test-modulemd-yaml.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ modulemd_yaml_test_parse_file (YamlFixture *fixture, gconstpointer user_data)
7676
g_assert_false (modules);
7777
g_assert_true (error);
7878
g_assert_cmpstr (error->message, ==, "Unknown document type");
79+
g_clear_error (&error);
80+
81+
/* Validate the official reference YAML */
82+
g_info ("Reference YAML");
83+
yaml_path =
84+
g_strdup_printf ("%s/spec.yaml", g_getenv ("MESON_SOURCE_ROOT"));
85+
modules = parse_yaml_file (yaml_path, &error);
86+
g_assert_true (modules);
7987
}
8088

8189
static void

0 commit comments

Comments
 (0)