소스 검색

Test root package

V2Ray 10 년 전
부모
커밋
e70ff6547c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      testing/coverage/coverall

+ 5 - 0
testing/coverage/coverall

@@ -15,6 +15,11 @@ function test_package {
 
 touch coverall.out
 
+TEST_FILES=(./*_test.go)
+if [ -f ${TEST_FILES[0]} ]; then
+  test_package ""
+fi
+
 for DIR in $(find * -type d -not -path "*.git*"); do
   TEST_FILES=($DIR/*_test.go)
   if [ -f ${TEST_FILES[0]} ]; then