diff options
| author | ruki <[email protected]> | 2024-07-17 22:52:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-17 22:52:47 +0800 |
| commit | 5f5164528ab628cbd688782b9057e898f9a27cfe (patch) | |
| tree | 3b3f45c37a2c15e702e7a1569f71366f05fd6eb3 | |
| parent | 68751ccc25332dff6c35ab5e92243cf8f2bfbc26 (diff) | |
update test.lua for install
| -rw-r--r-- | tests/actions/install/test.lua | 4 | ||||
| -rw-r--r-- | tests/actions/install/xmake.lua | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/actions/install/test.lua b/tests/actions/install/test.lua index 78173bac7..4edc90275 100644 --- a/tests/actions/install/test.lua +++ b/tests/actions/install/test.lua @@ -3,6 +3,8 @@ function main(t) os.vrun("xmake -y") os.vrun("xmake run app") os.vrun("xmake install -o build/usr") - os.vrun("./build/usr/app/bin/app" .. (is_host("windows") and ".exe" or "")) + if not is_host("linux") then -- TODO, change rpath has been not supported yet on linux. + os.vrun("./build/usr/app/bin/app" .. (is_host("windows") and ".exe" or "")) + end end end diff --git a/tests/actions/install/xmake.lua b/tests/actions/install/xmake.lua index b12cb5dcd..84f567239 100644 --- a/tests/actions/install/xmake.lua +++ b/tests/actions/install/xmake.lua @@ -10,14 +10,14 @@ target("foo") add_packages("libplist", {public = true}) add_headerfiles("src/foo.h", {public = true}) add_installfiles("src/foo.txt", {prefixdir = "assets", public = true}) --- set_prefixdir("/", {bindir = "foo_bin", libdir = "foo_lib"}) + set_prefixdir("/", {bindir = "foo_bin", libdir = "foo_lib"}) target("app") set_kind("binary") add_deps("foo") add_files("src/main.cpp") add_rpathdirs("@loader_path/../lib", {installonly = true}) --- set_prefixdir("app") + set_prefixdir("app") includes("@builtin/xpack") |
