Files
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

24 lines
489 B
Bash

#!/bin/sh
# run-ptest for inotify-tools
set -e
# Run the test binary and capture output
output=$(./test 2>&1)
status=$?
# Print the output for logging
echo "$output"
# Evaluate result based on exit code
if [ $status -eq 0 ]; then
echo "All tests passed successfully."
echo "PASS: inotify-tools"
exit 0
else
echo "Test program exited with status $status."
echo "Some tests may have failed. See output above for details."
echo "FAIL: inotify-tools"
exit 1
fi