🤞 Sync 2026-11-10 13:45:37

This commit is contained in:
github-actions[bot] committed 2026-11-10 13:45:37 +08:00
1 parent 7822fc98cf
commit 97dc33e800
640 files changed
+108562 -5

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
local root = assert(arg[1])
package.path = root .. '/root/usr/lib/lua/?.lua;' .. package.path
local status = ''
package.preload['nixio.fs'] = function() return { readfile = function(path)
return path == '/usr/lib/opkg/status' and status or nil
end } end
package.preload['nixio'] = function() return {} end
package.preload['luci.jsonc'] = function() return {parse = function() return {} end} end
local schema = require 'luci.smart_srun.schema'
for native, expected in pairs({ ['2.0.0~rc39-r1'] = 'v2.0.0rc39', ['2.0.0_rc2-r1'] = 'v2.0.0rc2',
['2.0.0-r1'] = 'v2.0.0', ['1.6.0-1'] = 'v1.6.0' }) do
status = 'Package: luci-app-smart-srun-bundle\nVersion: ' .. native .. '\nStatus: install ok installed\n\n'
assert(schema.installed_package_display_text() == 'Bundle 版 ' .. expected, native)
end
print('native version display: passed')