mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
14 lines
468 B
Python
14 lines
468 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 ./CatchTestRunner '+tag, shell=True, cwd='.') |