From 7aae1f5c3e8f856ad2eaab7d2ea0a3568b682093 Mon Sep 17 00:00:00 2001 From: Paul Zander Date: Thu, 2 Oct 2025 16:21:43 +0200 Subject: [PATCH] dev-build/cmake: use CMAKE_SKIP_TESTS Signed-off-by: Paul Zander Signed-off-by: Sam James --- dev-build/cmake/cmake-4.1.2-r1.ebuild | 39 ++++++++++++++++--------- dev-build/cmake/cmake-4.1.4.ebuild | 41 ++++++++++++++++++--------- dev-build/cmake/cmake-4.1.5.ebuild | 41 ++++++++++++++++++--------- dev-build/cmake/cmake-4.2.4.ebuild | 41 ++++++++++++++++++--------- dev-build/cmake/cmake-4.3.1.ebuild | 41 ++++++++++++++++++--------- dev-build/cmake/cmake-9999.ebuild | 41 ++++++++++++++++++--------- 6 files changed, 161 insertions(+), 83 deletions(-) diff --git a/dev-build/cmake/cmake-4.1.2-r1.ebuild b/dev-build/cmake/cmake-4.1.2-r1.ebuild index 46c92dcdc2e48..b026a3c32ec57 100644 --- a/dev-build/cmake/cmake-4.1.2-r1.ebuild +++ b/dev-build/cmake/cmake-4.1.2-r1.ebuild @@ -265,21 +265,34 @@ src_test() { pushd "${BUILD_DIR}" > /dev/null || die # Excluded tests: - # BootstrapTest: we actually bootstrap it every time so why test it? - # BundleUtilities: bundle creation broken - # CMakeOnly.AllFindModules: pthread issues - # CTest.updatecvs: which fails to commit as root - # Fortran: requires fortran - # RunCMake.CompilerLauncher: also requires fortran - # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because - # debugedit binary is not in the expected location - # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because - # it can't find a deb package that owns libc - # TestUpload, which requires network access - # RunCMake.CMP0125, known failure reported upstream (bug #829414) + local CMAKE_SKIP_TESTS=( + # BootstrapTest: we actually bootstrap it every time so why test it? + "BootstrapTest" + # BundleUtilities: bundle creation broken + "BundleUtilities" + # CMakeOnly.AllFindModules: pthread issues + "CMakeOnly.AllFindModules" + # TODO + "CompileOptions" + # CTest.updatecvs: which fails to commit as root + "CTest.UpdateCVS" + # Fortran: requires fortran + "Fortran" + # RunCMake.CompilerLauncher: also requires fortran + "RunCMake.CompilerLauncher" + # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because + # debugedit binary is not in the expected location + # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because + # it can't find a deb package that owns libc + "RunCMake.CPack_(DEB|RPM)" + # TestUpload, which requires network access + "TestUpload" + # RunCMake.CMP0125, known failure reported upstream (bug #829414) + "RunCMake.CMP0125" + ) + local myctestargs=( --output-on-failure - -E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|Fortran|RunCMake.CompilerLauncher|RunCMake.CPack_(DEB|RPM)|TestUpload|RunCMake.CMP0125)" \ ) local -x QT_QPA_PLATFORM=offscreen diff --git a/dev-build/cmake/cmake-4.1.4.ebuild b/dev-build/cmake/cmake-4.1.4.ebuild index 53636d426c738..5d1966e55719f 100644 --- a/dev-build/cmake/cmake-4.1.4.ebuild +++ b/dev-build/cmake/cmake-4.1.4.ebuild @@ -265,22 +265,35 @@ src_test() { pushd "${BUILD_DIR}" > /dev/null || die # Excluded tests: - # BootstrapTest: we actually bootstrap it every time so why test it? - # BundleUtilities: bundle creation broken - # CMakeOnly.AllFindModules: pthread issues - # CTest.updatecvs: which fails to commit as root - # Fortran: requires fortran - # RunCMake.CompilerLauncher: also requires fortran - # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because - # debugedit binary is not in the expected location - # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because - # it can't find a deb package that owns libc - # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) - # TestUpload, which requires network access - # RunCMake.CMP0125, known failure reported upstream (bug #829414) + local CMAKE_SKIP_TESTS=( + # BootstrapTest: we actually bootstrap it every time so why test it? + "BootstrapTest" + # BundleUtilities: bundle creation broken + "BundleUtilities" + # CMakeOnly.AllFindModules: pthread issues + "CMakeOnly.AllFindModules" + # TODO + "CompileOptions" + # CTest.updatecvs: which fails to commit as root + "CTest.UpdateCVS" + # Fortran: requires fortran + "Fortran" + # RunCMake.CompilerLauncher: also requires fortran + "RunCMake.CompilerLauncher" + # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because + # debugedit binary is not in the expected location + # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because + # it can't find a deb package that owns libc + # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) + "RunCMake.CPack_(DEB|RPM|TGZ)" + # TestUpload, which requires network access + "TestUpload" + # RunCMake.CMP0125, known failure reported upstream (bug #829414) + "RunCMake.CMP0125" + ) + local myctestargs=( --output-on-failure - -E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|Fortran|RunCMake.CompilerLauncher|RunCMake.CPack_(DEB|RPM|TGZ)|TestUpload|RunCMake.CMP0125)" \ ) local -x QT_QPA_PLATFORM=offscreen diff --git a/dev-build/cmake/cmake-4.1.5.ebuild b/dev-build/cmake/cmake-4.1.5.ebuild index 30513f3c220d6..e51c4aa052740 100644 --- a/dev-build/cmake/cmake-4.1.5.ebuild +++ b/dev-build/cmake/cmake-4.1.5.ebuild @@ -265,22 +265,35 @@ src_test() { pushd "${BUILD_DIR}" > /dev/null || die # Excluded tests: - # BootstrapTest: we actually bootstrap it every time so why test it? - # BundleUtilities: bundle creation broken - # CMakeOnly.AllFindModules: pthread issues - # CTest.updatecvs: which fails to commit as root - # Fortran: requires fortran - # RunCMake.CompilerLauncher: also requires fortran - # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because - # debugedit binary is not in the expected location - # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because - # it can't find a deb package that owns libc - # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) - # TestUpload, which requires network access - # RunCMake.CMP0125, known failure reported upstream (bug #829414) + local CMAKE_SKIP_TESTS=( + # BootstrapTest: we actually bootstrap it every time so why test it? + "BootstrapTest" + # BundleUtilities: bundle creation broken + "BundleUtilities" + # CMakeOnly.AllFindModules: pthread issues + "CMakeOnly.AllFindModules" + # TODO + "CompileOptions" + # CTest.updatecvs: which fails to commit as root + "CTest.UpdateCVS" + # Fortran: requires fortran + "Fortran" + # RunCMake.CompilerLauncher: also requires fortran + "RunCMake.CompilerLauncher" + # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because + # debugedit binary is not in the expected location + # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because + # it can't find a deb package that owns libc + # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) + "RunCMake.CPack_(DEB|RPM|TGZ)" + # TestUpload, which requires network access + "TestUpload" + # RunCMake.CMP0125, known failure reported upstream (bug #829414) + "RunCMake.CMP0125" + ) + local myctestargs=( --output-on-failure - -E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|Fortran|RunCMake.CompilerLauncher|RunCMake.CPack_(DEB|RPM|TGZ)|TestUpload|RunCMake.CMP0125)" \ ) local -x QT_QPA_PLATFORM=offscreen diff --git a/dev-build/cmake/cmake-4.2.4.ebuild b/dev-build/cmake/cmake-4.2.4.ebuild index 347f30d70bc6c..2bf2d51bef500 100644 --- a/dev-build/cmake/cmake-4.2.4.ebuild +++ b/dev-build/cmake/cmake-4.2.4.ebuild @@ -264,22 +264,35 @@ src_test() { pushd "${BUILD_DIR}" > /dev/null || die # Excluded tests: - # BootstrapTest: we actually bootstrap it every time so why test it? - # BundleUtilities: bundle creation broken - # CMakeOnly.AllFindModules: pthread issues - # CTest.updatecvs: which fails to commit as root - # Fortran: requires fortran - # RunCMake.CompilerLauncher: also requires fortran - # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because - # debugedit binary is not in the expected location - # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because - # it can't find a deb package that owns libc - # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) - # TestUpload, which requires network access - # RunCMake.CMP0125, known failure reported upstream (bug #829414) + local CMAKE_SKIP_TESTS=( + # BootstrapTest: we actually bootstrap it every time so why test it? + "BootstrapTest" + # BundleUtilities: bundle creation broken + "BundleUtilities" + # CMakeOnly.AllFindModules: pthread issues + "CMakeOnly.AllFindModules" + # TODO + "CompileOptions" + # CTest.updatecvs: which fails to commit as root + "CTest.UpdateCVS" + # Fortran: requires fortran + "Fortran" + # RunCMake.CompilerLauncher: also requires fortran + "RunCMake.CompilerLauncher" + # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because + # debugedit binary is not in the expected location + # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because + # it can't find a deb package that owns libc + # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) + "RunCMake.CPack_(DEB|RPM|TGZ)" + # TestUpload, which requires network access + "TestUpload" + # RunCMake.CMP0125, known failure reported upstream (bug #829414) + "RunCMake.CMP0125" + ) + local myctestargs=( --output-on-failure - -E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|Fortran|RunCMake.CompilerLauncher|RunCMake.CPack_(DEB|RPM|TGZ)|TestUpload|RunCMake.CMP0125)" \ ) local -x QT_QPA_PLATFORM=offscreen diff --git a/dev-build/cmake/cmake-4.3.1.ebuild b/dev-build/cmake/cmake-4.3.1.ebuild index 7f43f4651187a..bbc0c27adab43 100644 --- a/dev-build/cmake/cmake-4.3.1.ebuild +++ b/dev-build/cmake/cmake-4.3.1.ebuild @@ -264,22 +264,35 @@ src_test() { pushd "${BUILD_DIR}" > /dev/null || die # Excluded tests: - # BootstrapTest: we actually bootstrap it every time so why test it? - # BundleUtilities: bundle creation broken - # CMakeOnly.AllFindModules: pthread issues - # CTest.updatecvs: which fails to commit as root - # Fortran: requires fortran - # RunCMake.CompilerLauncher: also requires fortran - # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because - # debugedit binary is not in the expected location - # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because - # it can't find a deb package that owns libc - # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) - # TestUpload, which requires network access - # RunCMake.CMP0125, known failure reported upstream (bug #829414) + local CMAKE_SKIP_TESTS=( + # BootstrapTest: we actually bootstrap it every time so why test it? + "BootstrapTest" + # BundleUtilities: bundle creation broken + "BundleUtilities" + # CMakeOnly.AllFindModules: pthread issues + "CMakeOnly.AllFindModules" + # TODO + "CompileOptions" + # CTest.updatecvs: which fails to commit as root + "CTest.UpdateCVS" + # Fortran: requires fortran + "Fortran" + # RunCMake.CompilerLauncher: also requires fortran + "RunCMake.CompilerLauncher" + # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because + # debugedit binary is not in the expected location + # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because + # it can't find a deb package that owns libc + # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) + "RunCMake.CPack_(DEB|RPM|TGZ)" + # TestUpload, which requires network access + "TestUpload" + # RunCMake.CMP0125, known failure reported upstream (bug #829414) + "RunCMake.CMP0125" + ) + local myctestargs=( --output-on-failure - -E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|Fortran|RunCMake.CompilerLauncher|RunCMake.CPack_(DEB|RPM|TGZ)|TestUpload|RunCMake.CMP0125)" \ ) local -x QT_QPA_PLATFORM=offscreen diff --git a/dev-build/cmake/cmake-9999.ebuild b/dev-build/cmake/cmake-9999.ebuild index 7f43f4651187a..bbc0c27adab43 100644 --- a/dev-build/cmake/cmake-9999.ebuild +++ b/dev-build/cmake/cmake-9999.ebuild @@ -264,22 +264,35 @@ src_test() { pushd "${BUILD_DIR}" > /dev/null || die # Excluded tests: - # BootstrapTest: we actually bootstrap it every time so why test it? - # BundleUtilities: bundle creation broken - # CMakeOnly.AllFindModules: pthread issues - # CTest.updatecvs: which fails to commit as root - # Fortran: requires fortran - # RunCMake.CompilerLauncher: also requires fortran - # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because - # debugedit binary is not in the expected location - # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because - # it can't find a deb package that owns libc - # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) - # TestUpload, which requires network access - # RunCMake.CMP0125, known failure reported upstream (bug #829414) + local CMAKE_SKIP_TESTS=( + # BootstrapTest: we actually bootstrap it every time so why test it? + "BootstrapTest" + # BundleUtilities: bundle creation broken + "BundleUtilities" + # CMakeOnly.AllFindModules: pthread issues + "CMakeOnly.AllFindModules" + # TODO + "CompileOptions" + # CTest.updatecvs: which fails to commit as root + "CTest.UpdateCVS" + # Fortran: requires fortran + "Fortran" + # RunCMake.CompilerLauncher: also requires fortran + "RunCMake.CompilerLauncher" + # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because + # debugedit binary is not in the expected location + # RunCMake.CPack_DEB: breaks if app-arch/dpkg is installed because + # it can't find a deb package that owns libc + # RunCMake.CPack_TGZ: requires 64-bit time_t (bug #967480) + "RunCMake.CPack_(DEB|RPM|TGZ)" + # TestUpload, which requires network access + "TestUpload" + # RunCMake.CMP0125, known failure reported upstream (bug #829414) + "RunCMake.CMP0125" + ) + local myctestargs=( --output-on-failure - -E "(BootstrapTest|BundleUtilities|CMakeOnly.AllFindModules|CompileOptions|CTest.UpdateCVS|Fortran|RunCMake.CompilerLauncher|RunCMake.CPack_(DEB|RPM|TGZ)|TestUpload|RunCMake.CMP0125)" \ ) local -x QT_QPA_PLATFORM=offscreen