Add basic coverage testing

pull/972/head
Arusekk 4 years ago committed by Disconnect3d
parent 3583b5704e
commit 9c8df00462

@ -0,0 +1,6 @@
[run]
branch = True
parallel = True
disable_warnings = module-not-imported
source = .
omit = ida_script.py

@ -20,6 +20,7 @@ jobs:
run: |
./setup.sh --user
./setup-test-tools.sh --user
pip install --user coveralls
- name: Python version info
run: |
@ -32,3 +33,8 @@ jobs:
- name: Run tests
run: |
PWNDBG_GITHUB_ACTIONS_TEST_RUN=1 sudo --preserve-env ./tests.sh
- name: Process coverage data
run: |
coverage combine
# coveralls ## XXX set up coveralls.io like pwntools?

@ -19,7 +19,7 @@ tests_passed_or_skipped=0
tests_failed=0
for test_case in ${TESTS_LIST}; do
PWNDBG_LAUNCH_TEST="${test_case}" PWNDBG_DISABLE_COLORS=1 gdb --silent --nx --nh --command gdbinit.py --command pytests_launcher.py --eval-command quit
COVERAGE_PROCESS_START=.coveragerc PWNDBG_LAUNCH_TEST="${test_case}" PWNDBG_DISABLE_COLORS=1 gdb --silent --nx --nh -ex 'py import coverage;coverage.process_startup()' --command gdbinit.py --command pytests_launcher.py --eval-command quit
exit_status=$?
if [ ${exit_status} -eq 0 ]; then

Loading…
Cancel
Save