Magnus Svensson
ce9f585b48
Merge
2008-10-08 22:30:56 +02:00
Magnus Svensson
2d2387927a
BUG#38559 Annoying cygwin problem fixed by resolving pid->winpid before kill instead of just after fork
2008-10-08 22:06:10 +02:00
Magnus Svensson
fc6a7def0b
WL#4189 NO need to retry OpenEvent if the process does not exist anymore
2008-10-08 22:02:32 +02:00
Magnus Svensson
e75daedf17
WL4189 Active state perl fixes
2008-10-08 20:25:28 +02:00
Magnus Svensson
160e13cb4c
WL#4189 Only kill process that hasn't yet finished at end of mtr.pl. Improve debug printout
2008-10-06 19:52:26 +02:00
Magnus Svensson
01a3ac7596
WL4189 Add Handles.pm and use it from My::File::Path to show open handles. Rewrite rmtree to use File::Find so we can get better debug printouts when something fails
2008-10-06 19:51:33 +02:00
Magnus Svensson
c61516c381
Improve gdb coredump
2008-10-06 10:49:12 +02:00
Magnus Svensson
853880910c
Memoize functions that converts between different paths, a given input string will always return the same output. This save a lot of calls to cygpath for example
2008-09-22 19:15:55 +03:00
Magnus Svensson
670a46aa0a
Print 'cygpath -m' command if it fails
2008-09-22 18:44:35 +03:00
Magnus Svensson
a925ec107f
Use --batch when invoking gdb, to make sure it will exit in case of an error in the command files.
2008-09-20 17:10:22 +03:00
Magnus Svensson
231984dd5d
Versional testing support
2008-09-20 16:51:31 +03:00
Magnus Svensson
862f105151
Make sure the direcory where the test socket is to be created exists
2008-09-20 15:21:29 +03:00
Magnus Svensson
af23ec8579
WL#4189 Wrap the check for socket path length in eval
2008-09-15 16:27:12 +02:00
Magnus Svensson
258c88471f
Bug#38817 please make mtr analyze crashes better
2008-09-06 08:57:05 +02:00
Magnus Svensson
7ef8929ba4
Bug#35482 mysql-test-run have_innodb does not detect external server has Innodb support
2008-09-05 18:28:20 +02:00
Magnus Svensson
c11e919980
WL#4350 Options in my.cnf style config file should not start with --
2008-09-05 15:31:09 +02:00
Magnus Svensson
93d835213e
Debug printouts
2008-08-11 10:41:23 +02:00
Magnus Svensson
182b14114a
Fixup mtr_unique. Remove usage of ps and grep. Make it a module. Move _process_alive to Platform.pm. Rename opt_baseport to baseport, it's not an option
2008-08-10 19:46:43 +02:00
Magnus Svensson
b530dc99c4
Remove debug printout
2008-07-24 22:22:47 +02:00
Magnus Svensson
10968f73a1
Instruct mysql_upgrade what tmpdir to use
2008-06-19 10:07:55 +02:00
unknown
c51ca133d1
Generate a unique tmpdir for each server to avoid that they delete each others
...
temporary files at start up - see 'mysql_rm_tmp_tables'
mysql-test/mysql-test-run.pl:
Create the servers tempdir before starting
2008-05-06 17:11:09 +02:00
unknown
67ea77eaee
Always set bogomips unless already set
...
Return undef only in case kstat works
Cpus reported once, but with 'cpu_count' set to the actual number
2008-05-04 16:35:16 +02:00
unknown
f2b57ac042
Use SysInfo.pm to find a suitable value for number of workers when
...
--parallel hasn't been specified
Add lib/My/SysInfo.pm
mysql-test/Makefile.am:
Add SysInfo.pm
mysql-test/mysql-test-run.pl:
Use SysInfo.pm to find a suitable value for number of workers when
--parallel hasn't been specified
mysql-test/lib/My/SysInfo.pm:
Add SysInfo.pm
2008-05-04 13:31:40 +02:00
unknown
59f38e7268
Run all check-warning and check-testcase in parallel, this also give the
...
oportunity to check if any other process fails during this.
Add possiblitiy to store "user_data" in a Safeprocess
Add function to get pid from a SafeProcess
mysql-test/lib/My/SafeProcess.pm:
Add possiblitiy to store "user_data" in a Safeprocess
Add function to get pid from a SafeProcess
mysql-test/lib/mtr_report.pm:
Print and detected test case sideffect also in the test server
mysql-test/mysql-test-run.pl:
Run all check-warning and check-testcase in parallel, this also give the
oportunity to check if any other process fails during this.
2008-04-27 21:31:32 +02:00
unknown
ce1ca19593
Merge pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-rpl
...
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-maint2
mysql-test/lib/mtr_cases.pm:
Auto merged
mysql-test/mysql-test-run.pl:
Manual merge
2008-04-27 15:43:22 +02:00
unknown
df8c1eb6fe
Add "match end of string" marker so that only "cluster_config.xxx" are found
2008-04-25 16:09:25 +02:00
unknown
ec19196c30
Merge pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-rpl
...
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-maint2
mysql-test/lib/mtr_cases.pm:
Auto merged
2008-04-25 14:39:24 +02:00
unknown
ff8287db98
Allow aplhanumericals in cluster_confgi.xxx sectio
2008-04-25 14:34:15 +02:00
unknown
72b0bda19e
Merge pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-rpl
...
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-maint2
2008-04-25 11:27:07 +02:00
unknown
dbf6b9dc3f
Be more prcise in which cluster_config sections should be expanded.
...
Ie don't treat cluster_config.mysqld.1.1 as a section specifying a cluster
2008-04-25 11:22:15 +02:00
unknown
adc257481c
Add support for running in parallel
...
mysql-test/lib/My/Options.pm:
Allow $VAR as option
mysql-test/lib/My/SafeProcess.pm:
Remove printouts
mysql-test/lib/My/Test.pm:
New BitKeeper file ``mysql-test/lib/My/Test.pm''
2008-04-24 13:02:53 +02:00
unknown
2d226292ff
Always return 0 inidcating that socket path would not be truncated when
...
running on windows. Apparently Cygwin tries to emulate UNIX Socket and thus
fails to create one.
2008-04-22 21:55:09 +02:00
unknown
1737e14c96
Since IO::Socket::UNIX is part of core perl, it's not enough to
...
"eval use" it. Instead trap the error that occurs when creating the socket
on platforms that does not support it.
2008-04-22 12:43:38 +02:00
unknown
3674c72d20
Improve 'collect_one_suite' so it looks in storage/*/mysql-test-suites by default
...
Also make it possible to specify a path to the suite, for example:
./mtr --suite=/some/path/to/suitedir
mysql-test/lib/My/Find.pm:
Extend 'my_find_paths' to glob path names
2008-04-22 12:40:48 +02:00
unknown
3d861b6724
Add check for unix socket path truncation
...
Don't allow unix socket path to be truncated
mysql-test/lib/My/Platform.pm:
Add check for unix socket path truncation
mysql-test/mysql-test-run.pl:
Don't allow socket path to be truncated. Fail and ask user to correct the problem by
using a shorter path with --tmpdir
2008-04-21 18:32:32 +02:00
unknown
7fe065ae03
Set verbose to off by default
2008-04-02 10:08:44 +02:00
unknown
16afab61ff
Only use safe_kill if SAFE_WINPID is defined
2008-03-14 19:15:01 +01:00
unknown
a79fac5d5a
kickstart the fake cygwin process in case safe_kill fails
...
Loop twice over process to shutdown, first handle thise that has been
shutdown and then continue with the ones that have been killed
2008-03-14 14:01:12 +01:00
unknown
29b5bd4751
Add additional printouts
...
Fix formatting
2008-03-14 13:34:39 +01:00
unknown
24640ab982
Find ndb binaries
...
Verbose SafeProcess.pm
mysql-test/mysql-test-run.pl:
Cleanup how script find ndb binaries and paths
Remove "executable_setup_failed" code, i.e either we have ndb support or we don't
Remove ndb_extra_test, not used by any test. If there is a need for that, just
create a new suite
mysql-test/lib/My/Find.pm:
Add possibility to use my_find_bin for a binary that is not required
mysql-test/lib/My/SafeProcess.pm:
Add verbose printous that can be turned on
Wait on process also if start_kill failed
Turn verbose on for windows
mysql-test/lib/My/SafeProcess/safe_kill_win.cc:
Extend sleep from 0 to 100
mysql-test/lib/mtr_cases.pm:
Remove ndb_extra
mysql-test/suite/rpl_ndb/t/rpl_ndb_circular.test:
Extra checks should be for Last_IO_Errno
2008-03-13 17:16:42 +01:00
unknown
055d5da858
New Makefile.am for mysql-test makes it pass also "make distcheck" and "make install"
...
mysql-test/lib/My/SafeProcess/Makefile.am:
Update Makefile.am to dist all relevant files
2008-03-13 17:07:11 +01:00
unknown
a4ee24e368
Also copy [mysqld] section to [embedded]
...
mysql-test/include/default_mysqld.cnf:
Use --slave-net-timeout instead of --set-variable=slave_net_timeout
2008-03-12 12:35:30 +01:00
unknown
7d336347d5
Improve process kill on windows
...
mysql-test/lib/My/SafeProcess.pm:
Ifnore Ctrl-C in timer process
Don't wait blocking for a preoces where start_kill fails
Rewrite sart_kill to return 0 for error and > 1 for sucess
mysql-test/lib/My/SafeProcess/safe_process_win.cc:
Add missing fflush(stderr) in 'die'
2008-03-12 11:32:18 +01:00
unknown
27c7181d98
Merge pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-mtr-win
...
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-mtr
mysql-test/lib/mtr_cases.pm:
Auto merged
2008-03-10 16:42:04 +01:00
unknown
91df8771c3
Improve error message dir -> croak
2008-03-10 16:37:37 +01:00
unknown
351092d81f
Ignore all common signals
...
Just retry OpenEvent a couple of times with a "yield" in between
2008-03-10 16:00:39 +01:00
unknown
551ab51c91
Print args in case requirement fails
2008-03-10 14:09:59 +01:00
unknown
4aced3b84d
Add retry logic for OpenEvent to avoid problems when the
...
process to kill hasn't yet created the event
2008-03-10 12:54:46 +01:00
unknown
a55bb29e37
Improve error messages
2008-03-06 10:19:41 +01:00
unknown
1c660c9c81
Don't ignore SIGCHLD since that affects waitpid on some platforms
...
Fix spelling error
Move exit_code into local scope
2008-03-04 12:32:51 +01:00