summaryrefslogtreecommitdiff
path: root/repl-tests
diff options
context:
space:
mode:
Diffstat (limited to 'repl-tests')
-rw-r--r--repl-tests/README12
-rwxr-xr-xrepl-tests/run-all-tests9
2 files changed, 21 insertions, 0 deletions
diff --git a/repl-tests/README b/repl-tests/README
new file mode 100644
index 00000000000..62a05e909e9
--- /dev/null
+++ b/repl-tests/README
@@ -0,0 +1,12 @@
+This directory contains a set of test cases for replication. To get it
+to work on your system, install this version of MySQL on the master and on
+the slave, configure them according to the Replication HOWTO in the manual,
+modify include/master-slave.inc to specify correct connection parameters
+for the master and the slave and do
+
+sh run-all-tests
+
+If you would like to add your own test case, create a directory
+test-your-test-case-name, write your own run.test following the examples
+in the other test cases. Note that you can create the files containing
+the expected output ( master files) by running mysql-test --record < run.test \ No newline at end of file
diff --git a/repl-tests/run-all-tests b/repl-tests/run-all-tests
new file mode 100755
index 00000000000..bed0ce3f0f0
--- /dev/null
+++ b/repl-tests/run-all-tests
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+for d in test-*; do
+cd $d
+echo -n $d | sed -e s/test-//
+echo -n "...."
+../../client/mysql-test $@ < run.test
+cd ..
+done \ No newline at end of file