diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-10-07 12:05:01 +0100 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-10-08 11:04:39 +0000 |
commit | 4414ef8b650372d18568d77ca9279ba0c80711b3 (patch) | |
tree | 58833b7797c8e3181bfdc22e206d38bfe419f38b /common/scripts/gcov-collect-results.sh | |
parent | a368dc82611bf56fddc3878b106a7b24b425d3b8 (diff) |
gcov: Add experimental test definition for arndale
The gcov test should be used with some other test. The lava-test-shell
sequence should be:
gcov-start
<some other test case>
gcov-collect-results
Make sure there is no reboot between gcov-start and gcov-collect-results
Change-Id: I261c8562b474f4d782c22eb45ada0de23ef8e3ae
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'common/scripts/gcov-collect-results.sh')
-rwxr-xr-x | common/scripts/gcov-collect-results.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/scripts/gcov-collect-results.sh b/common/scripts/gcov-collect-results.sh new file mode 100755 index 0000000..3a12899 --- /dev/null +++ b/common/scripts/gcov-collect-results.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +lcov -c -o coverage.info && echo "LAVA gcov-read: pass" || echo "LAVA gcov-read: fail" + +genhtml coverage.info -o gcov_test_coverage && echo "LAVA gcov-html: pass" || echo "LAVA gcov-html: fail" +tar czf gcov-results.tar.gz gcov_test_coverage +if [ -f gcov-results.tar.gz ]; then + lava-test-run-attach gcov-results.tar.gz application/x-gzip +fi |