diff options
| author | ruki <[email protected]> | 2021-01-05 00:43:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-05 00:43:57 +0800 |
| commit | 6bd82372db43eda6435aced5125db15793452897 (patch) | |
| tree | b9e8aa004602d81059e6b02396ec88a70ec4ba74 /tests | |
| parent | 252f06e4e77be844729db3bcc704f17c255cca9f (diff) | |
add rootconfig test
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/projects/package/rootconfigs/src/main.c | 7 | ||||
| -rw-r--r-- | tests/projects/package/rootconfigs/test.lua | 6 | ||||
| -rw-r--r-- | tests/projects/package/rootconfigs/xmake.lua | 7 |
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/projects/package/rootconfigs/src/main.c b/tests/projects/package/rootconfigs/src/main.c new file mode 100755 index 000000000..9ae580511 --- /dev/null +++ b/tests/projects/package/rootconfigs/src/main.c @@ -0,0 +1,7 @@ +#include <stdio.h> + +int main(int argc, char** argv) +{ + printf("hello world!\n"); + return 0; +} diff --git a/tests/projects/package/rootconfigs/test.lua b/tests/projects/package/rootconfigs/test.lua new file mode 100644 index 000000000..8644a2af9 --- /dev/null +++ b/tests/projects/package/rootconfigs/test.lua @@ -0,0 +1,6 @@ +function main(t) + -- only for x86/x64, because it will take too long time on ci with arm/mips + if os.subarch():startswith("x") or os.subarch() == "i386" then + t:build() + end +end diff --git a/tests/projects/package/rootconfigs/xmake.lua b/tests/projects/package/rootconfigs/xmake.lua new file mode 100644 index 000000000..66a55cef2 --- /dev/null +++ b/tests/projects/package/rootconfigs/xmake.lua @@ -0,0 +1,7 @@ +add_requireconfs("*", {system = false, configs = {debug = false}}) +add_requires("zlib", {system = false, debug = true}) + +target("test") + set_kind("binary") + add_files("src/*.c") + add_packages("libpng") |
