Skip to content

validate: run the helpers self-test - #7036

Open
vtushar06 wants to merge 1 commit into
podman-container-tools:mainfrom
vtushar06:validate-helpers-selftest
Open

validate: run the helpers self-test#7036
vtushar06 wants to merge 1 commit into
podman-container-tools:mainfrom
vtushar06:validate-helpers-selftest

Conversation

@vtushar06

Copy link
Copy Markdown

tests/helpers.bash.t is a working self-test for the assert helpers - 31 checks, TAP output, exits nonzero on failure - but as far as I can tell nothing runs it: no Makefile target, no workflow, no mention in test_runner.sh. Its only commit is the one that added it in 2021.

This hooks it into make validate, which the CI validate job already runs, so a change that breaks the assert helpers gets caught before it confuses a real test run. podman recently did the same for its hack self-tests.

It runs in under a second and needs no built binaries. To be clear it only covers assert(), so this is just running what already exists, not adding coverage.

tests/helpers.bash.t checks the assert helpers, 31 cases, and exits
nonzero on failure, but nothing runs it: no Makefile target, no
workflow, no reference in test_runner.sh since it was added in 2021.
Hook it into validate so a break in the helpers is caught there rather
than showing up as a confusing failure in a real test.

Signed-off-by: Tushar Verma <tusharmyself06@gmail.com>
@vtushar06
vtushar06 force-pushed the validate-helpers-selftest branch from 8d670fc to 5d55e25 Compare August 14, 2026 13:57

@nalind nalind left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

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