Skip to content

Add ptest support for 17 core system packages#349

Draft
Copilot wants to merge 34 commits intodevelopfrom
copilot/add-ptest-to-alsa-lib
Draft

Add ptest support for 17 core system packages#349
Copilot wants to merge 34 commits intodevelopfrom
copilot/add-ptest-to-alsa-lib

Conversation

Copy link

Copilot AI commented Feb 13, 2026

Implements ptest (package testing) infrastructure for 17 packages to enable runtime validation of installed functionality on target devices.

Packages Updated

Core System

  • busybox - Enabled ptest unconditionally (changed from conditional benchmark_enable)
  • kbd - Keyboard/console utilities with autotest harness
  • libcap - POSIX capabilities functional tests

Compression & Text Processing

  • xz_5.2.6 - XZ compression tests with path-corrected scripts
  • zstd - Quick functional benchmarks (skips stress tests)
  • lz4 - Compression/decompression validation
  • gawk_3.1.5 - AWK test suite via Makefile
  • grep - Pattern matching tests (excludes slow/locale-dependent)
  • file - Magic database and file type detection

Libraries & Frameworks

  • alsa-lib_1.2.6% - Audio library with 5 compiled test binaries
  • libcheck - Unit testing framework validation
  • libatomic-ops - Atomic operation primitives
  • libpcap - Safe packet capture tests (no actual capture)
  • libxslt - XSLT transformation with output normalization

Network & Security

  • openssl_3.0.% - Comprehensive SSL/TLS tests with dynamic path fixing, provider installation, and MODULES.txt bug workaround
  • curl_7.82% - HTTP client with test server automation

Build Tools

  • make - Build system test harness via run_make_tests.pl

Implementation Pattern

Each package receives:

inherit ptest
SRC_URI += "file://run-ptest"

do_compile_ptest() {
    # Build test binaries
}

do_install_ptest() {
    # Install tests, data, helpers
}

RDEPENDS:${PN}-ptest += "bash ..."

Run-ptest scripts standardized to emit PASS:, FAIL:, or SKIP: prefixes for test result parsing.

Notable Details

  • OpenSSL: Complex implementation handles configdata.pm path replacement, legacy provider fallback, and Perl module dependencies
  • XZ: Patches test scripts to use installed binaries instead of build-time paths
  • Curl: Includes certificate files and creates data directory symlink for test compatibility
  • Grep: Skips 30+ problematic tests (performance, locale-dependent, infloop-prone)
  • OpenSSL & libxslt: Use mktemp for temporary files instead of hardcoded /tmp paths

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits February 13, 2026 06:12
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ptest support for alsa-lib Add ptest support for alsa-lib 1.2.6% Feb 13, 2026
Copilot AI requested a review from h1712 February 13, 2026 06:15
Copilot AI and others added 2 commits February 13, 2026 06:46
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest support for alsa-lib 1.2.6% Add ptest support for alsa-lib 1.2.6% and gawk 3.1.5 Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 09:19
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest support for alsa-lib 1.2.6% and gawk 3.1.5 Add ptest support for alsa-lib, gawk, and libcheck Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 09:30
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest support for alsa-lib, gawk, and libcheck Add ptest support for libxslt, libcheck, gawk, and alsa-lib Feb 13, 2026
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest support for libxslt, libcheck, gawk, and alsa-lib Enable busybox ptest unconditionally Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 11:47
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest infrastructure for 10 packages: automated validation in Yocto builds Add ptest infrastructure for 11 packages with automated validation Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 11:53
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest infrastructure for 11 packages with automated validation Add ptest infrastructure for 12 packages: automated validation in Yocto builds Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 12:06
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest infrastructure for 12 packages: automated validation in Yocto builds Add ptest infrastructure for 13 packages with automated validation Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 12:11
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest infrastructure for 13 packages with automated validation Add ptest support for lz4 with proper compressed file handling Feb 13, 2026
Copilot AI and others added 2 commits February 13, 2026 12:16
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest support for lz4 with proper compressed file handling Add ptest support for 16 core system packages Feb 13, 2026
Co-authored-by: h1712 <66936538+h1712@users.noreply.github.com>
Copilot AI changed the title Add ptest support for 16 core system packages Add ptest support for 17 core system packages Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments