test/harness/testcase.h
author ali <ali@juiblex.co.uk>
Mon Jan 30 00:36:31 2012 +0000 (2012-01-30)
changeset 9 6a13fe0fc19e
parent 7 721e468c10f3
child 17 2c88fd553e5d
permissions -rw-r--r--
Add a testcase for user-defined typos
     1 #ifndef TESTCASE_H
     2 #define TESTCASE_H
     3 
     4 #include <glib.h>
     5 
     6 #define TESTCASE_ERROR testcase_error_quark()
     7 
     8 typedef enum {
     9     TESTCASE_ERROR_FAILED
    10 } TestcaseError;
    11 
    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;
    24 
    25 GQuark testcase_error_quark(void);
    26 gboolean testcase_run(Testcase *testcase);
    27 void testcase_free(Testcase *testcase);
    28 
    29 #endif	/* TESTCASE_H */