+class TestSuiteInfo (object):
+
+ inits_re = re.compile(r'[0-9a-f]{8} T (mu_init\w*)', re.I)
+ terms_re = re.compile(r'[0-9a-f]{8} T (mu_term\w*)', re.I)
+ cases_re = re.compile(r'[0-9a-f]{8} T (mu_test\w*)', re.I)
+
+ def __init__(self, so_name):
+ proc = Popen(['nm', '-p', so_name], stdout=PIPE)
+ output = proc.communicate()[0]
+ self.inits = self.inits_re.findall(output)
+ self.terms = self.terms_re.findall(output)
+ self.cases = self.cases_re.findall(output)
+
+