mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
26bb50a19b
Add pack_bits to pack_reclength for dynamic rows. This solves buffer a possible buffer overflow on update. (This will probably solve bug #563) Fix test for available file descriptors in mysqltest Fixed core dump bug in replication tests when running without transactional table support acconfig.h: Add detection of in_addr_t acinclude.m4: Add detection of in_addr_t configure.in: Add detection of in_addr_t extra/my_print_defaults.c: Cleanup extra/resolveip.c: Add detection of in_addr_t libmysql/dll.c: Fixed C++ commments myisam/mi_dynrec.c: Add ASSERT if allocated record length is to small myisam/mi_open.c: Add pack_bits to pack_reclength for dynamic rows. This solves buffer a possible buffer overflow on update. myisam/mi_test_all.sh: Added valgrind option to make it easier to verify tests mysql-test/include/check_var_limit.inc: Fix test for available file descriptors mysql-test/r/myisam.result: More tests mysql-test/t/myisam.test: More tests mysql-test/t/query_cache_merge.test: Fix test for available file descriptors mysys/default.c: Cleanup mysys/my_pthread.c: Remove C++ comments sql/log.cc: Code cleanup Fixed core dump bug in replication tests when running without transactional table support.
147 lines
4.6 KiB
Bash
Executable file
147 lines
4.6 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Execute some simple basic test on MyISAM libary to check if things
|
|
# works at all.
|
|
|
|
valgrind="valgrind --alignment=8 --leak-check=yes"
|
|
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
|
|
myisamchk$suffix -rs --correct-checksum test1
|
|
myisamchk$suffix -se test1
|
|
myisamchk$suffix -rqs --correct-checksum test1
|
|
myisamchk$suffix -se test1
|
|
myisamchk$suffix -ros --correct-checksum test1
|
|
myisamchk$suffix -se test1
|
|
myisamchk$suffix -rqos --correct-checksum 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
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -L -K -W -P -A
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -L -K -W -P -S -R1 -m500
|
|
echo "mi_test2$suffix $silent -L -K -R1 -m2000 ; Should give error 135"
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -L -K -R1 -m2000
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -L -K -P -S -R3 -m50 -b1000000
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -L -B
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -D -B -c
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -m10000 -e8192 -K
|
|
myisamchk$suffix -sm test2
|
|
mi_test2$suffix $silent -m10000 -e16384 -E16384 -K -L
|
|
myisamchk$suffix -sm test2
|
|
|
|
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
|