()
| 16 | |
| 17 | |
| 18 | def populate_tests(): |
| 19 | global test_mapping |
| 20 | |
| 21 | unit_tests = [ELFTest(), MACHOTest(), TestShellcode()] |
| 22 | |
| 23 | for ut in unit_tests: |
| 24 | ut_functions = inspect.getmembers(ut, predicate=inspect.ismethod) |
| 25 | |
| 26 | for test_name, test_fn in ut_functions: |
| 27 | if not test_name.startswith("test_"): |
| 28 | continue |
| 29 | |
| 30 | outfile = perf_res_dir + test_name + ".perf" |
| 31 | test_mapping.append((test_fn, outfile)) |
| 32 | |
| 33 | |
| 34 | def ql_profile(run_fn, outfile): |
no test coverage detected