瀏覽代碼

add fetch mode for testing

ruki 2 年之前
父節點
當前提交
5e99992b32
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      scripts/test.lua

+ 4 - 0
scripts/test.lua

@@ -16,6 +16,7 @@ local options =
 ,   {'j', "jobs",       "kv", nil, "Set the build jobs."                        }
 ,   {'j', "jobs",       "kv", nil, "Set the build jobs."                        }
 ,   {'f', "configs",    "kv", nil, "Set the configs."                           }
 ,   {'f', "configs",    "kv", nil, "Set the configs."                           }
 ,   {'d', "debugdir",   "kv", nil, "Set the debug source directory."            }
 ,   {'d', "debugdir",   "kv", nil, "Set the debug source directory."            }
+,   {nil, "fetch",      "k",  nil, "Fetch package only."                        }
 ,   {nil, "linkjobs",   "kv", nil, "Set the link jobs."                         }
 ,   {nil, "linkjobs",   "kv", nil, "Set the link jobs."                         }
 ,   {nil, "cflags",     "kv", nil, "Set the cflags."                            }
 ,   {nil, "cflags",     "kv", nil, "Set the cflags."                            }
 ,   {nil, "cxxflags",   "kv", nil, "Set the cxxflags."                          }
 ,   {nil, "cxxflags",   "kv", nil, "Set the cxxflags."                          }
@@ -109,6 +110,9 @@ function _require_packages(argv, packages)
     if argv.linkjobs then
     if argv.linkjobs then
         table.insert(require_argv, "--linkjobs=" .. argv.linkjobs)
         table.insert(require_argv, "--linkjobs=" .. argv.linkjobs)
     end
     end
+    if argv.fetch then
+        table.insert(require_argv, "--fetch")
+    end
     local extra = {}
     local extra = {}
     if argv.mode == "debug" then
     if argv.mode == "debug" then
         extra.debug = true
         extra.debug = true