summaryrefslogtreecommitdiff
path: root/tests/plugins/repository/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-07-30 22:45:56 +0800
committerruki <[email protected]>2026-07-30 22:45:56 +0800
commitba5ca9bc89f2511a53266577a17a64fb26932a96 (patch)
tree99064031a7dba675ebc82c3989a0f265f9f8387d /tests/plugins/repository/test.lua
parent77980687c5c1a4102d29e7c314cb9c23f98feab9 (diff)
improve plugin list
Diffstat (limited to 'tests/plugins/repository/test.lua')
-rw-r--r--tests/plugins/repository/test.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/plugins/repository/test.lua b/tests/plugins/repository/test.lua
index c4c6c4c20..0c4df3227 100644
--- a/tests/plugins/repository/test.lua
+++ b/tests/plugins/repository/test.lua
@@ -1,4 +1,4 @@
-local global = import("core.base.global")
+import("core.base.global")
function _write_plugin(dir, name, text)
io.writefile(path.join(dir, "xmake.lua"), string.format([[
@@ -56,6 +56,8 @@ function main(t)
-- Feature: --list shows installed and available repository plugins
local out = os.iorun("xmake plugin --list")
+ t:require(out:find("the built-in plugins:", 1, true))
+ t:require(out:find("project", 1, true))
t:require(out:find(hello_name, 1, true))
t:require(out:find(formatter_name, 1, true))
t:require(out:find(available_name, 1, true))