浏览代码

add policies for test.lua

ruki 1 年之前
父节点
当前提交
20982d8b2a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      scripts/test.lua

+ 4 - 0
scripts/test.lua

@@ -17,6 +17,7 @@ local options =
 ,   {'j', "jobs",           "kv", nil, "Set the build jobs."                        }
 ,   {'f', "configs",        "kv", nil, "Set the configs."                           }
 ,   {'d', "debugdir",       "kv", nil, "Set the debug source directory."            }
+,   {nil, "policies",       "kv", nil, "Set the policies."                          }
 ,   {nil, "fetch",          "k",  nil, "Fetch package only."                        }
 ,   {nil, "precompiled",    "k",  nil, "Attemp to install the precompiled package." }
 ,   {nil, "remote",         "k",  nil, "Test package on the remote server."         }
@@ -69,6 +70,9 @@ function _require_packages(argv, packages)
     if argv.mode then
         table.insert(config_argv, "--mode=" .. argv.mode)
     end
+    if argv.policies then
+        table.insert(config_argv, "--policies=" .. argv.policies)
+    end
     if argv.ndk then
         table.insert(config_argv, "--ndk=" .. argv.ndk)
     end