()
| 655 | # GCOV support |
| 656 | # |
| 657 | def gcov_reset_counters(): |
| 658 | print("Removing previous GCOV .gcda files...") |
| 659 | build_dir = os.path.join(ROOT_DIR, 'build') |
| 660 | for dirpath, dirnames, filenames in os.walk(build_dir): |
| 661 | for fn in filenames: |
| 662 | if fn.endswith('.gcda') or fn.endswith('.da'): |
| 663 | pth = os.path.join(dirpath, fn) |
| 664 | os.unlink(pth) |
| 665 | |
| 666 | # |
| 667 | # LCOV support |