| |
@@ -6,7 +6,7 @@
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
Version: 0.5.4
|
| |
- Release: 2%{?dist}
|
| |
+ Release: 3%{?dist}
|
| |
Summary: A simple, fast Mysql library for Ruby, binding to libmysql
|
| |
License: MIT
|
| |
URL: https://github.com/brianmario/mysql2
|
| |
@@ -87,38 +87,44 @@
|
| |
|
| |
mkdir "${MYSQL_TEST_DATA_DIR}"
|
| |
mysql_install_db \
|
| |
+ --no-defaults \
|
| |
+ --auth-root-authentication-method=normal \
|
| |
--datadir="${MYSQL_TEST_DATA_DIR}" \
|
| |
--log-error="${MYSQL_TEST_LOG}"
|
| |
|
| |
%{_libexecdir}/mysqld \
|
| |
+ --no-defaults \
|
| |
--datadir="${MYSQL_TEST_DATA_DIR}" \
|
| |
--log-error="${MYSQL_TEST_LOG}" \
|
| |
--socket="${MYSQL_TEST_SOCKET}" \
|
| |
--pid-file="${MYSQL_TEST_PID_FILE}" \
|
| |
--port="${MYSQL_TEST_PORT}" \
|
| |
- --ssl &
|
| |
+ &
|
| |
+
|
| |
+ # ^^^ There are also SSL tests in the testuite,
|
| |
+ # but they require the DB server to be executed with SSL support.
|
| |
+ # That is done by adding '--ssl' argument
|
| |
+ #
|
| |
+ # However the DB server will abort, if the SSL isn't configured properly
|
| |
+ # (valid certificates etc.). So far we haven't got capacity to make the SSL working.
|
| |
+ # But their results should be valuable and it should be worth fixing.
|
| |
+ #
|
| |
+ # https://bugzilla.redhat.com/show_bug.cgi?id=2144488
|
| |
|
| |
for i in $(seq 10); do
|
| |
+ echo "Waiting for the DB server to accept connections ... ${i}"
|
| |
sleep 1
|
| |
- if grep -q 'ready for connections.' "${MYSQL_TEST_LOG}"; then
|
| |
+ if grep -q 'ready for connections' "${MYSQL_TEST_LOG}"; then
|
| |
break
|
| |
+ elif [ $i -eq 10 ]; then
|
| |
+ echo "ERROR: the DB server hasn't come online !"
|
| |
+ echo " the testuite can't be run !"
|
| |
+ echo "Here follows the DB server log: "
|
| |
+ cat "${MYSQL_TEST_LOG}"
|
| |
+ exit 1
|
| |
fi
|
| |
- echo "Waiting connections... ${i}"
|
| |
done
|
| |
|
| |
- # Reset password for the root user due to MariaDB 10.4 authentication change.
|
| |
- # See https://mariadb.com/kb/en/authentication-from-mariadb-104/#altering-the-user-account-to-revert-to-the-previous-authentication-method
|
| |
- mysql -u ${MYSQL_TEST_USER} \
|
| |
- -e "ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('')" \
|
| |
- -S "${MYSQL_TEST_SOCKET}" \
|
| |
- -P "${MYSQL_TEST_PORT}"
|
| |
-
|
| |
- # See https://github.com/brianmario/mysql2/blob/master/ci/setup.sh
|
| |
- mysql -u root \
|
| |
- -e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \
|
| |
- -S "${MYSQL_TEST_SOCKET}" \
|
| |
- -P "${MYSQL_TEST_PORT}"
|
| |
-
|
| |
# This GC method call is problematic on ppc64le builders, stalling the tests execution.
|
| |
# https://github.com/brianmario/mysql2/issues/1261
|
| |
%ifarch ppc64le
|
| |
@@ -168,6 +174,10 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Dec 08 2022 Michal Schorm <mschorm@redhat.com> - 0.5.4-3
|
| |
+ - Extensive fixes and enhancement to the testuite execution preparations code
|
| |
+ Related: rhbz#2144488
|
| |
+
|
| |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
|
| |