mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 01:27:03 -05:00
Update coverall script
This commit is contained in:
parent
e60fcba4b3
commit
6ce1539bca
@ -5,7 +5,8 @@ FAIL=0
|
||||
function test_package {
|
||||
DIR="github.com/v2ray/v2ray-core/$1"
|
||||
DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
|
||||
DEP=${DEP}$DIR
|
||||
DEPTEST=$(go list -f '{{ join .TestImports "\n" }}' $DIR | grep v2ray | tr '\n' ',')
|
||||
DEP=${DEP}${DEPTEST}$DIR
|
||||
go test -coverprofile=coversingle.out -coverpkg=$DEP $DIR || FAIL=1
|
||||
if [ -f coversingle.out ]; then
|
||||
cat coversingle.out | grep -v "mode: set" >> coverall.out
|
||||
|
Loading…
Reference in New Issue
Block a user