summaryrefslogtreecommitdiff
path: root/repl-tests
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2000-09-18 11:40:36 -0600
committerunknown <sasha@mysql.sashanet.com>2000-09-18 11:40:36 -0600
commit368808cea9bc18d1fb7d44d802e8cae3aff90e13 (patch)
tree54f7787ab20d5bd64b5cc0382321f252f86f0099 /repl-tests
parent685982484f834ced81cb52e4a5727f83a29d3653 (diff)
downloadmariadb-git-368808cea9bc18d1fb7d44d802e8cae3aff90e13.tar.gz
fixed up mysql-test, added README for replication tests, and added
run-all-tests for replication client/mysql-test.c: ***MISSING WEAVE***
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