[tests] more coverage stuff

This commit is contained in:
Timothy Stack 2021-01-31 22:43:19 -08:00
parent f35c0c397e
commit 85b9329332
2 changed files with 19 additions and 10 deletions

View File

@ -28,18 +28,19 @@ jobs:
- name: upload cover
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
TRAVIS_JOB_ID: ${GITHUB_RUN_ID}-${GITHUB_RUN_NUMBER}
run: >-
coveralls
--exclude doctest.hh
--exclude fmtlib
--exclude ghc
--exclude k_merge_tree.h
--exclude mapbox
--exclude pugixml
--exclude result.h
--exclude safe
--exclude spookyhash
--exclude ww898
--exclude src/doctest.hh
--exclude src/fmtlib
--exclude src/ghc
--exclude src/k_merge_tree.h
--exclude src/mapbox
--exclude src/pugixml
--exclude src/base/result.h
--exclude src/safe
--exclude src/spookyhash
--exclude src/ww898
--gcov-options '\-lp'
build:

View File

@ -12,6 +12,14 @@ check_error_output "config bad color" <<EOF
error:command-option:1:Could not parse color: #f
EOF
run_test env TMPDIR=tmp ${lnav_test} -n \
-c ':config /tuning/archive-manager/min-free-space abc' \
${srcdir}/logfile_syslog.0
check_error_output "invalid min-free-space allowed?" <<EOF
command-option:1: error: expecting an integer, found: abc
EOF
run_test ${lnav_test} -n \
-c ":config /ui/theme baddy" \
${test_dir}/logfile_access_log.0