summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-02 23:07:42 +0800
committerruki <[email protected]>2021-06-02 23:07:42 +0800
commitb3027461160d7e0462b8cfff417fa442444f0420 (patch)
treef08e7ff5e97dd699ecfb0c52d6d95cf1961a52c6
parent4bbd7833ea104e2f754c608e2bad41659d4952fc (diff)
improve test
-rw-r--r--tests/actions/package/localpkg/test.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/actions/package/localpkg/test.lua b/tests/actions/package/localpkg/test.lua
index 9f581ddab..1256b1fa2 100644
--- a/tests/actions/package/localpkg/test.lua
+++ b/tests/actions/package/localpkg/test.lua
@@ -1,10 +1,10 @@
function main(t)
- os.exec("xmake g --network=private")
- os.cd("libfoo")
- os.exec("xmake package -vD -o ../bar/build")
- os.cd("../bar")
- os.exec("xmake f -c -vD")
- os.exec("xmake -vD")
- os.exec("xmake run")
- os.exec("xmake g --network=public")
+ if (os.subarch():startswith("x") or os.subarch() == "i386") and not is_host("bsd") then
+ os.cd("libfoo")
+ os.exec("xmake package -vD -o ../bar/build")
+ os.cd("../bar")
+ os.exec("xmake f -c -vD")
+ os.exec("xmake -vD")
+ os.exec("xmake run")
+ end
end