diff options
| author | ruki <[email protected]> | 2025-02-06 23:23:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-02-06 23:23:21 +0800 |
| commit | 051d645e3feb5db8061e513ed95a3ac2b61eb492 (patch) | |
| tree | 115078e99329d88242dc1a038494ca4de1b3be30 /tests/projects/xmake_cli/ide_integration/assets | |
| parent | 378ce254ca617f0d2772be7d7acd4ccc2428aef1 (diff) | |
improve ide integratio test
Diffstat (limited to 'tests/projects/xmake_cli/ide_integration/assets')
| -rw-r--r-- | tests/projects/xmake_cli/ide_integration/assets/targetpath.lua | 7 | ||||
| -rw-r--r-- | tests/projects/xmake_cli/ide_integration/assets/targets.lua | 8 |
2 files changed, 4 insertions, 11 deletions
diff --git a/tests/projects/xmake_cli/ide_integration/assets/targetpath.lua b/tests/projects/xmake_cli/ide_integration/assets/targetpath.lua index 4217c5172..2e8c65fe9 100644 --- a/tests/projects/xmake_cli/ide_integration/assets/targetpath.lua +++ b/tests/projects/xmake_cli/ide_integration/assets/targetpath.lua @@ -1,5 +1,6 @@ import("core.project.config") import("core.project.project") +import("lib.lni") function main (targetname) config.load() @@ -20,16 +21,12 @@ function main (targetname) end end end - - print("__begin__") if target then local targetfile = target:targetfile() if not path.is_absolute(targetfile) then targetfile = path.absolute(targetfile, os.projectdir()) end - print(targetfile) + lni.result = targetfile end - - print("__end__") end diff --git a/tests/projects/xmake_cli/ide_integration/assets/targets.lua b/tests/projects/xmake_cli/ide_integration/assets/targets.lua index 87800392f..e5fdb6142 100644 --- a/tests/projects/xmake_cli/ide_integration/assets/targets.lua +++ b/tests/projects/xmake_cli/ide_integration/assets/targets.lua @@ -1,7 +1,7 @@ --- imports import("core.project.config") import("core.project.project") import("core.base.json") +import("lib.lni") function main () config.load() @@ -14,9 +14,5 @@ function main () if json.mark_as_array then json.mark_as_array(names) end - local localjson = json.encode(names) - - print("__begin__") - print(localjson) - print("__end__") + lni.result = json.encode(names) end |
