2007-02-09 20:32:52 +00:00
|
|
|
Hack the top-level Makefile to enable the openssl regression tests.
|
|
|
|
(Why doesn't this happen automatically given the configure option??)
|
2004-12-21 21:02:47 +00:00
|
|
|
|
2007-02-09 20:32:52 +00:00
|
|
|
Also, tweak the Perl test script so that the mysqld daemon gets detached
|
|
|
|
from the calling terminal session. Without this, the ssl_des test hangs up
|
|
|
|
because OpenSSL tries to read a PEM key from /dev/tty.
|
2004-12-21 21:02:47 +00:00
|
|
|
|
2007-07-22 20:35:24 +00:00
|
|
|
Also, tweak the Perl test script to find some files where we install them;
|
|
|
|
without this, the build-time test works but the mysql-test RPM doesn't.
|
2005-11-03 04:05:15 +00:00
|
|
|
|
2007-07-22 20:35:24 +00:00
|
|
|
|
2008-08-23 20:31:19 +00:00
|
|
|
diff -Naur mysql-5.0.67.orig/Makefile.am mysql-5.0.67/Makefile.am
|
|
|
|
--- mysql-5.0.67.orig/Makefile.am 2008-08-04 08:18:47.000000000 -0400
|
|
|
|
+++ mysql-5.0.67/Makefile.am 2008-08-23 13:49:56.000000000 -0400
|
|
|
|
@@ -127,11 +127,11 @@
|
2005-11-03 04:05:15 +00:00
|
|
|
|
2007-03-12 17:08:30 +00:00
|
|
|
test-ps:
|
2005-11-03 04:05:15 +00:00
|
|
|
cd mysql-test ; \
|
2008-08-23 20:31:19 +00:00
|
|
|
- @PERL@ ./mysql-test-run.pl $(force) $(mem) --ps-protocol
|
|
|
|
+ @PERL@ ./mysql-test-run.pl $(force) $(mem) --ssl --ps-protocol
|
2004-12-21 21:02:47 +00:00
|
|
|
|
2007-03-12 17:08:30 +00:00
|
|
|
test-ns:
|
|
|
|
cd mysql-test ; \
|
2008-08-23 20:31:19 +00:00
|
|
|
- @PERL@ ./mysql-test-run.pl $(force) $(mem)
|
|
|
|
+ @PERL@ ./mysql-test-run.pl $(force) $(mem) --ssl
|
2007-03-12 17:08:30 +00:00
|
|
|
|
|
|
|
test: test-ns test-ps
|
|
|
|
|
2008-08-23 20:31:19 +00:00
|
|
|
diff -Naur mysql-5.0.67.orig/mysql-test/lib/mtr_process.pl mysql-5.0.67/mysql-test/lib/mtr_process.pl
|
|
|
|
--- mysql-5.0.67.orig/mysql-test/lib/mtr_process.pl 2008-08-04 08:32:17.000000000 -0400
|
|
|
|
+++ mysql-5.0.67/mysql-test/lib/mtr_process.pl 2008-08-23 13:48:23.000000000 -0400
|
|
|
|
@@ -150,6 +150,9 @@
|
2007-07-22 20:35:24 +00:00
|
|
|
{
|
|
|
|
# Child, redirect output and exec
|
2006-06-10 17:43:55 +00:00
|
|
|
|
2007-07-22 20:35:24 +00:00
|
|
|
+ # Needed to become detached from terminal session
|
2007-02-09 20:32:52 +00:00
|
|
|
+ POSIX::setsid();
|
2006-06-10 17:43:55 +00:00
|
|
|
+
|
2007-02-09 20:32:52 +00:00
|
|
|
$SIG{INT}= 'DEFAULT'; # Parent do some stuff, we don't
|
|
|
|
|
|
|
|
my $log_file_open_mode = '>';
|
2008-08-23 20:31:19 +00:00
|
|
|
diff -Naur mysql-5.0.67.orig/mysql-test/mysql-test-run.pl mysql-5.0.67/mysql-test/mysql-test-run.pl
|
|
|
|
--- mysql-5.0.67.orig/mysql-test/mysql-test-run.pl 2008-08-04 08:19:21.000000000 -0400
|
|
|
|
+++ mysql-5.0.67/mysql-test/mysql-test-run.pl 2008-08-23 13:48:23.000000000 -0400
|
|
|
|
@@ -1510,13 +1510,15 @@
|
2007-07-22 20:35:24 +00:00
|
|
|
|
|
|
|
$exe_ndbd=
|
|
|
|
mtr_exe_maybe_exists("$ndb_path/src/kernel/ndbd",
|
|
|
|
- "$ndb_path/ndbd");
|
|
|
|
+ "$ndb_path/ndbd",
|
|
|
|
+ "/usr/libexec/ndbd");
|
|
|
|
$exe_ndb_mgm=
|
|
|
|
mtr_exe_maybe_exists("$ndb_path/src/mgmclient/ndb_mgm",
|
|
|
|
"$ndb_path/ndb_mgm");
|
|
|
|
$exe_ndb_mgmd=
|
|
|
|
mtr_exe_maybe_exists("$ndb_path/src/mgmsrv/ndb_mgmd",
|
|
|
|
- "$ndb_path/ndb_mgmd");
|
|
|
|
+ "$ndb_path/ndb_mgmd",
|
|
|
|
+ "/usr/libexec/ndb_mgmd");
|
|
|
|
$exe_ndb_waiter=
|
|
|
|
mtr_exe_maybe_exists("$ndb_path/tools/ndb_waiter",
|
|
|
|
"$ndb_path/ndb_waiter");
|
2008-08-23 20:31:19 +00:00
|
|
|
@@ -1617,7 +1619,8 @@
|
2007-07-22 20:35:24 +00:00
|
|
|
# Look for mysql_fix_privilege_tables.sql script
|
|
|
|
$file_mysql_fix_privilege_tables=
|
|
|
|
mtr_file_exists("$glob_basedir/scripts/mysql_fix_privilege_tables.sql",
|
|
|
|
- "$glob_basedir/share/mysql_fix_privilege_tables.sql");
|
|
|
|
+ "$glob_basedir/share/mysql_fix_privilege_tables.sql",
|
|
|
|
+ "$path_share/mysql_fix_privilege_tables.sql");
|
|
|
|
|
|
|
|
if ( ! $opt_skip_ndbcluster and executable_setup_ndb()) {
|
|
|
|
mtr_warning("Could not find all required ndb binaries, " .
|
2008-08-23 20:31:19 +00:00
|
|
|
@@ -4094,7 +4097,7 @@
|
2007-02-09 20:32:52 +00:00
|
|
|
|
|
|
|
if ( defined $exe )
|
|
|
|
{
|
|
|
|
- $pid= mtr_spawn($exe, $args, "",
|
|
|
|
+ $pid= mtr_spawn($exe, $args, '/dev/null',
|
|
|
|
$mysqld->{'path_myerr'},
|
|
|
|
$mysqld->{'path_myerr'},
|
|
|
|
"",
|