diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-21 08:40:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-21 08:40:51 +0100 |
commit | 4dec1dfeca8e16b25934ff861c9eab7d1a8758a1 (patch) | |
tree | 6baa6667b5a6f8803404d9c87646bbaccbff3d41 /metadata/install-qa-check.d | |
parent | 766dae6306eab8ca7e982499e2cab68eb5ecb105 (diff) |
gentoo auto-resync : 21:08:2022 - 08:40:51
Diffstat (limited to 'metadata/install-qa-check.d')
-rw-r--r-- | metadata/install-qa-check.d/60noop-testsuites | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/metadata/install-qa-check.d/60noop-testsuites b/metadata/install-qa-check.d/60noop-testsuites new file mode 100644 index 000000000000..82e3de6b7ed3 --- /dev/null +++ b/metadata/install-qa-check.d/60noop-testsuites @@ -0,0 +1,28 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# QA check: look for autotools-based tests are actually no-ops +# Maintainer: Quality Assurance team <qa@gentoo.org> + +noop_testsuite_check() { + use test || return + + IFS= readarray -t noop_testsuites < <(find "${S}" -type f -name 'test-suite.log' -print0 | xargs -0 grep -l "TOTAL: 0" 2>/dev/null) + + if [[ -n ${noop_testsuites[@]} ]]; then + eqawarn "QA Notice: Test suite passed but did not actually execute any tests:" + eqawarn + for suite in ${noop_testsuites[@]} + do + # can't use eqatag here because filenames must be relative to ${D}, + # but our test suite log files only exist in ${S} + eqawarn "\t${suite#${S}/}" + done + eqawarn + fi +} + +noop_testsuite_check +: # guarantee successful exit + +# vim:ft=sh |