From 5a60eba217f2a9cd7e3a819ec929413dd0cdd0bc Mon Sep 17 00:00:00 2001 From: unknown <tomas@poseidon.ndb.mysql.com> Date: Mon, 30 Jan 2006 17:06:31 +0100 Subject: [PATCH] added --core option in mysql-test-run for ndb mysql-test/r/ndb_restore.result: removed test printout not used mysql-test/t/ndb_restore.test: removed test printout not used --- mysql-test/mysql-test-run.pl | 12 ++++++++---- mysql-test/mysql-test-run.sh | 4 ++-- mysql-test/ndb/ndbcluster.sh | 12 ++++++++---- mysql-test/r/ndb_restore.result | 8 -------- mysql-test/t/ndb_restore.test | 3 --- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index e0bbeec7a8..a14272eb16 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1374,7 +1374,8 @@ sub ndbcluster_install () { "--verbose=2", $ndbcluster_opts, "--initial", - "--relative-config-data-dir"], + "--relative-config-data-dir", + "--core"], "", "", "", "") ) { mtr_error("Error ndbcluster_install"); @@ -1410,7 +1411,8 @@ sub ndbcluster_start ($) { if ( mtr_run("$glob_mysql_test_dir/ndb/ndbcluster", ["--port=$opt_ndbcluster_port", "--data-dir=$opt_vardir", - "--verbose=2"], + "--verbose=2", + "--core"], "", "/dev/null", "", "") ) { mtr_error("Error ndbcluster_start"); @@ -1467,7 +1469,8 @@ sub ndbcluster_install_slave () { "--small", "--ndbd-nodes=1", "--initial", - "--relative-config-data-dir"], + "--relative-config-data-dir", + "--core"], "", "", "", "") ) { mtr_error("Error ndbcluster_install_slave"); @@ -1501,7 +1504,8 @@ sub ndbcluster_start_slave ($) { ["--port=$opt_ndbcluster_port_slave", "--data-dir=$opt_vardir", "--verbose=2", - "--ndbd-nodes=1"], + "--ndbd-nodes=1", + "--core"], "", "/dev/null", "", "") ) { mtr_error("Error ndbcluster_start_slave"); diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 7fc88d79e9..2e957ffe18 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -1278,7 +1278,7 @@ start_ndbcluster() then NDBCLUSTER_EXTRA_OPTS="--small" fi - OPTS="$NDBCLUSTER_OPTS $NDBCLUSTER_EXTRA_OPTS --verbose=$NDB_VERBOSE --initial --relative-config-data-dir" + OPTS="$NDBCLUSTER_OPTS $NDBCLUSTER_EXTRA_OPTS --verbose=$NDB_VERBOSE --initial --relative-config-data-dir --core" if [ "x$NDB_VERBOSE" != "x0" ] ; then echo "Starting master ndbcluster " $OPTS fi @@ -1511,7 +1511,7 @@ start_slave() NDBCLUSTER_EXTRA_OPTS="--small" fi - OPTS="$NDBCLUSTER_OPTS_SLAVE --initial $NDBCLUSTER_EXTRA_OPTS --ndbd-nodes=1 --verbose=$NDB_VERBOSE --relative-config-data-dir" + OPTS="$NDBCLUSTER_OPTS_SLAVE --initial $NDBCLUSTER_EXTRA_OPTS --ndbd-nodes=1 --verbose=$NDB_VERBOSE --relative-config-data-dir --core" if [ "x$NDB_VERBOSE" != "x0" ] ; then echo "Starting slave ndbcluster " $OPTS fi diff --git a/mysql-test/ndb/ndbcluster.sh b/mysql-test/ndb/ndbcluster.sh index fc1d12bac5..6812067a8e 100644 --- a/mysql-test/ndb/ndbcluster.sh +++ b/mysql-test/ndb/ndbcluster.sh @@ -53,6 +53,7 @@ status_ndb= ndb_diskless=0 ndbd_nodes=2 relative_config_data_dir= +opt_core= ndb_no_ord=512 ndb_no_attr=2048 @@ -118,6 +119,9 @@ while test $# -gt 0; do --ndbd-extra-opts=*) NDBD_EXTRA_OPTS=`echo "$1" | sed -e "s;--ndbd-extra-opts=;;"` ;; + --core) + opt_core="--core" + ;; --verbose=*) VERBOSE=`echo "$1" | sed -e "s;--verbose=;;"` ;; @@ -153,10 +157,10 @@ if [ ! -f "$config_ini" ]; then exit 1 fi -exec_mgmtclient="$exec_mgmtclient --no-defaults $NDB_MGM_EXTRA_OPTS" -exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $NDB_MGMD_EXTRA_OPTS" -exec_ndb="$exec_ndb --no-defaults $NDBD_EXTRA_OPTS" -exec_waiter="$exec_waiter --no-defaults" +exec_mgmtclient="$exec_mgmtclient --no-defaults $opt_core $NDB_MGM_EXTRA_OPTS" +exec_mgmtsrvr="$exec_mgmtsrvr --no-defaults $opt_core $NDB_MGMD_EXTRA_OPTS" +exec_ndb="$exec_ndb --no-defaults $opt_core $NDBD_EXTRA_OPTS" +exec_waiter="$exec_waiter --no-defaults $opt_core" ndb_host="localhost" ndb_mgmd_port=$port diff --git a/mysql-test/r/ndb_restore.result b/mysql-test/r/ndb_restore.result index b151eebde0..85c4e34cc5 100644 --- a/mysql-test/r/ndb_restore.result +++ b/mysql-test/r/ndb_restore.result @@ -1,14 +1,6 @@ use test; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c; -id type state logging database schema name -2 UserTable Online Yes cluster_replication def apply_status -1 SystemTable Online Yes sys def NDB$EVENTS_0 -3 UserTable Online Yes cluster_replication def schema -0 SystemTable Online Yes sys def SYSTAB_0 - -NDBT_ProgramExit: 0 - OK - CREATE TABLE `t1_c` ( `capgoaledatta` smallint(5) unsigned NOT NULL auto_increment, `goaledatta` char(2) NOT NULL default '', diff --git a/mysql-test/t/ndb_restore.test b/mysql-test/t/ndb_restore.test index 5616dea04e..4a95559c91 100644 --- a/mysql-test/t/ndb_restore.test +++ b/mysql-test/t/ndb_restore.test @@ -8,9 +8,6 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c; --enable_warnings ---exec $NDB_TOOLS_DIR/ndb_show_tables ---exec $NDB_MGM --no-defaults -e "all dump 1000" >> $NDB_TOOLS_OUTPUT - CREATE TABLE `t1_c` ( `capgoaledatta` smallint(5) unsigned NOT NULL auto_increment, `goaledatta` char(2) NOT NULL default '', -- 2.30.9