diff options
author | Emma Foley <emma.l.foley@intel.com> | 2017-11-07 21:04:08 +0000 |
---|---|---|
committer | Emma Foley <emma.l.foley@intel.com> | 2017-11-17 17:19:17 +0000 |
commit | f01e1496ba4c520b011663b1ff634db7a668a383 (patch) | |
tree | 9e3f485544a83b76b0c84e41de2ff1b0c61f544b /tools/cover.awk | |
parent | 29476ed0317dcc635dff67d2fc9fd68233aa6656 (diff) |
Move test scripts to tools/
Move the scripts that tox uses for running tests
to the tools/ directory:
* run_tests.sh -> tools/run_tests.sh
* tests/ci/cover.{sh,awk} -> tools/
JIRA: YARDSTICK-837
Change-Id: I817c9e5f58c06b45f1de3f369318f4bb24168677
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'tools/cover.awk')
-rw-r--r-- | tools/cover.awk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/cover.awk b/tools/cover.awk new file mode 100644 index 000000000..e4bb816dc --- /dev/null +++ b/tools/cover.awk @@ -0,0 +1,25 @@ +BEGIN{ + template = "%6s %-75s\n" + printf template, "Delta", "Module Path" +} + +/^-/{ + s = substr($1, 2) + x[s] = $3; +}; + +/^+/{ + s = substr($1, 2) + d = $3 + if (s in x) + d = d - x[s] + y[s" "d] = d +} + +END{ + asorti(y, z1, "@val_num_asc") + for (i=1; i <= length(z1); i++){ + split(z1[i], z2, " ") + printf template, z2[2], z2[1] + } +} |