improve script/test.lua

pull/13/head
ruki 6 years ago
parent 4e9d6770f9
commit 27af62517f
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 5
      scripts/test.lua

@ -11,6 +11,7 @@ function main(...)
table.insert(packages, "tbox")
end
if #packages > 0 then
local repodir = os.curdir()
local workdir = path.join(os.tmpdir(), "xmake-repo")
print(packages)
os.tryrm(workdir)
@ -18,6 +19,8 @@ function main(...)
os.cd(workdir)
os.exec("xmake create test")
os.cd("test")
os.exec("xmake require -f -v -y %s", table.concat(packages, " "))
os.exec("xmake repo --add local-repo %s", repodir)
os.exec("xmake repo -l")
os.exec("xmake require -f -v -D -y %s", table.concat(packages, " "))
end
end

Loading…
Cancel
Save