aboutsummaryrefslogtreecommitdiff
path: root/t/run.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-02-19 15:54:40 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-02-19 15:54:40 -0500
commit73bc54c260e2681ea0173582eb32a36c139bb851 (patch)
tree0e35f7d77d948b6d81e645a7180b57358b7989e0 /t/run.lua
parent2336be353fc4da8a9a45d474a1cc94db64e03293 (diff)
downloadlite-xl-plugin-manager-73bc54c260e2681ea0173582eb32a36c139bb851.tar.gz
lite-xl-plugin-manager-73bc54c260e2681ea0173582eb32a36c139bb851.zip
Added in ability to select multiple arches.v0.99996
Diffstat (limited to 't/run.lua')
-rw-r--r--t/run.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/t/run.lua b/t/run.lua
index c3babcf..3834db3 100644
--- a/t/run.lua
+++ b/t/run.lua
@@ -104,6 +104,12 @@ local tests = {
["09_misc_commands"] = function()
lpm("update")
lpm("upgrade")
+ end,
+ ["10_install_multiarch"] = function()
+ lpm("install plugin_manager --arch x86_64-windows --arch x86_64-linux")
+ assert_exists(userdir .. "/plugins/plugin_manager/lpm.x86_64-linux")
+ assert_exists(userdir .. "/plugins/plugin_manager/lpm.x86_64-windows.exe")
+ assert_exists(userdir .. "/plugins/plugin_manager/init.lua")
end
}
@@ -122,14 +128,14 @@ local function run_tests(tests, arg)
local fail_count = 0
local names = {}
if #arg == 0 then
- for k,v in pairs(tests) do table.insert(names, k) end
+ for k,v in pairs(tests) do table.insert(names, k) end
else
names = 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 max_name = math.max(max_name, #k) end
for i,k in ipairs(names) do
local v = tests[k]
if fast then
@@ -144,7 +150,7 @@ local function run_tests(tests, arg)
if last_command then
print("Last Command: " .. last_command)
if last_command_result then
- print(json.encode(last_command_result))
+ print(json.encode(last_command_result))
end
end
print()