From patchwork Mon Nov 30 06:43:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Murray X-Patchwork-Id: 106358 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.27393.1796021028677570824 for ; Sun, 29 Nov 2026 22:43:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=DehWRf+M; spf=pass (domain: konsulko.com, ip: 209.85.128.45, mailfrom: scott.murray@konsulko.com) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4a5177d78c7so103212105e9.2 for ; Sun, 29 Nov 2026 22:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796021027; x=1796625827; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=dmR4FsoTEpbQfmKxmoH64cPtSZqDcaM6hIFTynk97RU=; b=DehWRf+MQXSCA6Zz9wXkffTWma0Y6vv8fcM31GD+1y2B+dGuSzThYMJjMGu7Mwdm5U QXQSqrFnJUgtNCjJK2B9XkKUkltbv0OsP7IOKK4tvDexJH4f3Pw3EqJWBg0olesaztYj 1sEvsBgXbuGkwqYsxQOPrf4Qr8/0ESbY1LNlw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796021027; x=1796625827; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=dmR4FsoTEpbQfmKxmoH64cPtSZqDcaM6hIFTynk97RU=; b=pIotr8j3iQxjpDZqLLRrnc6iejVVDmjMZWHH+6BJLwyKvWQjAma/iRsQxjaGim3OB7 Z927AWDtCHr7RKed5TR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EydnvSfdvXISdyLNwBl482z TglrD+NmDbC4Jk0LHkUPZvZ235mmSsg== X-Received: by 2002:a05:600c:5308:b0:4bb:76d6:1f5d with SMTP id 5b1f17b1804b1-4bb887ca192mr646979705e9.2.1796021026779; Sun, 29 Nov 2026 22:43:46 -0800 (PST) Return-Path: Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab65cb41f4sm60434756f8f.7.2026.11.29.22.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 22:43:46 -0800 (PST) From: Scott Murray To: yocto-patches@lists.yoctoproject.org Subject: [meta-security][scarthgap][PATCH 22/27] scap-security-guide: disable ptest Date: Mon, 30 Nov 2026 08:43:07 +0200 Message-ID: <29a0638ac8839c763e77de0fff0c2496436973e1.1796019369.git.scott.murray@konsulko.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 06:43:49 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5622 From: Yi Zhao Enabling ptest will significantly increase build time. Additionally, since the ptest distro_feature is enabled by default in poky distro, build time can be very long, which is annoying. On my build host: Enable ptest: $ time build scap-security-guide real 219m54.529s user 0m49.040s sys 0m1.304s Disable ptest: $ time build scap-security-guide real 1m25.222s user 0m3.306s sys 0m0.166s Since no one cares about this ptest and no one fixes the test failures. Let's disable it. Signed-off-by: Yi Zhao Signed-off-by: Scott Murray --- .../scap-security-guide/files/run-ptest | 7 --- .../scap-security-guide_0.1.81.bb | 47 +------------------ 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 recipes-compliance/scap-security-guide/files/run-ptest diff --git a/recipes-compliance/scap-security-guide/files/run-ptest b/recipes-compliance/scap-security-guide/files/run-ptest deleted file mode 100644 index e8d270f..0000000 --- a/recipes-compliance/scap-security-guide/files/run-ptest +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -export PYTHONPATH="/usr/lib/scap-security-guide/ptest/git:$PYTHONPATH" - -cd git/build - -ctest --output-on-failure -E unique-stigids diff --git a/recipes-compliance/scap-security-guide/scap-security-guide_0.1.81.bb b/recipes-compliance/scap-security-guide/scap-security-guide_0.1.81.bb index d91a671..c0f2ee1 100644 --- a/recipes-compliance/scap-security-guide/scap-security-guide_0.1.81.bb +++ b/recipes-compliance/scap-security-guide/scap-security-guide_0.1.81.bb @@ -9,7 +9,6 @@ LICENSE = "BSD-3-Clause" SRCREV = "a1b32362394c7739a7a94426c61c7cb24449d9a0" SRC_URI = "git://github.com/ComplianceAsCode/content.git;protocol=https;branch=stable \ file://run_eval.sh \ - file://run-ptest \ " UPSTREAM_CHECK_GITTAGREGEX = "v(?P\d+(\.\d+)+)$" @@ -19,7 +18,7 @@ DEPENDS = "openscap-native python3-pyyaml-native python3-jinja2-native libxml2-n S = "${WORKDIR}/git" B = "${S}/build" -inherit cmake pkgconfig python3native python3targetconfig ptest +inherit cmake pkgconfig python3native python3targetconfig STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts" export OSCAP_CPE_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/cpe" @@ -42,52 +41,8 @@ do_install:append() { install ${WORKDIR}/run_eval.sh ${D}${datadir}/openscap/. } -do_compile_ptest() { - cd ${S}/build - cmake ../ - make -} - -do_install_ptest() { - - # remove host & work dir from tests - for x in $(find ${S}/build -type f) ; - do - sed -e 's#${HOSTTOOLS_DIR}/##g' \ - -e 's#${RECIPE_SYSROOT_NATIVE}##g' \ - -e 's#${WORKDIR}#${PTEST_PATH}#g' \ - -e 's#/.*/xmllint#/usr/bin/xmllint#g' \ - -e 's#/.*/oscap#/usr/bin/oscap#g' \ - -e 's#/python3-native##g' \ - -i ${x} - done - - for x in $(find ${S}/build-scripts -type f) ; - do - sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' ${x} - done - - for x in $(find ${S}/tests -type f) ; - do - sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' ${x} - done - - for x in $(find ${S}/utils -type f) ; - do - sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' ${x} - done - - PDIRS="apple_os build controls products shared components applications linux_os ocp-resources tests utils ssg build-scripts" - t=${D}/${PTEST_PATH}/git - for d in ${PDIRS}; do - install -d ${t}/$d - cp -fr ${S}/$d/* ${t}/$d/. - done -} - FILES:${PN} += "${datadir}/xml ${datadir}/openscap" RDEPENDS:${PN} = "openscap" -RDEPENDS:${PN}-ptest = "cmake grep sed bash git python3 python3-modules python3-mypy python3-pyyaml python3-yamlpath python3-xmldiff python3-json2html python3-pandas python3-openpyxl python3-pytest libxml2-utils libxslt-bin" COMPATIBLE_HOST:libc-musl = "null"