author | ali <ali@juiblex.co.uk> |
Tue Jan 31 19:20:36 2012 +0000 (2012-01-31) | |
changeset 14 | 3c57a6fd0a13 |
parent 7 | 721e468c10f3 |
child 17 | 2c88fd553e5d |
permissions | -rw-r--r-- |
1 #ifndef TESTCASE_H
2 #define TESTCASE_H
4 #include <glib.h>
6 #define TESTCASE_ERROR testcase_error_quark()
8 typedef enum {
9 TESTCASE_ERROR_FAILED
10 } TestcaseError;
12 typedef struct {
13 char *basename;
14 char *tmpdir;
15 GSList *inputs;
16 char *expected;
17 char *encoding; /* The character encoding to talk to BOOKLOUPE in */
18 char **options;
19 enum {
20 TESTCASE_XFAIL=1<<0,
21 TESTCASE_TMP_DIR=1<<1,
22 } flags;
23 } Testcase;
25 GQuark testcase_error_quark(void);
26 gboolean testcase_run(Testcase *testcase);
27 void testcase_free(Testcase *testcase);
29 #endif /* TESTCASE_H */