summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-02-23 09:24:11 +0100
committerSergei Golubchik <sergii@pisem.net>2012-02-23 09:24:11 +0100
commite293bdb2c19cacad91d4f5a846568ac595b3a48e (patch)
tree503b3836e5ba4ef1d0f0a407ae407fa9d7edb490 /mysql-test
parent3cda92aece63a1d1d7f0f37e0e6c2535d2022e62 (diff)
downloadmariadb-git-e293bdb2c19cacad91d4f5a846568ac595b3a48e.tar.gz
instead of having win/notwin tests that only differ in results,
use one test with two combinations (win/unix), where only one is enabled. Apply this technique to mysqld--help.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/include/platform.combinations4
-rw-r--r--mysql-test/include/platform.inc4
-rw-r--r--mysql-test/r/mysqld--help,win.rdiff91
-rw-r--r--mysql-test/r/mysqld--help-win.result.THIS (renamed from mysql-test/r/mysqld--help-win.result)0
-rw-r--r--mysql-test/r/mysqld--help.result (renamed from mysql-test/r/mysqld--help-notwin.result)0
-rw-r--r--mysql-test/suite.pm4
-rw-r--r--mysql-test/suite/funcs_1/t/is_columns_is.test1
-rw-r--r--mysql-test/t/mysqld--help-notwin.test9
-rw-r--r--mysql-test/t/mysqld--help-win.test9
-rw-r--r--mysql-test/t/mysqld--help.test (renamed from mysql-test/include/mysqld--help.inc)2
10 files changed, 105 insertions, 19 deletions
diff --git a/mysql-test/include/platform.combinations b/mysql-test/include/platform.combinations
new file mode 100644
index 00000000000..4681ac05314
--- /dev/null
+++ b/mysql-test/include/platform.combinations
@@ -0,0 +1,4 @@
+[win]
+
+[unix]
+
diff --git a/mysql-test/include/platform.inc b/mysql-test/include/platform.inc
new file mode 100644
index 00000000000..1821021df6f
--- /dev/null
+++ b/mysql-test/include/platform.inc
@@ -0,0 +1,4 @@
+#
+# tests that include this file will be run for an appropriate combination.
+# See platform.combinations for the list of combinations.
+#
diff --git a/mysql-test/r/mysqld--help,win.rdiff b/mysql-test/r/mysqld--help,win.rdiff
new file mode 100644
index 00000000000..676393720a7
--- /dev/null
+++ b/mysql-test/r/mysqld--help,win.rdiff
@@ -0,0 +1,91 @@
+--- r/mysqld--help.result 2012-01-13 16:50:49.000000000 +0100
++++ r/mysqld--help-win.result 2012-01-19 14:12:00.000000000 +0100
+@@ -240,7 +240,6 @@
+ The number of segments in a key cache
+ -L, --language=name Client error messages in given language. May be given as
+ a full path. Deprecated. Use --lc-messages-dir instead.
+- --large-pages Enable support for large pages
+ --lc-messages=name Set the language used for the error messages.
+ -L, --lc-messages-dir=name
+ Directory where error messages are
+@@ -436,6 +435,7 @@
+ NULLS_UNEQUAL (default behavior for 4.1 and later),
+ NULLS_EQUAL (emulate 4.0 behavior), and NULLS_IGNORED
+ --myisam-use-mmap Use memory mapping for reading and writing MyISAM tables
++ --named-pipe Enable the named pipe (NT)
+ --net-buffer-length=#
+ Buffer length for TCP/IP and socket communication
+ --net-read-timeout=#
+@@ -695,6 +695,9 @@
+ files within specified directory
+ --server-id=# Uniquely identifies the server instance in the community
+ of replication partners
++ --shared-memory Enable the shared memory
++ --shared-memory-base-name=name
++ Base name of shared memory
+ --show-slave-auth-info
+ Show user and password in SHOW SLAVE HOSTS on this
+ master.
+@@ -759,6 +762,10 @@
+ Log slow queries to given log file. Defaults logging to
+ 'hostname'-slow.log. Must be enabled to activate other
+ slow log options
++ --slow-start-timeout=#
++ Maximum number of milliseconds that the service control
++ manager should wait before trying to kill the windows
++ service during startup(Default: 15000).
+ --socket=name Socket file to use for connection
+ --sort-buffer-size=#
+ Each thread that needs to do a sort allocates a buffer of
+@@ -767,6 +774,7 @@
+ for the complete list of valid sql modes
+ --stack-trace Print a symbolic stack trace on failure
+ (Defaults to on; use --skip-stack-trace to disable.)
++ --standalone Dummy option to start as a standalone program (NT).
+ -s, --symbolic-links
+ Enable symbolic link support.
+ --sync-binlog=# Synchronously flush binary log to disk after every #th
+@@ -807,8 +815,8 @@
+ size, MySQL will automatically convert it to an on-disk
+ MyISAM or Aria table
+ -t, --tmpdir=name Path for temporary files. Several paths may be specified,
+- separated by a colon (:), in this case they are used in a
+- round-robin fashion
++ separated by a semicolon (;), in this case they are used
++ in a round-robin fashion
+ --transaction-alloc-block-size=#
+ Allocation block size for transactions to be stored in
+ binary log
+@@ -908,7 +916,6 @@
+ key-cache-division-limit 100
+ key-cache-segments 0
+ language MYSQL_SHAREDIR/
+-large-pages FALSE
+ lc-messages en_US
+ lc-messages-dir MYSQL_SHAREDIR/
+ lc-time-names en_US
+@@ -971,6 +978,7 @@
+ myisam-sort-buffer-size 8388608
+ myisam-stats-method nulls_unequal
+ myisam-use-mmap FALSE
++named-pipe FALSE
+ net-buffer-length 16384
+ net-read-timeout 30
+ net-retry-count 10
+@@ -1035,6 +1043,8 @@
+ secure-auth FALSE
+ secure-file-priv (No default value)
+ server-id 0
++shared-memory FALSE
++shared-memory-base-name MYSQL
+ show-slave-auth-info FALSE
+ skip-grant-tables TRUE
+ skip-name-resolve FALSE
+@@ -1050,6 +1060,7 @@
+ slave-type-conversions
+ slow-launch-time 2
+ slow-query-log FALSE
++slow-start-timeout 15000
+ sort-buffer-size 2097152
+ sql-mode
+ stack-trace TRUE
diff --git a/mysql-test/r/mysqld--help-win.result b/mysql-test/r/mysqld--help-win.result.THIS
index 05cbcda7129..05cbcda7129 100644
--- a/mysql-test/r/mysqld--help-win.result
+++ b/mysql-test/r/mysqld--help-win.result.THIS
diff --git a/mysql-test/r/mysqld--help-notwin.result b/mysql-test/r/mysqld--help.result
index 94d7465d39b..94d7465d39b 100644
--- a/mysql-test/r/mysqld--help-notwin.result
+++ b/mysql-test/r/mysqld--help.result
diff --git a/mysql-test/suite.pm b/mysql-test/suite.pm
index 9db2c96a7c5..7c234afffb1 100644
--- a/mysql-test/suite.pm
+++ b/mysql-test/suite.pm
@@ -1,4 +1,5 @@
package My::Suite::Main;
+use My::Platform;
@ISA = qw(My::Suite);
@@ -13,6 +14,9 @@ sub skip_combinations {
my %skip = ( 'include/have_innodb.combinations' => [ @combinations ],
'include/have_xtradb.combinations' => [ @combinations ]);
+ # don't run tests for the wrong platform
+ $skip{'include/platform.combinations'} = [ (IS_WINDOWS) ? 'unix' : 'win' ];
+
# as a special case, disable certain include files as a whole
$skip{'include/not_embedded.inc'} = 'Not run for embedded server'
if $::opt_embedded_server;
diff --git a/mysql-test/suite/funcs_1/t/is_columns_is.test b/mysql-test/suite/funcs_1/t/is_columns_is.test
index 54527e6e080..29d387857c9 100644
--- a/mysql-test/suite/funcs_1/t/is_columns_is.test
+++ b/mysql-test/suite/funcs_1/t/is_columns_is.test
@@ -16,7 +16,6 @@
#
--source include/not_embedded.inc
-# This test depends on having the PBXT information_schema stuff.
--source include/have_xtradb.inc
let $my_where = WHERE table_schema = 'information_schema'
diff --git a/mysql-test/t/mysqld--help-notwin.test b/mysql-test/t/mysqld--help-notwin.test
deleted file mode 100644
index 7cc490c0615..00000000000
--- a/mysql-test/t/mysqld--help-notwin.test
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# mysqld --help
-#
---source include/not_embedded.inc
---source include/not_windows.inc
---source include/have_perfschema.inc
-
---source include/mysqld--help.inc
-
diff --git a/mysql-test/t/mysqld--help-win.test b/mysql-test/t/mysqld--help-win.test
deleted file mode 100644
index fca329bfbe6..00000000000
--- a/mysql-test/t/mysqld--help-win.test
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# mysqld --help
-#
---source include/not_embedded.inc
---source include/windows.inc
---source include/have_perfschema.inc
-
---source include/mysqld--help.inc
-
diff --git a/mysql-test/include/mysqld--help.inc b/mysql-test/t/mysqld--help.test
index 85f420f3c7b..806e6f7f8d1 100644
--- a/mysql-test/include/mysqld--help.inc
+++ b/mysql-test/t/mysqld--help.test
@@ -2,6 +2,8 @@
# mysqld --help
#
--source include/not_embedded.inc
+--source include/have_perfschema.inc
+--source include/platform.inc
#
# force lower-case-table-names=1 (linux/macosx have different defaults)