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
|
|
|
|
|
|
|
diff -Naur mysql-5.0.40.orig/Makefile.am mysql-5.0.40/Makefile.am
|
|
|
|
--- mysql-5.0.40.orig/Makefile.am 2007-04-20 10:14:34.000000000 -0400
|
|
|
|
+++ mysql-5.0.40/Makefile.am 2007-05-23 12:59:49.000000000 -0400
|
|
|
|
@@ -126,11 +126,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 ; \
|
2007-07-22 20:35:24 +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 ; \
|
2007-07-22 20:35:24 +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
|
|
|
|
|
2007-07-22 20:35:24 +00:00
|
|
|
diff -Naur mysql-5.0.40.orig/mysql-test/lib/mtr_process.pl mysql-5.0.40/mysql-test/lib/mtr_process.pl
|
|
|
|
--- mysql-5.0.40.orig/mysql-test/lib/mtr_process.pl 2007-04-20 10:39:41.000000000 -0400
|
|
|
|
+++ mysql-5.0.40/mysql-test/lib/mtr_process.pl 2007-05-23 12:59:49.000000000 -0400
|
|
|
|
@@ -148,6 +148,9 @@
|
|
|
|
{
|
|
|
|
# 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 = '>';
|
2007-07-22 20:35:24 +00:00
|
|
|
diff -Naur mysql-5.0.40.orig/mysql-test/mysql-test-run.pl mysql-5.0.40/mysql-test/mysql-test-run.pl
|
|
|
|
--- mysql-5.0.40.orig/mysql-test/mysql-test-run.pl 2007-04-20 10:14:30.000000000 -0400
|
|
|
|
+++ mysql-5.0.40/mysql-test/mysql-test-run.pl 2007-05-23 13:02:12.000000000 -0400
|
|
|
|
@@ -1465,13 +1465,15 @@
|
|
|
|
|
|
|
|
$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");
|
|
|
|
@@ -1572,7 +1574,8 @@
|
|
|
|
# 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, " .
|
|
|
|
@@ -3999,7 +4002,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'},
|
|
|
|
"",
|