mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-29 12:28:15 +00:00
- grant all capabilities - generate human readable output - add a check.sh script to see if the tests passed/failed - add a poweroff image to handle powering off the vm Signed-off-by: Dave Tucker <dt@docker.com>
16 lines
287 B
Bash
Executable File
16 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
|
|
sh runltplite.sh -p -l /ltp.log
|
|
cat /ltp.log
|
|
|
|
baseline="$(cat /etc/ltp/baseline)"
|
|
failures="$( grep "Total Failures" /ltp.log | awk '{print $3}')"
|
|
|
|
if [ $((failures <= baseline)) -ne 0 ]
|
|
then
|
|
printf "LTP test suite PASSED\n"
|
|
else
|
|
printf "LTP test suite FAILED\n"
|
|
exit 1
|
|
fi
|