From f01e1496ba4c520b011663b1ff634db7a668a383 Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Tue, 7 Nov 2017 21:04:08 +0000 Subject: 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 --- tools/cover.awk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/cover.awk (limited to 'tools/cover.awk') 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] + } +} -- cgit 1.2.3-korg