test/harness/testcase.h
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--
Require at least version 2.18 of glib
     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 */