summaryrefslogtreecommitdiff
path: root/tests/actions/addon/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-16 08:56:36 +0800
committerruki <[email protected]>2026-08-16 08:56:36 +0800
commitda447ac2ab5de57880d1179f5d3df7638ab5af23 (patch)
tree1059b8cfc78db7c61e1fd7929bda00041c7e5ad4 /tests/actions/addon/projects
parent65854acd5e7080dae4cac3e3b3ec1ce01e902ae7 (diff)
add packages test for addon
Diffstat (limited to 'tests/actions/addon/projects')
-rw-r--r--tests/actions/addon/projects/custom-package/src/main.c7
-rw-r--r--tests/actions/addon/projects/custom-package/xmake.lua9
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/actions/addon/projects/custom-package/src/main.c b/tests/actions/addon/projects/custom-package/src/main.c
new file mode 100644
index 000000000..3edd2a8cb
--- /dev/null
+++ b/tests/actions/addon/projects/custom-package/src/main.c
@@ -0,0 +1,7 @@
+#include <hello_utils.h>
+
+int main(int argc, char** argv)
+{
+ hello_utils_greeting();
+ return 0;
+}
diff --git a/tests/actions/addon/projects/custom-package/xmake.lua b/tests/actions/addon/projects/custom-package/xmake.lua
new file mode 100644
index 000000000..1c967020d
--- /dev/null
+++ b/tests/actions/addon/projects/custom-package/xmake.lua
@@ -0,0 +1,9 @@
+-- the package definitions come from the addon
+includes("@addon/custom-package/packages")
+
+add_requires("hello-utils")
+
+target("test")
+ set_kind("binary")
+ add_files("src/main.c")
+ add_packages("hello-utils")