Towards a better test runner.
This commit is contained in:
Behdad Esfahbod 2011-06-28 16:21:31 -04:00
parent cc674cbf7f
commit 2741316978
1 changed files with 9 additions and 1 deletions

View File

@ -63,6 +63,7 @@ typedef struct
const test_data_t tests[]; const test_data_t tests[];
} test_t; } test_t;
static const test_set_t tests_greek = { static const test_set_t tests_greek = {
{"DejaVuSans.ttf", 0}, {"DejaVuSans.ttf", 0},
{ {
@ -1062,13 +1063,20 @@ test_shape_complex (ft_fixture_t *f, gconstpointer user_data)
static void
add_test_set (const test_set_t *test_set, const char *set_name)
{
hb_test_add_fixture_flavor (ft_fixture, (const void *) test_set, set_name, test_shape_complex);
}
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
hb_test_init (&argc, &argv); hb_test_init (&argc, &argv);
#define TEST_SET(name) hb_test_add_fixture_flavor (ft_fixture, (const void *) &tests_##name, #name, test_shape_complex) #define TEST_SET(name) add_test_set (&tests_##name, #name)
TEST_SET (greek); TEST_SET (greek);