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
|
|
|
|
2005-11-03 04:05:15 +00:00
|
|
|
|
2007-03-12 17:08:30 +00:00
|
|
|
diff -Naur mysql-5.0.37.orig/Makefile.am mysql-5.0.37/Makefile.am
|
|
|
|
--- mysql-5.0.37.orig/Makefile.am 2007-03-05 14:21:11.000000000 -0500
|
|
|
|
+++ mysql-5.0.37/Makefile.am 2007-03-12 11:19:05.000000000 -0400
|
|
|
|
@@ -124,11 +124,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-03-12 17:08:30 +00:00
|
|
|
- @PERL@ ./mysql-test-run.pl $(force) --ps-protocol
|
|
|
|
+ @PERL@ ./mysql-test-run.pl $(force) --ssl --ps-protocol
|
2004-12-21 21:02:47 +00:00
|
|
|
|
2007-03-12 17:08:30 +00:00
|
|
|
test-ns:
|
|
|
|
cd mysql-test ; \
|
|
|
|
- @PERL@ ./mysql-test-run.pl $(force)
|
|
|
|
+ @PERL@ ./mysql-test-run.pl $(force) --ssl
|
|
|
|
|
|
|
|
test: test-ns test-ps
|
|
|
|
|
|
|
|
diff -Naur mysql-5.0.37.orig/mysql-test/lib/mtr_process.pl mysql-5.0.37/mysql-test/lib/mtr_process.pl
|
|
|
|
--- mysql-5.0.37.orig/mysql-test/lib/mtr_process.pl 2007-03-05 14:40:33.000000000 -0500
|
|
|
|
+++ mysql-5.0.37/mysql-test/lib/mtr_process.pl 2007-03-12 11:17:52.000000000 -0400
|
|
|
|
@@ -161,6 +161,9 @@
|
2007-02-09 20:32:52 +00:00
|
|
|
# became a deamon as well, and was hard to kill ;-)
|
|
|
|
# Need to catch SIGCHLD and do waitpid or something instead......
|
2006-06-10 17:43:55 +00:00
|
|
|
|
2007-02-09 20:32:52 +00:00
|
|
|
+ # dunno, it works for me ...
|
|
|
|
+ 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-03-12 17:08:30 +00:00
|
|
|
diff -Naur mysql-5.0.37.orig/mysql-test/mysql-test-run.pl mysql-5.0.37/mysql-test/mysql-test-run.pl
|
|
|
|
--- mysql-5.0.37.orig/mysql-test/mysql-test-run.pl 2007-03-05 14:21:11.000000000 -0500
|
|
|
|
+++ mysql-5.0.37/mysql-test/mysql-test-run.pl 2007-03-12 11:17:52.000000000 -0400
|
|
|
|
@@ -3906,7 +3906,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'},
|
|
|
|
"",
|