From 77ae869c863352de520ddd3f4ef8e66ba884c974 Mon Sep 17 00:00:00 2001 From: Josh Williams Date: Sun, 10 May 2026 23:16:06 -0700 Subject: [PATCH] Second attempt to add redox-posix-tests bins recipie --- .../tests/redox-posix-tests-bins/recipe.toml | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 recipes/tests/redox-posix-tests-bins/recipe.toml diff --git a/recipes/tests/redox-posix-tests-bins/recipe.toml b/recipes/tests/redox-posix-tests-bins/recipe.toml new file mode 100644 index 000000000..a5c8fc7bb --- /dev/null +++ b/recipes/tests/redox-posix-tests-bins/recipe.toml @@ -0,0 +1,59 @@ +[source] +same_as = "../redox-posix-tests" + +[build] +#dependencies = [ +# "gettext", +# "libarchive", +# "libiconv", +#] +template = "custom" +script = """ +DYNAMIC_INIT + +# Copy source to /usr/share/redox-posix-tests +mkdir -p "${COOKBOOK_STAGE}/usr/share/redox-posix-tests" +cd "${COOKBOOK_STAGE}/usr/share/redox-posix-tests" +rsync -a "${COOKBOOK_SOURCE}/" "./" + +# Pre-compile tests for Redox +make OS=Redox \ + CC="${CC_WRAPPER} ${GNU_TARGET}-gcc" \ + CFLAGS="-I${COOKBOOK_SYSROOT}/include" \ + CPPFLAGS="-I${COOKBOOK_SYSROOT}/include" \ + LDFLAGS="-L${COOKBOOK_SYSROOT}/lib" \ + EXTRA_LDFLAGS= \ + CC_FOR_BUILD="${CC_WRAPPER} cc" \ + CFLAGS_FOR_BUILD= \ + CPPFLAGS_FOR_BUILD= \ + LDFLAGS_FOR_BUILD= \ + -j "${COOKBOOK_MAKE_JOBS}" \ + all + + + + +# Create runner script +mkdir -p "${COOKBOOK_STAGE}/usr/bin" +cat > "${COOKBOOK_STAGE}/usr/bin/redox-posix-tests-runner" <