Blame tests/buffer/buffer-tests-results.sh
|
Packit Service |
2781ba |
#!/bin/sh
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
# Set by TESTS_ENVIRONMENT in Makefile.am
|
|
Packit Service |
2781ba |
reference_dir=$REFERENCE_DIR
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
total_tests=`ls -1 $reference_dir/*.buf | wc -l`
|
|
Packit Service |
2781ba |
successful_tests=`cat buffer-tests-report | grep -c identical`
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
echo $successful_tests of $total_tests tests succesful.
|
|
Packit Service |
2781ba |
|
|
Packit Service |
2781ba |
if [ $total_tests -eq $successful_tests ]
|
|
Packit Service |
2781ba |
then
|
|
Packit Service |
2781ba |
exit 0;
|
|
Packit Service |
2781ba |
else
|
|
Packit Service |
2781ba |
echo Look in the file \"buffer-tests-report\" for detailed failure information.
|
|
Packit Service |
2781ba |
exit 1;
|
|
Packit Service |
2781ba |
fi
|