mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	mysql-test/mysql-test-run.pl: Rename MYSQLD -> MYSQLD_SIMPLE_CMD to avoid conflict with new MYSQLD variable from MySQL 5.1 mysql-test/r/innodb_file_format.result: Remove old duplicated test mysql-test/suite/pbxt/r/endspace.result: Update test to last version mysql-test/suite/pbxt/r/heap.result: Removed heap test (not part of pbxt) mysql-test/suite/pbxt/r/select_safe.result: Updated results after error message change mysql-test/suite/pbxt/r/view_grant.result: Removed view test (not part of pbxt) mysql-test/suite/pbxt/t/endspace.test: Update test to last version mysql-test/suite/pbxt/t/heap.test: Removed heap test (not part of pbxt) mysql-test/suite/pbxt/t/view_grant.test: Removed view test (not part of pbxt) mysql-test/t/innodb_file_format.test: Remove old duplicated test mysql-test/t/mysqld_option_err.test: Use renamed variable sql/my_decimal.h: Fixed wrong define storage/maria/ma_loghandler.c: Fixed compiler warning
		
			
				
	
	
		
			60 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Test error checks on mysqld command line option parsing.
 | 
						|
#
 | 
						|
# Call mysqld with different invalid options, and check that it fails in each case.
 | 
						|
#
 | 
						|
# This means that a test failure results in mysqld starting up, which is only
 | 
						|
# caught when the test case times out. This is not ideal, but I did not find an
 | 
						|
# easy way to have the server shut down after a successful startup.
 | 
						|
#
 | 
						|
 | 
						|
--source include/not_embedded.inc
 | 
						|
 | 
						|
# mysqld refuses to run as root normally.
 | 
						|
-- source include/not_as_root.inc
 | 
						|
 | 
						|
# We have not run (and do not need) bootstrap of the server. We just
 | 
						|
# give it a dummy data directory (for log files etc).
 | 
						|
 | 
						|
mkdir $MYSQLTEST_VARDIR/tmp/mysqld_option_err;
 | 
						|
 | 
						|
 | 
						|
--echo Test that unknown option is not silently ignored.
 | 
						|
--error 2
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --skip-networking --datadir=$MYSQLTEST_VARDIR/tmp/mysqld_option_err --skip-grant-tables --nonexistentoption >$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
 | 
						|
 | 
						|
--echo Test bad binlog format.
 | 
						|
--error 1
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --skip-networking --datadir=$MYSQLTEST_VARDIR/tmp/mysqld_option_err --skip-grant-tables --log-bin --binlog-format=badformat >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
 | 
						|
 | 
						|
--echo Test bad default storage engine.
 | 
						|
--error 1
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --skip-networking --datadir=$MYSQLTEST_VARDIR/tmp/mysqld_option_err --skip-grant-tables --default-storage-engine=nonexistentengine >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
 | 
						|
 | 
						|
--echo Test non-numeric value passed to number option.
 | 
						|
--error 1
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --skip-networking --datadir=$MYSQLTEST_VARDIR/tmp/mysqld_option_err --skip-grant-tables  --min-examined-row-limit=notanumber >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
 | 
						|
 | 
						|
# Test for MBug#423035: error in parsing enum value for plugin
 | 
						|
# variable in mysqld command-line option.
 | 
						|
# See also Bug#32034.
 | 
						|
--echo Test that bad value for plugin enum option is rejected correctly.
 | 
						|
--error 7
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --skip-networking --datadir=$MYSQLTEST_VARDIR/tmp/mysqld_option_err --skip-grant-tables --plugin-dir=$MYSQLTEST_VARDIR/plugins --plugin-load=example=ha_example.so --plugin-example-enum-var=noexist >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
 | 
						|
#
 | 
						|
# Test that an wrong option with --help --verbose gives an error
 | 
						|
#
 | 
						|
 | 
						|
--echo Test that --help --verbose works
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --help --verbose >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
--echo Test that --not-known-option --help --verbose gives error
 | 
						|
--error 2
 | 
						|
--exec $MYSQLD_BOOTSTRAP_CMD --not-known-option --help --verbose >>$MYSQLTEST_VARDIR/tmp/mysqld_option_err/mysqltest.log 2>&1
 | 
						|
 | 
						|
--echo Done.
 |