summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorArtem Naluzhnyy <A.Naluzhnyy@samsung.com>2019-08-16 14:12:51 +0200
committerArtem Naluzhnyy <A.Naluzhnyy@samsung.com>2019-08-16 14:12:51 +0200
commit64ff998e597daa50e1770cac71ce14d4be0cd888 (patch)
tree3251fc93dba8a3c31642dfdbf66da7c556eb541a /shell
parent5363b02a9d3237b96bcc24a7723264269ba5ed10 (diff)
Dump list of analysed files not tracked by Git repository
"cov-int/scm-untracked-files.txt" info may be used as a source for 'coverity-search-exclude-regexs' JJB config option to suppress analysis of external 3rd-party and auto-generated sources. Issue-ID: CIMAN-260 Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com> Change-Id: Ief208e3ac202f5494e9762902f0930890d8c01d8
Diffstat (limited to 'shell')
-rw-r--r--shell/maven-coverity.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/shell/maven-coverity.sh b/shell/maven-coverity.sh
index 51bd2733f..5c0418310 100644
--- a/shell/maven-coverity.sh
+++ b/shell/maven-coverity.sh
@@ -159,9 +159,20 @@ cov-manage-emit \
--invert-match \
'^Translation unit:$' \
| sed \
- 's!^[[:digit:]]\+ -> !!' \
+ --regexp-extended \
+ 's!^[[:digit:]]+ -> !!' \
| sort \
-> 'coverity-scan-analysed-files.log'
+> 'cov-int/coverity-scan-analysed-files.txt'
+
+# List all analyzed files that are not tracked by SCM repository
+cov-manage-emit \
+ --dir cov-int \
+ list-scm-unknown \
+| sed \
+ --regexp-extended \
+ 's!^[^ ]+ !!' \
+| sort \
+> 'cov-int/scm-untracked-files.txt'
#-----------------------------------------------------------------------------
# Submit results to Coverity service