mirror of https://github.com/v2ray/v2ray-core
update coverage script
parent
ed2779e333
commit
4481cc36db
|
@ -11,7 +11,7 @@ V2RAY_COV=${V2RAY_OUT}/cov
|
||||||
COVERAGE_FILE=${V2RAY_COV}/coverage.txt
|
COVERAGE_FILE=${V2RAY_COV}/coverage.txt
|
||||||
|
|
||||||
function test_package {
|
function test_package {
|
||||||
DIR="v2ray.com/core/$1"
|
DIR="v2ray.com/core$1"
|
||||||
DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
|
DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
|
||||||
DEP=${DEP}$DIR
|
DEP=${DEP}$DIR
|
||||||
RND_NAME=$(openssl rand -hex 16)
|
RND_NAME=$(openssl rand -hex 16)
|
||||||
|
@ -31,7 +31,7 @@ fi
|
||||||
for DIR in $(find * -type d ! -path "*.git*" ! -path "*vendor*"); do
|
for DIR in $(find * -type d ! -path "*.git*" ! -path "*vendor*"); do
|
||||||
TEST_FILES=($DIR/*_test.go)
|
TEST_FILES=($DIR/*_test.go)
|
||||||
if [ -f ${TEST_FILES[0]} ]; then
|
if [ -f ${TEST_FILES[0]} ]; then
|
||||||
test_package $DIR
|
test_package "/$DIR"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue