Files
CoolProp/dev/docker/valgrind/run_all.py
Ian Bell 40cbc70eb9 More annoying leak info
Caught a few true positives
2025-05-19 08:28:25 -04:00

15 lines
509 B
Python

import subprocess
with open('stdout','w') as fp:
subprocess.call('./CatchTestRunner --list-tags', shell=True, stdout=fp)
with open('stdout') as fp:
tags = []
for line in fp.readlines()[2::]:
if line.strip():
tag = [t for t in line.split(' ') if t][1].strip()
tags.append(tag)
for tag in tags:
subprocess.call('valgrind --tool=memcheck --error-limit=no --track-origins=yes --leak-check=full --show-leak-kinds=all ./CatchTestRunner '+tag, shell=True, cwd='.')