18.3.1. Using Test Suite - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Build with AU_BUILD_TESTS=ON to enable tests:

$ cmake -B build -DAU_BUILD_TESTS=ON
$ cmake --build build --config Release
$ ctest -C Release

Test Requirements:

On Linux, QEMU (qemu-x86_64) is required:

# Ubuntu
$ sudo apt-get install qemu-user

# Fedora/RHEL/CentOS
$ sudo dnf install qemu-user

Note

On Windows, tests are disabled because QEMU-user is unavailable.

Test Categories:

  • Cpuid Tests: CPU detection and feature flag validation (requires Python 3.9-3.13)

  • ThreadPinning Tests: Affinity setting and strategy validation

  • Logger Tests: Logging functionality and thread safety

  • Status Tests: Error handling mechanisms

  • RNG Tests: Random number generation validation

Important

  • Do a clean build after installing QEMU

  • Ensure python3 and python3-dev(el) packages are installed for Cpuid tests