3 Commits

Author SHA1 Message Date
Mingli Yu
78e81c6390
inotify-tools: Unify the ptest output
Make the ptest output in the format [1] used by Automake like
result: testname

[1] https://docs.yoctoproject.org/dev/test-manual/ptest.html#testing-packages-with-ptest

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-06 16:00:52 -08:00
Nikhil R
17012bc181 inotify-tools: improve ptest result handling
The run-ptest script determines success by grepping for
"0 failed" in the test output. This could incorrectly
report success for cases like "10 failed" or "100 failed".

Update the script to rely on the test binary's exit status instead,
while still capturing and printing full test output for logging.

This makes the ptest behavior more robust and consistent

Signed-off-by: Nikhil R <nikhil.r@bmwtechworks.in>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-28 23:31:29 -07:00
Nikhil R
66ed465cc1 inotify-tools: add ptest support for inotify-tools
Add ptest support for inotify-tools by introducing a run-ptest script.
The ptest verifies the correct functioning of inotify event handling
and related utilities.

Test coverage includes:
 - File creation, modification, and deletion event monitoring
 - Event handling and command-line option parsing
 - Basic consistency and behavior of inotify event queues

The ptest completes in under 20 seconds

Signed-off-by: Nikhil R <nikhil.r@bmwtechworks.in>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-24 09:06:24 -07:00