add logging validation helpers and Logging_Journalctl_Validation testcase#409
Open
smuppand wants to merge 2 commits intoqualcomm-linux:mainfrom
Open
add logging validation helpers and Logging_Journalctl_Validation testcase#409smuppand wants to merge 2 commits intoqualcomm-linux:mainfrom
smuppand wants to merge 2 commits intoqualcomm-linux:mainfrom
Conversation
Introduce a dedicated lib_logger.sh to keep journald and log-file validation helpers separate from functestlib.sh and avoid growing the generic utility library further. This adds reusable helpers for detecting active /var/log sinks, emitting custom logger messages, verifying message visibility in journalctl and file-based logs, checking journal storage and boot metadata, validating unit-scoped queries, and exercising priority-based journal filtering. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add a new system logging validation testcase under Runner/suites/System/Logging/Logging_Journalctl_Validation to verify that the target logging pipeline is working end to end. The testcase checks systemd-journald service health, required tool availability, available /var/log sinks, custom message injection through logger, visibility in journalctl, visibility in file-based logs, journal storage and boot-list sanity, unit-scoped retrieval, and priority-based journal filtering, while writing PASS or FAIL to the result file for LAVA-friendly execution flow. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add reusable logging helpers in Runner/utils/lib_logger.sh and introduce
the Logging_Journalctl_Validation testcase under
Runner/suites/System/Logging/Logging_Journalctl_Validation.
This change keeps journald and log-file validation logic out of functestlib.sh and adds an end-to-end logging test that verifies:
The testcase is LAVA-friendly and records PASS or FAIL in the result file while allowing subsequent steps to continue.
Lava job for reference on the execution - https://lava.infra.foundries.io/scheduler/job/181206#L2546