summaryrefslogtreecommitdiff
path: root/dev-db/mysql/mysql-8.0.40.ebuild
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2025-03-09 11:23:42 +0200
committerSam James <sam@gentoo.org>2025-03-10 00:19:14 +0000
commit80d9cdbd71de3830f86d3baba60718dbfe9a77c4 (patch)
treebf3ed2da0ed777666d7e94f1c97cafac87b191fb /dev-db/mysql/mysql-8.0.40.ebuild
parent301cd23e23a7bc7961bbba29733bb488f914c30b (diff)
downloadgentoo-80d9cdbd71de3830f86d3baba60718dbfe9a77c4.tar.gz
gentoo-80d9cdbd71de3830f86d3baba60718dbfe9a77c4.tar.bz2
gentoo-80d9cdbd71de3830f86d3baba60718dbfe9a77c4.zip
dev-db/mysql: miscellanous test tweaks
This is the next stable candidate. Hopefully its less painful to the arch teams. * Use REQUIRED_USE instead of silently skipping tests for when server is disabled. * Allow success despite unstable tests and get more infromation about features in tests. Add instructions on attaching a tarball with logs for test failures. Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/mysql/mysql-8.0.40.ebuild')
-rw-r--r--dev-db/mysql/mysql-8.0.40.ebuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/dev-db/mysql/mysql-8.0.40.ebuild b/dev-db/mysql/mysql-8.0.40.ebuild
index 7138143ad509..5957c41998a9 100644
--- a/dev-db/mysql/mysql-8.0.40.ebuild
+++ b/dev-db/mysql/mysql-8.0.40.ebuild
@@ -391,11 +391,6 @@ src_test() {
einfo "Official test instructions:"
einfo "ulimit -n 16500 && USE='perl server' FEATURES='test userpriv' ebuild ..."
- if ! use server ; then
- ewarn "Skipping server tests due to minimal build!"
- return 0
- fi
-
# Ensure that parallel runs don't die
local -x MTR_BUILD_THREAD="$((${RANDOM} % 100))"
@@ -429,7 +424,7 @@ src_test() {
"${FILESDIR}"/my.cnf-8.0.distro-client \
"${FILESDIR}"/my.cnf-8.0.distro-server \
> "${T}"/my.cnf || die
- local -X PATH_CONFIG_FILE="${T}/my.cnf"
+ local -x PATH_CONFIG_FILE="${T}/my.cnf"
# Create directories because mysqladmin might run out of order
mkdir -p "${T}"/var-tests{,/log} || die
@@ -512,7 +507,7 @@ src_test() {
if use debug; then
disabled_tests+=(
- "innodb.dblwr_unencrypt;0;Known test failure -- no upstream bug yet"
+ "innodb.dblwr_unencrypt;0;Unstable test"
)
fi
@@ -588,7 +583,10 @@ src_test() {
--force --force-restart \
--vardir="${VARDIR}" --tmpdir="${T}/tmp-tests" \
--skip-test=tokudb --skip-test-list="${T}/disabled.def" \
- --retry-failure=2 --max-test-fail=0
+ --max-test-fail=0 \
+ --retry=3 --retry-failure=2 \
+ --report-unstable-tests \
+ --report-features
retstatus_tests=$?
if [[ "${VARDIR}" != "${T}/var-tests" ]]; then
@@ -598,19 +596,22 @@ src_test() {
rm -rf "${VARDIR}" 2>/dev/null
fi
+ if [[ "${retstatus_tests}" -ne 0 ]]; then
+ eerror "Tests failed. When you file a bug, please attach the following items:"
+ eerror "The file that is created with this command:"
+ eerror "\t'find ${T}/var-tests -name '*.log' | tar -caf mysql-test-logs.tar.xz --files-from -'"
+ fi
+
popd &>/dev/null || die
# Cleanup is important for these testcases.
pkill -9 -f "${S}/ndb" 2>/dev/null
pkill -9 -f "${S}/sql" 2>/dev/null
- local failures=""
- [[ ${retstatus_tests} -eq 0 ]] || failures="${failures} tests"
-
# bug #823656
cmake_src_test --test-command "--gtest_death_test_style=threadsafe"
- [[ -z "${failures}" ]] || die "Test failures: ${failures}"
+ [[ "${retstatus_tests}" -ne 0 ]] && die "Test failures: mysql-test-run.pl"
einfo "Tests successfully completed"
}