Current Path : /home/usr.opt/mysql57/mysql-test/suite/auth_sec/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/auth_sec/t/openssl_cert_generation_debug.test |
--source include/have_debug.inc --source include/not_embedded.inc --source include/have_sha256_rsa_auth.inc --echo # 1. Setup --echo # We let our server restart attempts write to the file $error_log. let $error_log= $MYSQLTEST_VARDIR/log/my_restart.err; perl; my $filetodelete = "$ENV{'MYSQLTEST_VARDIR'}/log/my_restart.err"; while (-e $filetodelete) { unlink $filetodelete; sleep 1; } EOF let SEARCH_FILE= $error_log; --echo # Stop the server let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect; --exec echo "wait" > $restart_file --shutdown_server --source include/wait_until_disconnected.inc --sleep 1 --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca-key.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/server-cert.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/server-key.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/client-cert.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/client-key.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/private_key.pem --error 0, 1 --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/public_key.pem --echo # 2. Checks for --auto_generate_certs let generate_ssl_certs=ON; let generate_rsa_keys=OFF; let debug_pattern= "d,null_rsa_error"; let error_pattern= Could not generate RSA private key required for X509 certificate; --source include/openssl_cert_generation_debug_test.inc let debug_pattern= "d,key_file_write_error"; let error_pattern= Could not write key file: ; --source include/openssl_cert_generation_debug_test.inc let debug_pattern= "d,ca_key_read_error"; let error_pattern= Could not read CA key file: ; --source include/openssl_cert_generation_debug_test.inc --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca.pem --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca-key.pem --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/server-key.pem let debug_pattern= "d,ca_cert_read_error"; let error_pattern= Could not read CA certificate file: ; --source include/openssl_cert_generation_debug_test.inc --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca.pem --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca-key.pem --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/server-key.pem let debug_pattern= "d,x509_cert_generation_error"; let error_pattern= Could not generate X509 certificate; --source include/openssl_cert_generation_debug_test.inc --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca-key.pem let debug_pattern= "d,cert_pub_key_write_error"; let error_pattern= Could not write certificate file: ; --source include/openssl_cert_generation_debug_test.inc --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca-key.pem --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/ca.pem --echo # 3. Checks for --sha256_password_auto_generate_rsa_keys let generate_ssl_certs=OFF; let generate_rsa_keys=ON; let debug_pattern= "d,null_rsa_error"; let error_pattern= Could not generate RSA Private/Public key pair; --source include/openssl_cert_generation_debug_test.inc let debug_pattern= "d,key_file_write_error"; let error_pattern= Could not write private key file: ; --source include/openssl_cert_generation_debug_test.inc --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/private_key.pem let debug_pattern= "d,cert_pub_key_write_error"; let error_pattern= Could not write public key file: ; --source include/openssl_cert_generation_debug_test.inc --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/private_key.pem --remove_file $MYSQLTEST_VARDIR/mysqld.1/data/public_key.pem --echo # 4. Restart the server and cleanup --exec echo "restart" > $restart_file --enable_reconnect --source include/wait_until_connected_again.inc --disable_reconnect perl; my $filetodelete = "$ENV{'MYSQLTEST_VARDIR'}/tmp/mysqld.1.expect"; while (-e $filetodelete) { unlink $filetodelete; sleep 1; } my $filetodelete = "$ENV{'MYSQLTEST_VARDIR'}/log/my_restart.err"; while (-e $filetodelete) { unlink $filetodelete; sleep 1; } EOF