aboutsummaryrefslogtreecommitdiff
path: root/src/test/isolation/isolationtester.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/isolation/isolationtester.h')
-rw-r--r--src/test/isolation/isolationtester.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/test/isolation/isolationtester.h b/src/test/isolation/isolationtester.h
new file mode 100644
index 00000000000..b092ed16a0f
--- /dev/null
+++ b/src/test/isolation/isolationtester.h
@@ -0,0 +1,59 @@
+/*-------------------------------------------------------------------------
+ *
+ * bootstrap.h
+ * include file for the bootstrapping code
+ *
+ *
+ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * $PostgreSQL: pgsql/src/include/bootstrap/bootstrap.h,v 1.44 2006/10/04 00:30:07 momjian Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef ISOLATIONTESTER_H
+#define ISOLATIONTESTER_H
+
+typedef struct Session Session;
+typedef struct Step Step;
+
+struct Session
+{
+ char *name;
+ char *setupsql;
+ char *teardownsql;
+ Step **steps;
+ int nsteps;
+};
+
+struct Step
+{
+ int session;
+ char *name;
+ char *sql;
+};
+
+typedef struct
+{
+ int nsteps;
+ char **stepnames;
+} Permutation;
+
+typedef struct
+{
+ char *setupsql;
+ char *teardownsql;
+ Session **sessions;
+ int nsessions;
+ Permutation **permutations;
+ int npermutations;
+} TestSpec;
+
+extern TestSpec parseresult;
+
+extern int spec_yyparse(void);
+
+extern int spec_yylex(void);
+extern void spec_yyerror(const char *str);
+
+#endif /* ISOLATIONTESTER_H */