Revert "test/build: add test directory to scanbuild verification"
This reverts commit 606ba0c321
.
Change-Id: Ibdc797e4c7e4ea9c60e070487027a069007dcf98
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1265
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
85cda93b8d
commit
e1f6fd0f09
@ -58,11 +58,9 @@ function scanbuild_make {
|
|||||||
pass=true
|
pass=true
|
||||||
$scanbuild $MAKE $MAKEFLAGS > $out/build_output.txt && rm -rf $out/scan-build-tmp || make_fail_cleanup
|
$scanbuild $MAKE $MAKEFLAGS > $out/build_output.txt && rm -rf $out/scan-build-tmp || make_fail_cleanup
|
||||||
xtrace_disable
|
xtrace_disable
|
||||||
for ent in $(find app examples lib module test -type f | grep -vF ".h"); do
|
for ent in $(find app examples lib module -type f | grep -vF ".h"); do
|
||||||
if [[ $ent == lib/env_ocf* ]]; then continue; fi
|
if [[ $ent == lib/env_ocf* ]]; then continue; fi
|
||||||
if [[ SPDK_RUN_FUNCTIONAL_TEST -eq 0 && $ent == examples* ]]; then continue; fi
|
if [[ SPDK_RUN_FUNCTIONAL_TEST -eq 0 && $ent == examples* ]]; then continue; fi
|
||||||
if [[ SPDK_RUN_FUNCTIONAL_TEST -eq 0 && $ent == test* && $end != test/unit* ]]; then continue; fi
|
|
||||||
if [[ SPDK_TEST_UNITTEST -eq 0 && $end == test/unit* ]]; then continue; fi
|
|
||||||
if file -bi $ent | grep -q 'text/x-c'; then
|
if file -bi $ent | grep -q 'text/x-c'; then
|
||||||
echo $ent | sed 's/\.cp\{0,2\}$//g' >> $out/all_c_files.txt
|
echo $ent | sed 's/\.cp\{0,2\}$//g' >> $out/all_c_files.txt
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user