forked from qt-creator/qt-creator
On macOS, files in Contents/PlugIns/ need to be codesigned individually. Since Lua plugins are not really binaries, per Apple's documentation that is to be avoided (and we currently only sign executables there). Just move Lua plugins generally to the resources directory, like we do for other scripts like the debugger Python scripts, and load them from there. Change-Id: Idabd6b7c0c7c6e842b1752488cb7073f00e7be49 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
35 lines
968 B
Lua
35 lines
968 B
Lua
-- Copyright (C) 2024 The Qt Company Ltd.
|
|
-- SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
local T = require("qtctest")
|
|
local a = require('async')
|
|
local Utils = require('Utils')
|
|
local Qt = require('Qt')
|
|
|
|
local function testDirEntries()
|
|
local u = require("Utils")
|
|
local d = u.FilePath.currentWorkingPath()
|
|
print("CWD:", d)
|
|
local result = a.wait(d:dirEntries({}))
|
|
print("RESULT:", result, #result)
|
|
end
|
|
|
|
local function testSearchInPath()
|
|
local u = require("Utils")
|
|
local d = u.FilePath.fromUserInput('hostname')
|
|
local result = a.wait(d:searchInPath())
|
|
print("Hostname found at:", result)
|
|
end
|
|
|
|
local function testWaitMs()
|
|
local u = require("Utils")
|
|
print("Starting to wait ...")
|
|
a.wait(u.waitms(1000))
|
|
print("About a second should have elapsed now.")
|
|
end
|
|
|
|
return {
|
|
testDirEntries = testDirEntries,
|
|
testSearchInPath = testSearchInPath,
|
|
testWaitMs = testWaitMs,
|
|
}
|