Create a sublibrary for the tag testing. I'll probably do this for all components going forward.
Pretty much just reimplemented the tests that were created for check with gtester and ctest
1 #ifndef GPLATE_TAG_TEST_H
2 #define GPLATE_TAG_TEST_H
4 #include <gplate/gplate.h>
8 #define gplate_tag_test_add(path, func) \
9 g_test_add((path), GPlateTagTestFixture, NULL, gplate_tag_test_setup, (func), gplate_tag_test_teardown)
11 typedef struct _GPlateTagTestFixture GPlateTagTestFixture;
13 typedef void (*GPlateTagTestFixtureFunc)(GPlateTagTestFixture *fixture, gconstpointer data);
15 struct _GPlateTagTestFixture {
16 GPlateTemplate *template;
19 const gchar *template_string;
21 const gchar *expected;
27 void gplate_tag_test_setup(GPlateTagTestFixture *fixture, gconstpointer data);
28 void gplate_tag_test_teardown(GPlateTagTestFixture *fixture, gconstpointer data);
29 void gplate_tag_test_output(GPlateTagTestFixture *fixture, gconstpointer data);
33 #endif /* GPLATE_TAG_TEST_H */