Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # test case test-connect is excluded. Becasue this test case need following steps before running. |
| 4 | # Without these steps, test case test-connect will fail. |
| 5 | # 1. Disable 'skip-networking' in /etc/my.cnf |
| 6 | # $ sed -i '/skip-networking/s/^/#/g' /etc/my.cnf |
| 7 | # 2. Restart mysqld.service |
| 8 | # $ systemctl restart mysqld |
| 9 | # 3. Set password for MySQL user "root" |
| 10 | # $ mysql -u root |
| 11 | # MariaDB [(none)]> SET PASSWORD FOR "root"@"localhost" = PASSWORD("myReallyStrongPwd"); |
| 12 | # MariaDB [(none)]> FLUSH PRIVILEGES; |
| 13 | |
| 14 | # If test-connect is included, please uncomment these lines. |
| 15 | #export MASTER_MYPORT=3306 |
| 16 | #export MYSQL_TEST_HOST=127.0.0.1 |
| 17 | #export MYSQL_TEST_USER=root |
| 18 | #export MYSQL_TEST_PASSWD=myReallyStrongPwd |
| 19 | |
| 20 | ctest --force-new-ctest-process -E test-connect | sed -u 's/\*\*\*/ /g' | awk '/Test +#/{gsub(/Passed/,"PASS"); gsub(/Failed/,"FAIL"); gsub(/Skipped/,"SKIP"); print $6": "$4; fflush();}' |