Files
linuxkit/test/ltp/check.sh
Dave Tucker 9dba48c16e tests: update ltp test configuration
- 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>
2017-04-12 00:45:00 +01:00

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