<commit_before>SUMMARY = "Linux kernel-specific performance tests"
HOMEPAGE = "https://kernel.org"
SECTION = "tests"
LICENSE = "GPLv2 & GPLv2+"
LIC_FILES_CHKSUM = "file://run-ptest;md5=e6b9dbe04e1c3de85402b8167a279f76"

inherit ptest

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-files:"

S = "${WORKDIR}"

DEPENDS = "virtual/kernel"
RDEPENDS_${PN}-ptest += "bash rt-tests fio iperf3 fw-printenv"

ALLOW_EMPTY_${PN} = "1"

SRC_URI += "\
    file://run-ptest \
    file://run-cyclictest \
    file://common.cfg \
    file://fio.cfg \
    file://iperf.cfg \
    file://test_kernel_cyclictest_idle.sh \
    file://test_kernel_cyclictest_hackbench.sh \
    file://test_kernel_cyclictest_fio.sh \
    file://test_kernel_cyclictest_iperf.sh \
"

do_install_ptest_append() {
    install -m 0755 ${S}/run-ptest ${D}${PTEST_PATH}
    install -m 0755 ${S}/run-cyclictest ${D}${PTEST_PATH}
    install -m 0644 ${S}/common.cfg ${D}${PTEST_PATH}
    install -m 0644 ${S}/fio.cfg ${D}${PTEST_PATH}
    install -m 0644 ${S}/iperf.cfg ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_idle.sh ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_hackbench.sh ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_fio.sh ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_iperf.sh ${D}${PTEST_PATH}
}

PACKAGE_ARCH = "${MACHINE_ARCH}"
<commit_msg>kernel-performance-tests: Fix runtime dependency on fw-printenv<commit_after>SUMMARY = "Linux kernel-specific performance tests"
HOMEPAGE = "https://kernel.org"
SECTION = "tests"
LICENSE = "GPLv2 & GPLv2+"
LIC_FILES_CHKSUM = "file://run-ptest;md5=e6b9dbe04e1c3de85402b8167a279f76"

inherit ptest

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-files:"

S = "${WORKDIR}"

DEPENDS = "virtual/kernel"
RDEPENDS_${PN}-ptest += "bash rt-tests fio iperf3"
RDEPENDS_${PN}-ptest_append_x64 += "fw-printenv"
RDEPENDS_${PN}-ptest_append_armv7a += "u-boot-fw-utils"

ALLOW_EMPTY_${PN} = "1"

SRC_URI += "\
    file://run-ptest \
    file://run-cyclictest \
    file://common.cfg \
    file://fio.cfg \
    file://iperf.cfg \
    file://test_kernel_cyclictest_idle.sh \
    file://test_kernel_cyclictest_hackbench.sh \
    file://test_kernel_cyclictest_fio.sh \
    file://test_kernel_cyclictest_iperf.sh \
"

do_install_ptest_append() {
    install -m 0755 ${S}/run-ptest ${D}${PTEST_PATH}
    install -m 0755 ${S}/run-cyclictest ${D}${PTEST_PATH}
    install -m 0644 ${S}/common.cfg ${D}${PTEST_PATH}
    install -m 0644 ${S}/fio.cfg ${D}${PTEST_PATH}
    install -m 0644 ${S}/iperf.cfg ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_idle.sh ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_hackbench.sh ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_fio.sh ${D}${PTEST_PATH}
    install -m 0755 ${S}/test_kernel_cyclictest_iperf.sh ${D}${PTEST_PATH}
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

{'fraction_non_alphanumeric': 0.1711835334476844, 'fraction_numerical': 0.04288164665523156, 'mean_word_length': 4.197860962566845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6812422', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1208, 'n_words': 184}