summaryrefslogtreecommitdiff
path: root/test/repmgr019.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'test/repmgr019.tcl')
-rw-r--r--test/repmgr019.tcl44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/repmgr019.tcl b/test/repmgr019.tcl
new file mode 100644
index 0000000..177ec67
--- /dev/null
+++ b/test/repmgr019.tcl
@@ -0,0 +1,44 @@
+# See the file LICENSE for redistribution information.
+#
+# Copyright (c) 2007-2009 Oracle. All rights reserved.
+#
+# $Id$
+#
+# TEST repmgr019
+# TEST Basic repmgr test with in-memory databases and in-memory logs.
+# TEST
+# TEST Create an appointed master and two clients, process some records and
+# TEST verify resulting databases.
+# TEST
+# TEST Run for btree only because access method shouldn't matter.
+# TEST
+proc repmgr019 { method { niter 100 } { tnum "019" } args } {
+
+ source ./include.tcl
+
+ if { $is_freebsd_test == 1 } {
+ puts "Skipping replication manager test on FreeBSD platform."
+ return
+ }
+
+ if { $is_windows9x_test == 1 } {
+ puts "Skipping replication test on Win9x platform."
+ return
+ }
+
+ # Skip for all methods except btree.
+ if { $checking_valid_methods } {
+ return btree
+ }
+ if { [is_btree $method] == 0 } {
+ puts "Repmgr$tnum: skipping for non-btree method $method."
+ return
+ }
+
+ set args [convert_args $method $args]
+
+ puts \
+ "Repmgr$tnum ($method): Basic repmgr test in-memory databases and logs."
+ basic_repmgr_test $method $niter $tnum 1 1 0 0 0 $args
+}
+