mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
Add readline tests
This commit is contained in:
parent
8758a2bd04
commit
689935ed39
6 changed files with 86 additions and 14 deletions
23
test/runner
23
test/runner
|
|
@ -8,17 +8,20 @@ do
|
|||
ret+=$?
|
||||
done
|
||||
|
||||
if grep 'enable-coverage:BOOL=YES' "$1/CMakeCache.txt"
|
||||
if (( $ret == 0 ))
|
||||
then
|
||||
echo "Generating coverage reports"
|
||||
rm -rf "$1/coverage"
|
||||
mkdir "$1/coverage"
|
||||
lcov --directory "$1" \
|
||||
--capture \
|
||||
--output-file "$1/coverage/lcov.info"
|
||||
lcov --remove "$1/coverage/lcov.info" 'test/*' '/usr/*' \
|
||||
--output-file "$1/coverage/lcov.info.clean"
|
||||
genhtml -o "$1/coverage/" "$1/coverage/lcov.info.clean"
|
||||
if grep 'enable-coverage:BOOL=YES' "$1/CMakeCache.txt"
|
||||
then
|
||||
echo "Generating coverage reports"
|
||||
rm -rf "$1/coverage"
|
||||
mkdir "$1/coverage"
|
||||
lcov --directory "$1" \
|
||||
--capture \
|
||||
--output-file "$1/coverage/lcov.info"
|
||||
lcov --remove "$1/coverage/lcov.info" 'test/*' '/usr/*' \
|
||||
--output-file "$1/coverage/lcov.info.clean"
|
||||
genhtml -o "$1/coverage/" "$1/coverage/lcov.info.clean"
|
||||
fi
|
||||
fi
|
||||
|
||||
exit $ret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue