GTest Validator (libmem_validator_gtest) - GTest Validator (libmem_validator_gtest) - 5.3 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2026-05-13
Version
5.3 English

The GTest validator provides a GTest-style command line interface for running tests dynamically. It allows running specific tests with any function, size, and alignment combination, producing output in a familiar GTest format.

Command Line Interface

$ ./tools/validator/libmem_validator_gtest <function> [size] [src_align] [dst_align] [all_alignments] [--test=<name>]

Options:

  • --test=<name>: Run only the specified test (e.g., --test=BasicCopy)

  • --list-tests: List all available tests for all functions

  • --help: Show usage

Usage Examples:

# Run all memcpy tests at size 64
$ ./tools/validator/libmem_validator_gtest memcpy 64

# Run specific test for memmove
$ ./tools/validator/libmem_validator_gtest memmove 40 --test=BackwardOverlap

# Run with specific alignments
$ ./tools/validator/libmem_validator_gtest memcpy 128 5 3

# Run all alignment combinations (4096 tests per test case)
$ ./tools/validator/libmem_validator_gtest memcpy 128 0 0 1

# List all available tests
$ ./tools/validator/libmem_validator_gtest --list-tests