mirror of https://github.com/VLSIDA/OpenRAM.git
Add coverage exclusions. Add subprocess coverage.
This commit is contained in:
parent
49f7022416
commit
bcc6b95564
14
.coveragerc
14
.coveragerc
|
|
@ -4,6 +4,10 @@ omit =
|
||||||
*/.local/*
|
*/.local/*
|
||||||
# omit everything in /usr
|
# omit everything in /usr
|
||||||
/usr/*
|
/usr/*
|
||||||
|
# ignore the unit tests themselves
|
||||||
|
*/tests/*
|
||||||
|
# ignore the debug utilities
|
||||||
|
debug.py
|
||||||
[paths]
|
[paths]
|
||||||
source =
|
source =
|
||||||
/home/gitlab-runner/builds/2fd64746/0
|
/home/gitlab-runner/builds/2fd64746/0
|
||||||
|
|
@ -12,3 +16,13 @@ source =
|
||||||
/home/gitlab-runner/builds/2fd64746/3
|
/home/gitlab-runner/builds/2fd64746/3
|
||||||
/home/gitlab-runner/builds/2fd64746/4
|
/home/gitlab-runner/builds/2fd64746/4
|
||||||
/home/gitlab-runner/builds/2fd64746/5
|
/home/gitlab-runner/builds/2fd64746/5
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
pragma: no cover
|
||||||
|
def __repr__
|
||||||
|
except Exception
|
||||||
|
raise AssertionError
|
||||||
|
raise NotImplementedError
|
||||||
|
if 0:
|
||||||
|
if __name__ == "__main__":
|
||||||
|
if not OPTS.is_unit_test
|
||||||
|
|
@ -42,8 +42,9 @@ class openram_test(openram_test):
|
||||||
|
|
||||||
|
|
||||||
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
OPENRAM_HOME = os.path.abspath(os.environ.get("OPENRAM_HOME"))
|
||||||
|
# Always perform code coverage
|
||||||
cmd = "python3 {0}/openram.py -n -o {1} -p {2} {3} config_20_{4}.py 2>&1 > {5}/output.log".format(OPENRAM_HOME,
|
exe_name = "coverage run -p {0}/openram.py ".format(OPENRAM_HOME)
|
||||||
|
cmd = "{0} -n -o {1} -p {2} {3} config_20_{4}.py 2>&1 > {5}/output.log".format(exe_name,
|
||||||
out_file,
|
out_file,
|
||||||
out_path,
|
out_path,
|
||||||
verbosity,
|
verbosity,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue