Commit graph

76 commits

Author SHA1 Message Date
Sven Sandberg
75017750c3 BUG#41959: mtr: error message when mkpath() fails and the file exists but is not directory
Problem: when mtr tries to create a directory, and the target
exists but is a file instead of directory, it tries several times
to create the directory again before it fails.
Fix: make it check if the target exists and is a non-directory.


mysql-test/lib/My/File/Path.pm:
  mkpath() now stops with appropriate error message if the target
  exists but is a non-directory.
2009-01-08 14:28:40 +01:00
Magnus Svensson
949b2f1c0c Bug#41480 Tests that do LOAD DATA INFILE fail when run locally
mysql-test/lib/My/File/Path.pm:
  Extend 'copytree' to take an optional "umask" parameter that will be used while copying the files
mysql-test/mysql-test-run.pl:
  Pass umask 0022 to copytree so that the copied files will be created world readable and the mysqld
  can LOAD DATA INFILE them
2008-12-18 13:58:55 +01:00
Magnus Svensson
950d5d2760 Bug#40715 mtr fails when running the same test case in parallel threads
mysql-test/lib/My/Test.pm:
  Use a more unique key to identify which test has been serialized
2008-11-14 11:49:12 +01:00
Sven Sandberg
906fc6bb95 BUG#38817: please make mtr analyze crashes better
Post-push fixes making it work on pushbuild's valgrind host, and clarifying the output.


mysql-test/lib/My/CoreDump.pm:
  - Improved parsing of mtr output so that it works on pushbuild's "valgrind" host.
  - Added stack trace for the thread that coredumped, to make output more readable when there are many threads.
  - Added explanation of what the output consists of.
  - Added early removal of temp file.
2008-10-13 18:14:30 +02:00
Magnus Svensson
770ef5c307 WL#4189 Set parallel to 1 if running under vmware on windows 2008-10-11 17:30:26 +02:00
Magnus Svensson
6a10718848 WL#4189 Add retry logic to mkpath to avoid temporary permission denied problems 2008-10-11 17:06:34 +02:00
Magnus Svensson
9ffab58506 WL#41890 After review fixes, remove unecessary if's 2008-10-10 09:19:19 +02:00
Magnus Svensson
7dca45f8b2 Merge 2008-10-08 22:43:37 +02:00
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