add lower case checking

pull/233/head
ruki 4 years ago
parent eb030472ea
commit 03b9e3a267
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 2
      scripts/test.lua

@ -124,6 +124,7 @@ function main(...)
local files = os.iorun("git diff --name-only HEAD^")
for _, file in ipairs(files:split('\n'), string.trim) do
if file:find("packages", 1, true) and path.filename(file) == "xmake.lua" then
assert(file == file:lower(), "%s must be lower case!", file)
local package = path.filename(path.directory(file))
table.insert(packages, package)
end
@ -135,6 +136,7 @@ function main(...)
-- remove unsupported packages
for idx, package in irpairs(packages) do
assert(package == package:lower(), "package(%s) must be lower case!", package)
if not _package_is_supported(argv, package) then
table.remove(packages, idx)
end

Loading…
Cancel
Save