From e64f9dd92ae0001c22aa06a0a1e4e837300d1b55 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Tue, 30 Sep 2025 06:47:46 -0300 Subject: [PATCH] Move the "Hello Redox" tests to a recipe for better filesystem config organization --- recipes/tests/hello-redox/files/test.c | 5 +++++ recipes/tests/hello-redox/files/test.cpp | 6 ++++++ recipes/tests/hello-redox/files/test.java | 5 +++++ recipes/tests/hello-redox/files/test.js | 1 + recipes/tests/hello-redox/files/test.lua | 1 + recipes/tests/hello-redox/files/test.py | 1 + recipes/tests/hello-redox/files/test.rs | 3 +++ recipes/tests/hello-redox/recipe.toml | 6 ++++++ 8 files changed, 28 insertions(+) create mode 100644 recipes/tests/hello-redox/files/test.c create mode 100644 recipes/tests/hello-redox/files/test.cpp create mode 100644 recipes/tests/hello-redox/files/test.java create mode 100644 recipes/tests/hello-redox/files/test.js create mode 100644 recipes/tests/hello-redox/files/test.lua create mode 100644 recipes/tests/hello-redox/files/test.py create mode 100644 recipes/tests/hello-redox/files/test.rs create mode 100644 recipes/tests/hello-redox/recipe.toml diff --git a/recipes/tests/hello-redox/files/test.c b/recipes/tests/hello-redox/files/test.c new file mode 100644 index 00000000..dba479b0 --- /dev/null +++ b/recipes/tests/hello-redox/files/test.c @@ -0,0 +1,5 @@ +#include + +int main(void) { + printf("Hello, Redox!\\n"); +} diff --git a/recipes/tests/hello-redox/files/test.cpp b/recipes/tests/hello-redox/files/test.cpp new file mode 100644 index 00000000..65a03775 --- /dev/null +++ b/recipes/tests/hello-redox/files/test.cpp @@ -0,0 +1,6 @@ +#include + +int main() +{ + std::cout << "Hello, Redox!" << std::endl; +} diff --git a/recipes/tests/hello-redox/files/test.java b/recipes/tests/hello-redox/files/test.java new file mode 100644 index 00000000..b6aca3d7 --- /dev/null +++ b/recipes/tests/hello-redox/files/test.java @@ -0,0 +1,5 @@ +public class Java { + public static void main(String[] args) { + System.out.println("Hello Redox"); + } +} diff --git a/recipes/tests/hello-redox/files/test.js b/recipes/tests/hello-redox/files/test.js new file mode 100644 index 00000000..d9bc174a --- /dev/null +++ b/recipes/tests/hello-redox/files/test.js @@ -0,0 +1 @@ +console.log("Hello Redox"); diff --git a/recipes/tests/hello-redox/files/test.lua b/recipes/tests/hello-redox/files/test.lua new file mode 100644 index 00000000..253def8b --- /dev/null +++ b/recipes/tests/hello-redox/files/test.lua @@ -0,0 +1 @@ +print("Hello, Redox!") diff --git a/recipes/tests/hello-redox/files/test.py b/recipes/tests/hello-redox/files/test.py new file mode 100644 index 00000000..253def8b --- /dev/null +++ b/recipes/tests/hello-redox/files/test.py @@ -0,0 +1 @@ +print("Hello, Redox!") diff --git a/recipes/tests/hello-redox/files/test.rs b/recipes/tests/hello-redox/files/test.rs new file mode 100644 index 00000000..42c716df --- /dev/null +++ b/recipes/tests/hello-redox/files/test.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, Redox!"); +} diff --git a/recipes/tests/hello-redox/recipe.toml b/recipes/tests/hello-redox/recipe.toml new file mode 100644 index 00000000..6801e833 --- /dev/null +++ b/recipes/tests/hello-redox/recipe.toml @@ -0,0 +1,6 @@ +[build] +template = "custom" +script = """ +mkdir -pv "${COOKBOOK_STAGE}/home/user/hello-redox" +cp -rv "${COOKBOOK_RECIPE}"/files/* "${COOKBOOK_STAGE}/home/user/hello-redox" +"""