forked from adaptivecomputing/torque
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_report.py
More file actions
executable file
·27 lines (22 loc) · 764 Bytes
/
run_report.py
File metadata and controls
executable file
·27 lines (22 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
import sys
from subprocess import *
coverage_file="coverage_results.file";
def get_compile_output():
make_res=Popen(["make", "check"], stdout=PIPE, stderr=PIPE);
res,res_err=make_res.communicate();
res_file = open(coverage_file, 'w');
res_file.write(res);
res_file.close();
def main():
get_compile_output();
print "Summary page of the unit test run.";
print " Individual file code coverage and a Total";
print "----------------------------------------------------------------------------";
print coverage_file;
parse_res=Popen(["./parse_cov_results.py", coverage_file]);
res=parse_res.communicate();
file_res=Popen(["./cov_file_results.py"]);
res=file_res.communicate();
if __name__ == "__main__":
main()