浏览代码

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
 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
 for DIR in $(find * -type d -not -path "*.git*"); do
   TEST_FILES=($DIR/*_test.go)
   TEST_FILES=($DIR/*_test.go)
   if [ -f ${TEST_FILES[0]} ]; then
   if [ -f ${TEST_FILES[0]} ]; then