1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 23:35:40 -05:00

test case for socks udp

This commit is contained in:
V2Ray
2015-11-06 13:45:41 +01:00
parent 6ce1539bca
commit 5347673e00
3 changed files with 204 additions and 119 deletions

View File

@@ -5,8 +5,7 @@ FAIL=0
function test_package {
DIR="github.com/v2ray/v2ray-core/$1"
DEP=$(go list -f '{{ join .Deps "\n" }}' $DIR | grep v2ray | tr '\n' ',')
DEPTEST=$(go list -f '{{ join .TestImports "\n" }}' $DIR | grep v2ray | tr '\n' ',')
DEP=${DEP}${DEPTEST}$DIR
DEP=${DEP}$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