ali@0: #ifndef TESTCASE_H ali@0: #define TESTCASE_H ali@0: ali@6: #include ali@6: ali@7: #define TESTCASE_ERROR testcase_error_quark() ali@7: ali@7: typedef enum { ali@7: TESTCASE_ERROR_FAILED ali@7: } TestcaseError; ali@7: ali@0: typedef struct { ali@0: char *basename; ali@0: char *input; ali@0: char *expected; ali@7: char *encoding; /* The character encoding to talk to BOOKLOUPE in */ ali@0: enum { ali@0: TESTCASE_XFAIL=1<<0, ali@0: } flags; ali@0: } Testcase; ali@0: ali@7: GQuark testcase_error_quark(void); ali@6: gboolean testcase_run(Testcase *testcase); ali@0: void testcase_free(Testcase *testcase); ali@0: ali@0: #endif /* TESTCASE_H */