mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +00:00
78e81c6390
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>
24 lines
489 B
Bash
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
|