aboutsummaryrefslogtreecommitdiff
path: root/t/run.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-17 19:39:58 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-17 19:39:58 -0500
commit8ab019fa37c0a4424ce26b444e0255d047cc1bb0 (patch)
tree74af6afbc4c6d49db9125c4baf86b9023f94bedf /t/run.lua
parent91779e480164811a3123d6e1f409a54b83f54725 (diff)
downloadlite-xl-plugin-manager-8ab019fa37c0a4424ce26b444e0255d047cc1bb0.tar.gz
lite-xl-plugin-manager-8ab019fa37c0a4424ce26b444e0255d047cc1bb0.zip
Updated tests to include singleton plugins that are called init.lua and do not have a manifest.v0.9996
Diffstat (limited to 't/run.lua')
-rw-r--r--t/run.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/run.lua b/t/run.lua
index 7f85c14..0284b51 100644
--- a/t/run.lua
+++ b/t/run.lua
@@ -32,6 +32,8 @@ local tests = {
lpm("install bracketmatch")
plugins = lpm("list bracketmatch")["addons"]
assert(#plugins == 1)
+ lpm("install console")
+ assert_exists(userdir .. "/plugins/console.lua")
end,
["02_install_complex"] = function()
local plugins = lpm("list plugin_manager")["addons"]
@@ -47,7 +49,6 @@ local tests = {
assert_not_exists(userdir .. "/plugins/plugin_manager")
lpm("install editorconfig")
assert_exists(userdir .. "/plugins/editorconfig")
- assert_exists(userdir .. "/plugins/editorconfig/init.lua")
end,
["03_upgrade_complex"] = function()
local actions = lpm("install plugin_manager")
@@ -126,6 +127,7 @@ local function run_tests(tests, arg)
end
table.sort(names)
local max_name = 0
+ os.execute("rm -rf " .. tmpdir .. "/lpmtest && mkdir -p " .. tmpdir .. "/lpmtest");
for i,k in ipairs(names) do max_name = math.max(max_name, #k) end
for i,k in ipairs(names) do
local v = tests[k]