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
ali@0
     1
#ifndef TESTCASE_H
ali@0
     2
#define TESTCASE_H
ali@0
     3
ali@6
     4
#include <glib.h>
ali@6
     5
ali@7
     6
#define TESTCASE_ERROR testcase_error_quark()
ali@7
     7
ali@7
     8
typedef enum {
ali@7
     9
    TESTCASE_ERROR_FAILED
ali@7
    10
} TestcaseError;
ali@7
    11
ali@0
    12
typedef struct {
ali@0
    13
    char *basename;
ali@9
    14
    char *tmpdir;
ali@9
    15
    GSList *inputs;
ali@0
    16
    char *expected;
ali@7
    17
    char *encoding;	/* The character encoding to talk to BOOKLOUPE in */
ali@9
    18
    char **options;
ali@0
    19
    enum {
ali@0
    20
	TESTCASE_XFAIL=1<<0,
ali@9
    21
	TESTCASE_TMP_DIR=1<<1,
ali@0
    22
    } flags;
ali@0
    23
} Testcase;
ali@0
    24
ali@7
    25
GQuark testcase_error_quark(void);
ali@6
    26
gboolean testcase_run(Testcase *testcase);
ali@0
    27
void testcase_free(Testcase *testcase);
ali@0
    28
ali@0
    29
#endif	/* TESTCASE_H */