mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
fe1842d9ee
Fixed error number handling bug in mysqltest. Fixed that error number from insert delayed is reported correctly. merged new vio code with old violite code. client/mysqltest.c: Fixed bug that error numbers wasn't tested properly. myisam/mi_check.c: Moved initialization of variables to avoid a bug. myisam/mi_create.c: Fixed bug in symlink handling. myisam/mi_test_all.sh: Fixed script so that it works. myisam/myisamchk.c: Removed --no-symlinks option mysql-test/mysql-test-run.sh: Cleaned up error message mysql-test/t/bdb.test: Fixed wrong error numbers mysql-test/t/err000001.test: Fixed wrong error numbers mysql-test/t/innodb.test: Fixed wrong error numbers mysql-test/t/overflow.test: Fixed wrong error numbers mysql-test/t/status.test: Ensure that we are using myisam tables for the lock test. mysys/my_delete.c: cleanup mysys/my_symlink2.c: Added option to not overwrite files when using symlinks. sql/Makefile.am: Moved vio to avoid link error. sql/ha_myisam.cc: Fixed symlink handling. sql/mysqld.cc: Changed --skip-symlinks to --skip-symlink sql/sql_insert.cc: Fixed that error number from insert delayed is reported correctly sql/sql_parse.cc: Fixed symlink handling. sql/sql_table.cc: Fixed symlink handling. vio/vio.c: cleanup vio/viosocket.c: c
125 lines
3.9 KiB
Bash
Executable file
125 lines
3.9 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Execute some simple basic test on MyISAM libary to check if things
|
|
# works at all.
|
|
|
|
silent="-s"
|
|
if test -f mi_test1$MACH ; then suffix=$MACH else suffix=""; fi
|
|
mi_test1$suffix $silent
|
|
myisamchk$suffix -se test1
|
|
mi_test1$suffix $silent -N -S
|
|
myisamchk$suffix -se test1
|
|
mi_test1$suffix $silent -P --checksum
|
|
myisamchk$suffix -se test1
|
|
mi_test1$suffix $silent -P -N -S
|
|
myisamchk$suffix -se test1
|
|
mi_test1$suffix $silent -B -N -R2
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -k 480 --unique
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -N -S -R1
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -p -S
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -p -S -N --unique
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -p -S -N --key_length=127 --checksum
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -p -S -N --key_length=128
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -p -S --key_length=480
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -B
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -B --key_length=64 --unique
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -B -k 480 --checksum
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -B -k 480 -N --unique --checksum
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -m
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -m -P --unique --checksum
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -m -P --key_length=480 --key_cache
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -m -p
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -w -S --unique
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -w --key_length=64 --checksum
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -w -N --key_length=480
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -w -S --key_length=480 --checksum
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -b -N
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -a -b --key_length=480
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent -p -B --key_length=480
|
|
myisamchk$suffix -sm test1
|
|
|
|
mi_test1$suffix $silent --checksum
|
|
myisamchk$suffix -se test1
|
|
myisamchk$suffix -rs test1
|
|
myisamchk$suffix -se test1
|
|
myisamchk$suffix -rqs test1
|
|
myisamchk$suffix -se test1
|
|
|
|
# check of myisampack / myisamchk
|
|
myisampack$suffix --force -s test1
|
|
myisamchk$suffix -es test1
|
|
myisamchk$suffix -rqs test1
|
|
myisamchk$suffix -es test1
|
|
myisamchk$suffix -rs test1
|
|
myisamchk$suffix -es test1
|
|
myisamchk$suffix -rus test1
|
|
myisamchk$suffix -es test1
|
|
|
|
mi_test1$suffix $silent --checksum -S
|
|
myisamchk$suffix -se test1
|
|
myisamchk$suffix -ros test1
|
|
myisamchk$suffix -rqs test1
|
|
myisamchk$suffix -se test1
|
|
|
|
myisampack$suffix --force -s test1
|
|
myisamchk$suffix -rqs test1
|
|
myisamchk$suffix -es test1
|
|
myisamchk$suffix -rus test1
|
|
myisamchk$suffix -es test1
|
|
|
|
mi_test1$suffix $silent --checksum --unique
|
|
myisamchk$suffix -se test1
|
|
mi_test1$suffix $silent --unique -S
|
|
myisamchk$suffix -se test1
|
|
|
|
|
|
mi_test1$suffix $silent --key_multiple -N -S
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent --key_multiple -a -p --key_length=480
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent --key_multiple -a -B --key_length=480
|
|
myisamchk$suffix -sm test1
|
|
mi_test1$suffix $silent --key_multiple -P -S
|
|
myisamchk$suffix -sm test1
|
|
|
|
mi_test2$suffix $silent -L -K -W -P
|
|
mi_test2$suffix $silent -L -K -W -P -A
|
|
mi_test2$suffix $silent -L -K -W -P -S -R1 -m500
|
|
echo "mi_test2$suffix $silent -L -K -R1 -m2000 ; Should give error 135"
|
|
mi_test2$suffix $silent -L -K -R1 -m2000
|
|
mi_test2$suffix $silent -L -K -P -S -R3 -m50 -b1000000
|
|
mi_test2$suffix $silent -L -B
|
|
mi_test2$suffix $silent -D -B -c
|
|
mi_test2$suffix $silent -L -K -W -P -m50 -l
|
|
myisamlog$suffix
|
|
mi_test2$suffix $silent -L -K -W -P -m50 -l -b100
|
|
myisamlog$suffix
|
|
time mi_test2$suffix $silent
|
|
time mi_test2$suffix $silent -K -B
|
|
time mi_test2$suffix $silent -L -B
|
|
time mi_test2$suffix $silent -L -K -B
|
|
time mi_test2$suffix $silent -L -K -W -B
|
|
time mi_test2$suffix $silent -L -K -W -S -B
|
|
time mi_test2$suffix $silent -D -K -W -S -B
|