deleted file mode 100644
@@ -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
@@ -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<pver>\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"